Skip to main content

TickMath

TickMath#

Functions#

getSqrtRatioAtTick(int24 tick) → uint160 sqrtPriceX96 (internal)

Calculates sqrt(1.0001^tick) * 2^96

Throws if |tick| > max tick

Parameters:#

  • tick: The input tick for the above formula
getTickAtSqrtRatio(uint160 sqrtPriceX96) → int24 tick (internal)