Key points
- An earlier successful approval can survive a later reverted swap.
- Pending, replaced and reverted attempts require different checks.
- Read the current allowance for the exact token, owner and spender.
Your wallet says the Ethereum swap failed. The token balance looks unchanged, but some ETH ($ETH) is gone. It is tempting to press retry. First, find out whether the trade was the only thing you authorized.
A common ERC-20 swap has two separate transactions: an approval that lets a spender use tokens, followed by the trade itself. If the approval succeeds and the later swap reverts, the earlier permission can remain. This guide covers that ordinary Ethereum transaction flow. Smart-account batches, signed permits and cross-chain routes can have different boundaries.
First, find the actual transaction result
Open the transaction from your wallet in the correct network’s block explorer. Record the network, transaction hash, sender, destination, block and status. A hash identifies an attempt; it does not establish that the attempt was included or succeeded.
Ethereum’s transaction receipt specification defines status 1 as success and 0 as failure. Explorers usually render those values as Success or Fail. Alchemy’s transaction lifecycle documentation independently distinguishes pending, included-but-reverted, dropped and replaced attempts.
If the attempt is still pending, the outcome is unresolved. If it was replaced, follow the replacement hash and check its receipt. Do not treat an app timeout as proof of an onchain failure. Panther’s pending-transaction guide covers replacement separately.
Why a failed Ethereum swap can still cost gas
A top-level revert rolls back the execution’s state changes. It does not make the computation free. The REVERT specification also explains that an ordinary revert need not consume all remaining gas. “Failed” does not mean every transaction used its full gas limit.
The asset the swap was meant to spend should not have been transferred by that reverted execution. Still, inspect earlier transactions and the actual token balance. A separate approval, deposit, bridge send or transfer that already succeeded is outside the rollback of a later transaction. On other EVM networks, fee accounting can include additional components; do not calculate a universal refund from the gas limit alone.
Check the approval as a separate transaction
Find the approval immediately before the swap, if one exists. Confirm its token contract, owner, spender and amount. A familiar ticker is not an identity check: use the contract address. The approval recipient is the token contract; the spender authorized by its input is a separate address.
The ERC-20 standard defines allowance as permission for a spender to withdraw up to an amount on an owner’s behalf. Its allowance method returns the remaining authorization for that owner and spender. An Approval event describes a historical action. The current allowance is the value to check now.
For a verified contract exposing a read interface, query allowance with your wallet as owner and the exact router or other authorized contract as spender. Reading requires no signature. Interpret the raw integer using the token’s decimals. If that interface is unavailable or the contract’s behavior is unclear, keep the result unresolved instead of guessing from an old event.
Worked example: two receipts, two outcomes
This is a hypothetical example, not a transaction Panther executed or observed. Assume a standard ERC-20 token with six decimals and no unusual transfer behavior.
Transaction A approves a router for 1,000 tokens and succeeds. Transaction B tries to swap 100 tokens through that router and has receipt status 0. No later transaction changes the allowance.
Under those assumptions, B’s reverted execution cannot undo A. The allowance remains 1,000 tokens, represented as 1,000,000,000 base units. B can still have an execution fee even though its intended token transfer was rolled back. Check the live allowance to verify the real case; another transaction or nonstandard token can change the answer.
If approval and trade happened inside one atomic top-level transaction that fully reverted, both execution changes roll back. If a batch catches a failing subcall and continues, the top-level receipt can be successful despite an individual failed step. Identify the transaction boundaries before applying the two-receipt example.
Retry only after identifying what needs to change
An expired quote, a minimum-output check, insufficient allowance and a transfer restriction require different responses. Read the displayed revert reason when available. It is a clue, not a guarantee that the interface decoded the full cause correctly. Raising slippage increases the price movement you accept; it does not repair every failure.
If you abandon the trade, review any permission left behind. MetaMask’s approval guidance explains the continuing access an allowance grants. Use Panther’s revocation guide to remove an unwanted allowance and confirm the new value. Disconnecting a website is not the same operation. Signed permits need their own checks; see the Permit2 nonce guide.
Sources
- 01ERC-20 Token Standard · Ethereumeips.ethereum.org/EIPS/eip-20
- 02REVERT instruction · Ethereumeips.ethereum.org/EIPS/eip-140
- 03Transaction receipt API · Ethereumethereum.github.io/execution-apis/api/methods/eth_getTransactionReceipt/
- 04What is a token approval? · MetaMasksupport.metamask.com/transactions-and-gas/transactions/what-is-a-token-approval/
Responses
No responses yet. Start the conversation.
Panther Journal — The intelligence brief
Stay ahead of the story.
Free. New investigations delivered when published. Unsubscribe anytime.






