Skip to content
ChainBrief

News from across Web3

Why does your DEX quote keep moving before you confirm?

Your DEX quote is a live estimate, not a locked price. Here’s why it changes and how minimums protect your trade.

The ChainBrief Editors

Why does your DEX quote keep moving before you confirm?

Your DEX swap quote changes because it is a snapshot of a moving market, not a reservation. When you open a confirmation window, the output estimate is calculated from the pool state at that exact moment. That state changes constantly as other traders execute swaps, add or remove liquidity, and as the relative prices of the tokens shift. The quote refreshes to reflect the current reality, but the transaction you eventually submit executes against the pool state at the moment your transaction is mined.

The crucial distinction: a refreshed screen quote and an already-submitted transaction’s minimum output are separate values with different purposes.

Consider a simple Ethereum trade: swapping DAI for USDC on a decentralized exchange like Uniswap v3. You see an estimated output of 100 USDC. Before you click confirm, the estimate ticks down to 99.8 USDC. That is the interface showing you the latest available rate. The pool’s reserves have shifted, or a new route has become more efficient. The quote is a live price feed, and it is doing its job by updating.

What changes the quote before you confirm

Two main forces alter the pool state that generates your quote: other swaps and liquidity changes. When another trader buys USDC with DAI, they move the pool’s reserve ratio, which changes the price for the next trade. When a liquidity provider adds or removes funds, the depth of the pool changes, which alters the price impact of your trade. Both events happen continuously across every pool on the network.

Routing also matters. A swap does not have to travel through a single pool. The router may split your trade across multiple pools to get a better average price. If one of those pools becomes less favorable mid-confirmation, the router recalculates the entire route, and your quote changes to reflect the new path. This is why the estimate can shift even if the token prices themselves seem stable.

The Uniswap v3 SwapRouter enforces a parameter called amountOutMinimum for exact-input swaps. This is the smallest amount you are willing to receive. It is your protection against adverse price movement between the moment you sign and the moment your transaction lands. If the actual output would fall below this minimum, the swap reverts and your funds are returned, minus the gas fee.

Assume your quoted output is 100 USDC and you set a 1% slippage tolerance. The minimum is 99 USDC. The transaction can execute at 99.5 USDC, 99.1 USDC, or exactly 99 USDC—all within your protection. It can also execute at 100.2 USDC if the market moves in your favor. The minimum does not guarantee the quoted amount; it caps the worst-case loss you are willing to accept.

Price impact and execution slippage are not the same

Price impact is built into the estimate before you confirm. It is the measurable effect your own trade has on the pool’s price, determined by your trade size relative to the available liquidity. A large trade against a shallow pool moves the price noticeably, and the quote reflects that. Execution slippage is different: it is the movement that happens after the quote is generated, caused by other market activity while your transaction waits in the mempool.

This is where slippage tolerance becomes a practical decision. A tight tolerance, like 0.1%, protects you from unfavorable moves but increases the chance your transaction reverts during volatile periods. A wider tolerance, like 1% or 2%, ensures your trade goes through but exposes you to a worse fill. The right setting depends on the token pair and current market conditions.

The same mechanism applies on other Avalanche-based decentralized exchanges. Blackhole swap, for example, can revert when adverse movement exceeds its slippage tolerance. If you set a 1% tolerance and the market moves 1.5% against you before execution, the swap fails rather than filling at a worse rate. That revert is the protocol enforcing the limit you set, not an error. If you want to compare how this works across platforms, the blackhole swap vs uniswap comparison shows how each handles the same execution risk. You can review the difference in how they present slippage and route trades before you commit funds.

One common slip is confusing the refreshed quote with the authorized minimum. A trader sees the estimate drop from 100 USDC to 98 USDC after confirming, assumes the swap executed at a loss, and panics. In reality, the quote on screen updates continuously, while the transaction’s minimum was set at submission. The fill price is determined by the pool state at execution, not by the last quote displayed. The minimum protects the downside; it does not freeze the price.

DEX Quote Expired or Unavailable

Why does my dex quote expire?

The quote’s validity window ended. Most interfaces mark a quote stale after a short period, typically 30 seconds to a few minutes, because the underlying pool data is no longer reliable. Request a new quote before submitting.

Why is my dex quote unavailable?

Routing may lack usable liquidity or accessible quote data for the selected pair. This often happens for illiquid tokens or when the pools are too shallow to support the trade size. Try a smaller amount or a different token pair.

Choosing Slippage Tolerance and Protecting Your Trade

How should I choose slippage tolerance?

Start with 0.5% for liquid pairs like DAI-USDC. Increase to 1% for volatile tokens or low-liquidity pairs. The trade-off is between fill certainty and price protection.

How do sandwich attacks affect execution?

A sandwich attack places a transaction before and after yours to move the price against you. A tighter slippage tolerance limits the damage but makes the attack more likely to fail. Use private transaction routing if the protocol offers it.

Can a limit order replace repeated quoting?

Yes, if the protocol supports them. A limit order executes only when the price reaches your target, removing the need to monitor changing quotes. Not all DEXs offer this feature.