Skip to main content
Uruguay Can

News from across crypto

Price Impact in a DEX Swap Quote: Impact vs. Slippage

Price impact in a DEX swap quote is already reflected in expected output; slippage happens before execution, while tolerance sets your minimum acceptable output.

Uruguay Can Editorial

Price Impact in a DEX Swap Quote: Impact vs. Slippage

Price impact in a DEX swap quote is the estimated effect your trade has on its execution rate, already reflected in the quoted output. An automated market maker (AMM) prices your proposed swap against current liquidity, so a larger trade relative to that liquidity generally gets a worse average rate.

A DEX quote is an estimate for swapping now. A lifi bridge is a cross-chain aggregator that finds routes across supported bridges and decentralized exchanges. If a route involves wrapped ether, the lifi bridge's WETH-versus-ETH difference helps identify the token you hold and the asset that pays gas.

Price impact is already in the quote

When an AMM swap consumes liquidity across prices, the quoted output reflects the average rate across the proposed trade. That difference from a reference price is the estimated price impact. Uniswap quotes, for instance, show the output expected from the trade against available liquidity.

Take a hypothetical exact-input swap with fees ignored. If 1,000 reference tokens would be worth 1,000 output tokens at the reference rate, a 2% impact gives you a quote of 980 tokens. The 20-token gap is already accounted for; it is not additional slippage to subtract later.

Slippage tolerance sets the allowed quote-to-execution change

Actual slippage is the change between the quoted output and the output available when your transaction executes. Tolerance is the adverse change you are willing to accept from the quote. It sets an acceptance limit; it does not change the quote’s expected output.

With a 1% tolerance on the 980-token quote, the minimum acceptable output is 980 × 0.99 = 970.2 tokens. Exact-input swaps commonly enforce this floor with amountOutMinimum. If execution would return less than 970.2, the swap fails rather than completing below your limit.

The two percentages compound against the original reference: 1 − (0.98 × 0.99) = 2.98%. So 2% impact followed by 1% adverse slippage means a 2.98% shortfall from the reference output, not exactly 3%.

Before submitting, read the quoted output, apply your tolerance to find the minimum, then decide whether that floor is acceptable. This lets you judge trade-size cost separately from the execution variation you permit.