> For the complete documentation index, see [llms.txt](https://bridge-ledger.gitbook.io/bridge-ledger-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bridge-ledger.gitbook.io/bridge-ledger-docs/how-do-i-fix-a-reverted-fraxswap-swap-without-wasting-gas.md). Agents can also search and read this documentation through its [MCP server](https://bridge-ledger.gitbook.io/bridge-ledger-docs/~gitbook/mcp).

# How do I fix a reverted Fraxswap swap without wasting gas?

![How do I fix a reverted Fraxswap swap without wasting gas?](https://i.ibb.co/TqgdyQPW/post-0028.jpg)

Fraxswap can complete your intended instant swap after a confirmed revert if you identify the failed condition, fix it, and obtain a fresh quote before retrying. Start with the failed transaction hash and its error details, then simulate the corrected trade. A successful new receipt and the recipient’s received tokens confirm that it worked.

## What a reverted Fraxswap swap means

A confirmed revert means the swap reached a failing condition and rolled back its token and pool state changes. The input tokens should still be in the sending wallet, but the network charged for computation already performed. Gas is paid whether execution succeeds or fails, as Ethereum’s gas documentation explains. Raising the gas price on an unchanged transaction can therefore make the same failure more expensive.

Make sure the explorer shows a receipt with a failed status. A pending transaction has no final result yet; resolve or wait for it before risking a second swap. A dropped transaction was not included, while a wallet-rejected request was never submitted. Neither is the confirmed revert addressed here. This distinction matters because an absent receipt cannot tell you which contract condition failed.

For Fraxswap instant swaps, keep the failed hash, the sending wallet, and the selected network together while investigating. Read the transaction’s method, input amount, recipient, deadline, and any decoded revert reason or trace the explorer provides. Those details establish what was actually submitted. A fresh quote is useful later, but it cannot explain an old failure unless you first know the old transaction’s parameters.

## Find the condition that stopped the trade

The revert reason, when available, points to the next useful check. The router implementation uses **EXPIRED** when the transaction deadline is earlier than the block time. For an exact-input swap, **INSUFFICIENT\_OUTPUT\_AMOUNT** means the calculated or received output fell below **amountOutMin**, the minimum you agreed to receive. An exact-output swap can instead fail with **EXCESSIVE\_INPUT\_AMOUNT** when it needs more than the allowed input.

That output error says something different from a transfer error. On the ordinary exact-input path, the router calculates the output and tests it against the minimum before it tries to transfer the input token. A failed swap moving no tokens therefore does not prove the approval was missing. If a token transfer failed, compare the wallet’s current input-token balance with the amount being sold, then compare its allowance with that amount for the router address used as spender. Balance and allowance are separate requirements.

The quoted route also matters: each hop needs a usable pair and enough liquidity to produce the expected output. Inspect the token addresses, not just their symbols, and compare the submitted path with the one now quoted through Fraxswap liquidity pools. Because a changed or unavailable hop can defeat the intended trade, return to [Fraxswap](https://fraxswap.co) and obtain a fresh quote for the same tokens and amount. If the route is unavailable or the token cannot be transferred through it, record that blocker and stop before submitting again.

If the receipt says **out of gas**, inspect the gas used against the transaction’s gas limit. A genuinely inadequate limit calls for a new estimate after the other conditions are corrected. Gas price controls what you offer to pay for execution; it cannot make an expired deadline valid, raise the pool’s output, or repair an incompatible token transfer. If the explorer shows only a generic execution revert, use an available transaction trace or wallet simulation to narrow the cause before spending gas on another attempt.

## Correct the cause while keeping output protection

Each failure has its own remedy. For **EXPIRED**, build a new transaction with a future deadline; resending the old signed transaction preserves its expired deadline. For insufficient output, compare the fresh quote with your minimum received amount. Price movement, price impact on a thin pair, or a token that takes a fee on transfer can explain the gap. A lower minimum may permit execution, but it also permits a worse trade. Keep a minimum you would actually accept, or change the trade amount or route.

Consider two attempts with the same wallet, tokens, route, input amount, balances, allowance, deadline, and current pool output. Only **amountOutMin** differs. If the first minimum is above what the route can deliver, that attempt reverts; if the second is below it, the output test can pass. The second trade still needs its transfers to succeed. This is why increasing slippage can address an output-protection failure but tells you nothing about a transfer failure.

For a transfer error, restore the missing resource or resolve the token restriction. A separately completed approval survives the swap’s revert, so inspect the existing spender allowance before approving again. If the wallet lacks input tokens or enough native currency for gas, correct that balance first. If the token’s transfer rules remain incompatible with the route, using Fraxswap to swap tokens through that path will keep failing regardless of gas settings.

## Verify the retry before and after submission

A retry is ready when the identified condition has been corrected, the wallet is on the right network, the current balances and allowance cover the trade, and a fresh quote still meets your acceptable minimum output. Run the wallet’s available simulation or gas estimate on that new transaction. A passing result is useful evidence, though pool prices and deadlines can change before inclusion. If it still predicts a revert, use the reported reason to investigate further instead of submitting.

After submission, open the new transaction hash. Confirm a successful receipt, then verify that the intended recipient received the output token and an acceptable amount. If no supported route or compatible token transfer can be established, the useful result is a known blocker before another paid attempt.
