christine-braun

How to set slippage on BaseSwap from your wallet

Start with a tight slippage limit, then raise it only if a fresh quote shows that normal price movement is causing the swap to fail. For a liquid pair and a modest trade, 0.5% is a reasonable example starting point; the right setting depends on the pair and trade size.

Slippage tolerance sets your minimum output

Slippage tolerance is the maximum amount the received tokens may fall below the swap’s quoted amount before the transaction reverts. On BaseSwap exchange, the wallet signs a transaction with this limit, and the swap contract checks the output against it when the transaction executes.

For an exact-input swap, calculate the minimum received as quoted output × (1 − tolerance). If a quote says 1,000 USDC should return 0.49 ETH and you set 0.5%, the minimum is 0.48755 ETH. A lower output makes the swap revert instead of completing at a worse rate.

Price impact and slippage describe different costs

Price impact is the change in a pool’s price caused by your trade size; the quote should already reflect it. Slippage is the further change that can happen after the quote while your transaction is waiting to execute, for example because other trades move the pool price.

This distinction matters when a trade looks expensive. Raising tolerance does not undo price impact or improve a poor quote: it only allows the swap to execute at a lower output. If the quoted price is already unattractive, reduce the trade size or reconsider the pair instead.

Choose a limit that fits the pair and trade

For a liquid, frequently traded pair, a small tolerance may be enough. A less liquid or volatile pair, a larger trade relative to the pool, or a fast-moving market can need more room; there is no single percentage that works for every swap.

Compare the quoted output and price impact before changing the setting. If a small trade repeatedly fails at 0.5%, refresh the quote and try a modest increase, such as 1%, once. If the interface reports that the trade needs several percent of tolerance, check the token and pool carefully: a high limit can allow a much worse fill, including one worsened by adverse transaction ordering.

Retry a failed swap from a fresh quote

A swap can revert when the pool moves beyond your limit before execution. The tokens are not exchanged in that failed transaction, but the network still charges gas for processing it, paid in ETH on Base; check your wallet’s fee estimate and keep enough ETH for the transaction.

After a failure, read the wallet or explorer status, then get a new quote before retrying. Confirm the input and output tokens, expected amount, minimum received, and gas fee. If the new quote still requires an unusually wide limit, do not keep widening it just to force execution; that changes the price protection your transaction enforces.

I would decide differently for a tiny, highly volatile token or a pool with little liquidity: the quote may move sharply, and a wider tolerance can expose you to a poor execution. In that case, use a smaller trade only if the refreshed quote remains acceptable, or skip the swap.