Derive the tick index from a sqrt price. The precision of this method is only guarranted if tick is within the bounds of {max, min} tick-index.
sqrt_price
Ok
Derive the tick index from a sqrt price. The precision of this method is only guarranted if tick is within the bounds of {max, min} tick-index.
Parameters
sqrt_price
- A u128 integer representing the sqrt priceReturns
Ok
: A i32 integer representing the tick integer