Interface CalculateLimitPriceParams

Parameters for calculating sqrt price limit

interface CalculateLimitPriceParams {
    pool: `0x${string}`;
    slippageBP: number;
    zeroForOne: boolean;
    ammType: AMMType;
    token0: `0x${string}`;
    token1: `0x${string}`;
}

Properties

pool: `0x${string}`

Address of the pool

slippageBP: number

Slippage tolerance in basis points

zeroForOne: boolean

true if swapping token0 for token1, false otherwise

ammType: AMMType

Type of AMM

token0: `0x${string}`

Address of token0

token1: `0x${string}`

Address of token1