You see a price, press buy, and get a slightly different price. The difference has two causes, and they are worth telling apart.

Price impact

Trading pools work by a formula. When you buy, you take tokens out of the pool and put money in, which moves the price up. The bigger your trade compared with the pool, the bigger the move. That effect of your own order is price impact, and it is known before you trade.

Slippage

Slippage is the extra movement between the moment you see a quote and the moment your transaction lands, because other people are trading too. In a fast market a quote can be stale by the time it confirms.

Slippage tolerance

Most apps let you set a slippage tolerance, for example 1%. If the final price would be worse than that, the trade fails instead of filling badly. A tolerance that is too tight means failed trades. One that is too loose means you may accept a bad price, and can be exploited by bots that trade around you (sometimes called sandwich attacks).

How to limit both

  • Compare trade size with pool liquidity. Smaller trades in deeper pools move the price less.
  • Split a large order into smaller ones when the pool is thin.
  • Use a sensible tolerance, and read the quote before confirming.