Slippage

Slippage protects users from unexpected price changes between the quote and the execution. It defines the minimum amount expected out (or maximum amount accepted in).

Example:

  • Estimated output: 65.1421

  • Slippage: 0.5%

  • Minimum acceptable output: 65.1421 * (1 - 0.005) = 64.8164

In the API response:

"slippagePercent": "0.50",
"minAmountIn": "64816407409161420085",
"humanMinAmountIn": "64.81640740916142008542"

💡 The router enforces this — if the output falls below minAmountIn, the transaction reverts.

Last updated