Get the next initialized tick index within the same tick array.
Get the previous initialized tick index within the same tick array.
Get the nearest (rounding down) valid tick index from the tickIndex. A valid tick index is a point on the tick spacing grid line.
Get the offset index to access a tick at a given tick-index in a tick-array
The tick index for the tick that this offset would access
The starting tick for the array that this tick-index resides in
The tickSpacing for the Whirlpool that this tickArray belongs to
The offset index that can access the desired tick at the given tick-array
Get the startIndex of the tick array containing tickIndex.
can be used to get neighboring tick array startIndex.
Returns the tick for the inverse of the price that this tick represents. Eg: Consider tick i where Pb/Pa = 1.0001 ^ i inverse of this, i.e. Pa/Pb = 1 / (1.0001 ^ i) = 1.0001^-i
The tick to invert
Generated using TypeDoc
A collection of utility functions when interacting with Ticks.