fix: tron trc20 balances for non-activated accounts + send warning#12191
Merged
gomesalexandre merged 5 commits intodevelopfrom Mar 19, 2026
Merged
fix: tron trc20 balances for non-activated accounts + send warning#12191gomesalexandre merged 5 commits intodevelopfrom
gomesalexandre merged 5 commits intodevelopfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Two fixes for Tron non-activated accounts:
TRC20 balance discovery for non-activated accounts - The TronGrid
/v1/accounts/{addr}API returns{"data":[]}for addresses that have never sent TRX (non-activated). Added a fallback inTronApi.getAccount()that checks hardcoded top tokens (USDT, USDC) + scans received TRC20 tx history to discover token contracts, then callsbalanceOf()viatriggerconstantcontract. Non-activated accounts with USDT/TRC20 balances now show up in the portfolio.Send flow warning for non-activated recipient - Added
useIsTronAddressActivatedhook that checks if a Tron recipient address is activated. On the send amount screen, if the recipient is non-activated and the asset is not native TRX, a yellow warning alert is shown: "This address hasn't been activated on Tron yet. Your tokens will arrive, but the recipient won't be able to move them until they also receive some TRX." Warn-and-allow - send is not blocked.Issue (if applicable)
closes #12190
Risk
Low - Tron-specific changes, under the TRON feature flag. The balance fallback only triggers for non-activated accounts (empty
data[]response from TronGrid). The send warning is informational only and doesn't block the flow.Tron TRC20 token sends only.
Testing
Engineering
qabot run (6/6 passed): http://localhost:8080/runs/99d0a229-c7e4-49b3-b7d5-a3b93922f5d5
Operations
Tron is behind the
VITE_FEATURE_TRONflag.Summary by CodeRabbit
Bug Fixes
New Features
Tests
Documentation