What Happens to Token Approval When a Fraxswap Swap Fails?
When a DEX swap fails, a confirmed token approval usually remains because its ERC-20 allowance was set separately. Check it before retrying or revoke it if unused.
By Crypto Readout Editorial4 min read#bc77a0

A failed Fraxswap swap usually leaves a previously confirmed token approval in place because the ERC-20 allowance was set in a separate transaction. The approval authorizes a spender to transfer tokens up to a specified amount; the later swap is a different on-chain action.
A failed swap rolls back its transfer, not an earlier approval
The token contract records an allowance: how much a named spender may transfer on the token holder’s behalf. For a swap, the spender is often the Fraxswap Router. Approving the router changes that allowance, and the approval transaction must be confirmed on Ethereum.
The router then uses the allowance when you submit a swap. It attempts to take the input tokens and carry out the exchange. If the swap reverts, the EVM rolls back the state changes made by that swap, including an attempted token transfer. The approved tokens normally stay in your wallet, but the allowance from the earlier transaction remains available to the router.
That distinction can matter when a swap fails because its minimum output was not met. On Fraxswap, that message concerns the minimum amount the trade must return; the Fraxswap insufficient-output fix explains what to adjust before trying that trade again. The failed attempt does not, by itself, erase a confirmed allowance.
Think of the approval as a standing permission slip and the swap as one attempt to use it. A failed attempt does not cancel the slip. It also does not mean the router took the approved amount: a reverted transaction’s attempted state changes are undone. The reverted swap still consumes gas.
Say you approve the router to spend 100 tokens, wait for that transaction to confirm, then submit a swap that reverts. The allowance remains at up to 100 tokens, unless another transaction changed it. You can usually retry without approving again if the remaining allowance is enough for the input amount.
A small change to that case changes the result: suppose your wallet bundles the approval and swap into one atomic transaction. If the swap reverts, the whole transaction’s state changes roll back, including the approval. The principle that a revert undoes state changes still holds; what changes is that there was no separately confirmed approval left behind.
Before retrying, inspect the allowance for the token and spender named in the approval. Approve again only if the allowance is missing or too small for the planned swap. An approval can cover a set amount or a larger amount, depending on what you authorized, so check the actual allowance rather than assuming the failed swap reset it.
If you do not plan to use that router again, you can reduce the allowance or revoke it using your wallet or an allowance-management tool. That change requires its own transaction and may cost gas. Revoking permission does not reverse a completed swap; it changes how much the spender may transfer in the future.
Related
Why does a DEX swap need token approval?
An ERC-20 token contract does not automatically let a DEX move tokens from your wallet. The approval sets an allowance for the router, so it can transfer the swap’s input tokens when you submit a trade. The swap uses that permission; the approval itself does not make the exchange.
Can I approve only the amount I plan to swap?
Yes. You can approve an amount that covers the planned input instead of a larger allowance, if your wallet or the approval flow offers that choice. A smaller allowance limits how much the spender can transfer under that permission, but a later swap may need another approval if the remaining allowance is insufficient.