Function invert_sqrt_price
pub fn invert_sqrt_price(sqrt_price: u128) -> u128
Expand description
Get the sqrt price for the inverse of the price that this tick represents. Because converting to a tick index and then back to a sqrt price is lossy, this function is clamped to the nearest tick index.
§Parameters
sqrt_price
- A u128 integer representing the sqrt price
§Returns
- A u128 integer representing the sqrt price for the inverse of the price