Jump to content
The Coin Wire

Crypto moves, protocols and policy

Why did my SushiSwap swap fail? After confirmation

A confirmed SushiSwap swap can still revert at execution; use its receipt and available revert data to identify the cause before retrying.

By The Coin Wire Editorial5 min read

Why did my SushiSwap swap fail? After confirmation

A SushiSwap swap can fail after wallet confirmation because confirmation submits the transaction, while on-chain execution can still revert when its conditions are not met.

Start with the receipt, not the wallet prompt

Wallet confirmation authorizes submission; the transaction receipt records whether the included transaction succeeded. Find the submitted swap hash in your wallet’s transaction history, then inspect its receipt on the relevant EVM network. A transaction that is still pending has no final execution status, so wait for inclusion before diagnosing a revert.

SushiSwap gives traders a place to swap tokens on sushiswap, which makes its swap transaction the one to trace from confirmation through execution. For an included transaction, EIP-658 defines receipt status 0 as failure and status 1 as success. A status of 0 establishes that execution failed; locating the failing call requires revert data or a trace when either is available.

That distinction matters because the receipt and the revert data answer different questions. The receipt settles whether the transaction succeeded. Revert data may identify a contract’s reason for stopping, while a trace can show where execution reached the failure. If neither is available, the status still confirms failure, but the cause has to be narrowed down from the transaction inputs and conditions.

Match the revert to its likely cause

An output constraint is a common cause of a swap reverting after confirmation. The transaction executes against on-chain conditions at inclusion, which can differ from the quote you saw earlier. Slippage is the difference between the quoted result and the execution result. If the result falls below the transaction’s minimum output, the swap reverts rather than completing at that lower amount.

The tell-tale sign is revert data referring to minimum output or a transaction whose expected output no longer fits the amount it required. Refresh the quote before retrying and compare the current expected result with the transaction’s output constraint. Reconsider the tolerance only after seeing that this is the condition that failed: a wider tolerance can allow a larger difference between quote and execution, but it also accepts a less favorable result.

Transfer-tax behavior can also push the received amount below the minimum output. A token may deduct a transfer tax from the amount sent or received, so the amount that reaches the recipient can be lower than the pool’s apparent output. That tax reduces proceeds separately from the pool’s trading charges. Look for a transfer-tax indication in available revert data or trace information, and account for the token’s behavior when refreshing the quote and setting a new output constraint. Increasing tolerance without accounting for the tax can leave the transaction with the same failure condition.

An allowance or spendable-balance problem points to a different fix. Revert data may identify a failed token transfer or insufficient allowance; the wallet’s token balance can also show whether enough tokens remain available to spend. Compare the allowance and spendable balance with the transaction’s input amount, accounting for any other pending transactions that may use the same funds. Correct the specific shortage or authorization issue, then retry with the intended input.

Gas exhaustion is another distinct failure. A transaction can run out of gas before the swap finishes, and its receipt will still show status 0. A trace, when available, can reveal that execution stopped after consuming the transaction’s gas limit. Review the gas limit and the failure point before resubmitting; raising it is relevant only when the evidence indicates exhaustion. More gas will not fix a minimum-output, tax, balance or allowance failure.

If none of these signs fits, compare the transaction’s call details and available trace against the token and router calls it attempted. A failed receipt proves the swap did not complete, but it cannot name the failing condition by itself. Preserve the hash and relevant transaction details while investigating; retrying unchanged can reproduce the same revert and consume gas again.

What traders ask after a failed swap

Why was I charged gas for a failed swap?

A failed included transaction still uses network computation, so the network charges for the gas it consumed even though the swap reverted. The receipt records the failed execution; its gas information helps distinguish a transaction that stopped early from one that exhausted its limit.

How do I replace a pending swap using the same nonce?

A pending transaction has not reached final execution status. A replacement uses the same account nonce and must be submitted under the network’s replacement rules; the wallet’s transaction flow determines the available replacement action. Review the original transaction first so the replacement reflects the intended input and output conditions.

What if the source transaction succeeded but my cross-chain swap is incomplete?

A successful source-chain receipt establishes that the source transaction completed on that chain. A cross-chain transfer has additional steps beyond that transaction, so inspect its transfer status and destination-side progress separately. The source receipt alone cannot diagnose a delay or failure on another chain.