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.
This function will make panic for zero sqrt price.
Parameters
sqrt_price - A u128 integer representing the sqrt price
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. This function will make panic for zero sqrt price.
Parameters
sqrt_price
- A u128 integer representing the sqrt priceReturns
Ok
: A i32 integer representing the tick integer