Get the next initialized tick index within the same tick array.
Get the previous initialized tick index within the same tick array.
Get the minimum and maximum tick index that can be initialized.
The tickSpacing for the Whirlpool
An array of numbers where the first element is the minimum tick index and the second element is the maximum tick index.
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
Check if the tick range is the full range of the Whirlpool.
The tickSpacing for the Whirlpool
The lower tick index of the range
The upper tick index of the range
true if the range is the full range of the Whirlpool, false otherwise.
Generated using TypeDoc
A collection of utility functions when interacting with Ticks.