Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Reference: sushi/evm V3 Pool

V3 pool exports provide local SushiSwap V3 pool, tick, swap, and position math.

High-value exports

ExportPurpose
SushiSwapV3PoolV3 pool state and swap math.
PositionConcentrated liquidity position math.
Tick, TickDataProvider, TickListDataProviderTick data model/providers.
TickMath, SqrtPriceMath, SwapMath, LiquidityMathAdvanced V3 math utilities.

SushiSwapV3Pool

MemberPurpose
getAddress(tokenA, tokenB, fee, ...)Compute V3 pool address (static).
constructor(...)Construct from token pair, fee, sqrt price, liquidity, current tick, and optional ticks.
token0, token1, fee, sqrtRatioX96, liquidity, tickCurrentPool state.
tickDataProviderTick data provider used for swap math.
token0Price, token1Price, priceOf(token)Price helpers.
chainId, tickSpacingChain and fee-derived spacing.
getOutputAmount, getInputAmountSwap math (async, return Promises).

Position

MemberPurpose
constructor({ pool, tickLower, tickUpper, liquidity })Construct a position.
token0PriceLower, token0PriceUpperPosition boundary prices.
amount0, amount1Current token amounts.
mintAmountsToken amounts needed to mint.
mintAmountsWithSlippageMint amounts adjusted for slippage.
burnAmountsWithSlippageBurn amounts adjusted for slippage.
fromAmounts, fromAmount0, fromAmount1Construct positions from desired token amounts.

Advanced utilities cover tick math, sqrt price math, liquidity math, calldata helpers, pool address computation, and price/tick conversion. Use them when building lower-level V3 integrations.