Documentation
    Preparing search index...
    • 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

      Parameters

      • sqrt_price: bigint

      Returns bigint