Module tick_math

Module tick_math 

Source

Constants§

MAX_SQRT_RATIO
The maximum value that can be returned from get_sqrt_ratio_at_tick
MIN_SQRT_RATIO
The minimum value that can be returned from get_sqrt_ratio_at_tick

Functions§

get_sqrt_ratio_at_tick
Returns the sqrt ratio as a Q64.96 for the given tick. The sqrt ratio is computed as sqrt(1.0001)^tick.
get_tick_at_sqrt_ratio
Returns the tick corresponding to the given sqrt ratio.