A Reverted DEX Swap Leaves Your Tokens in Place
What happens to tokens when a DEX swap transaction reverts? The swap rolls back, so your input tokens stay in your wallet; a prior approval can remain active.
Uruguay Can Editorial

When a DEX swap transaction reverts, your input tokens stay in your wallet because the EVM rolls back the state changes made by that transaction.
That rollback covers the swap as a whole, including earlier steps in the same transaction. For KyberSwap users, KyberSwap revert gas costs adds context on the fee side of a failed transaction; this article follows what happens to the tokens.
A reverted swap leaves the input tokens in your wallet
Say you use a KyberSwap route to exchange USDC for ETH. If a later step in that route reverts, the transaction’s changes are undone, so the USDC remains in your wallet and the swap does not leave you with ETH from that transaction.
EVM transactions are atomic: their changes either complete together or roll back together. That means a token transfer made as part of the failed swap is undone too. The wallet balance you see after the revert reflects the rollback.
An earlier approval can remain active
An ERC-20 allowance is permission for a contract to use a token amount; it is separate from your token balance. If you approved a token in an earlier, confirmed transaction, a later failed swap does not undo that approval. Your tokens remain in your wallet, but the allowance may still be active.
If you no longer want that permission in place, review the allowance and revoke it separately. A swap revert does not revoke an approval that was already confirmed.
To check what happened, open the transaction in your wallet or a block explorer and confirm its status. A reverted transaction has no successful swap token transfers.
- Confirm that the swap transaction is marked reverted.
- Check your token balance; the input tokens should remain in your wallet.
- Review any separate approval transaction and revoke its allowance if you no longer want it.
If the approval and swap were part of the same reverted transaction, the approval rolls back with the swap. The answer changes when an approval was confirmed earlier: that separate permission can remain active even though the swap failed.