Skip to content
docs

kyberApiSlippage

kyberApiSlippage(amountOut, bps): number | null

Defined in: protocol-swap2-kyberswap/src/router.ts:258

The slippage to ask KyberSwap for so that its minimum — one unit under the plain floor (kyberMinimum) — still meets the engine’s floor for the slippage the user chose, floor(amountOut × (10000 − bps) / 10000). One basis point less for most outputs; more for a tiny output (a $1 WBTC buy is a few thousand units, where 1 bps is under one unit). Null when no positive slippage does (an output too small to carry a minimum).

bigint

number

number | null