Where Do Tokens Go When a SunSwap Swap Fails: They Stay Put
Where do tokens go when a SunSwap swap fails? A reverted swap leaves input tokens in your wallet, but TRX burned for Energy and Bandwidth is spent.
The Token Wire Desk3 min read
SunSwap input tokens stay in your wallet when a swap reverts; only the TRX burned for Energy and Bandwidth is spent. TRON contract calls are atomic, meaning a revert rolls back the transaction’s state changes while resource charges still apply.
Say you swap 100 USDT and the transaction reverts. Your wallet balance remains 100 USDT, while your TRX balance drops by the fee burned for the call. The router may have started processing the swap, but the failed condition rolls back the token transfers.
SunSwap is a decentralized exchange on TRON where users swap TRC-20 tokens through liquidity pools. The SunSwap site provides background on the exchange; it adds context that its swaps trade tokens through TRON liquidity pools.
A SunSwap revert leaves input tokens in your wallet
A reverted swap returns nothing because the input tokens never leave your wallet. The contract call either completes its state changes or rolls them all back; it cannot keep the input tokens from a reverted transaction.
Look up the transaction hash on TRONSCAN and read its result status. A REVERT status means the swap failed and the token transfers were rolled back. Energy and Bandwidth are TRON network resources used by contract calls and transactions. The TRX charged for resources consumed by the failed call is still spent.
A missing hash points to a different case. If TRONSCAN cannot find the hash, the transaction was never broadcast, so no token transfer or on-chain resource charge occurred. You can resend the swap. Before retrying a transaction that does appear on TRONSCAN, confirm whether its status is REVERT or SUCCESS.
A wallet can report a failed swap even when TRONSCAN shows SUCCESS. In that case, the output token reached your address. The wallet may not list it yet, so add the token using its contract address. Confirm the address against a reliable source before adding it; a token name alone does not identify the asset.
Use the on-chain status to decide what to do next: a revert leaves the input in your wallet, a missing hash can be resent, and a successful transaction means you should look for the output token in your wallet.
Questions about failed swaps
Why does my SunSwap swap keep failing?
A swap can revert when its contract call hits a failing condition. Look up the hash on TRONSCAN to confirm the result. If it shows REVERT, the input tokens remain in your wallet, though resource charges still apply. Review the transaction details before trying again.
Can I get back TRX burned on a failed transaction?
No. TRX burned for Energy and Bandwidth used by a failed call is still charged, even though the token transfers are rolled back.
How do I add a token to TronLink by contract address?
Use the wallet’s token import option and enter the token’s contract address. Verify that address from a reliable source so you add the output token that the successful transaction sent to your address.
What slippage should I set on SunSwap?
There is no single setting that fits every swap. Slippage is the difference between the expected and final swap price. Review the transaction details and choose a tolerance that fits the price movement you are willing to accept; a tighter setting can cause a swap to revert if the price moves beyond it.