Slippage

Slippage in Swap

Slippage in swap refers to the difference between the price you see when you submit a swap and the price you actually get when it executes on-chain. DEX prices can change rapidly during the block confirmation time, your final exchange rate may vary.

To protect users in Byreal, we allows users to set a swap slippage tolerance — the maximum price deviation you’re willing to accept. If the price moves beyond that threshold, the swap will automatically revert to prevent unexpected losses.

Example

If you set a 1% slippage tolerance and the price changes by more than that before execution, the trade will fail automatically.

Slippage in Liquidity Provision

Slippage in liquidity provision refers to the potential deviation between your expected token deposit amounts and the actual amounts required when executing an add-liquidity transaction. This occurs because V3 requires liquidity to be concentrated within specific price ranges (ticks).

To manage this, Byreal allows you to set a liquidity slippage tolerance — the maximum percentage deviation from the expected amount that you are willing to deposit. If the actual execution amount exceeds your specified tolerance, the add-liquidity transaction will automatically revert.

Last updated