Documentation
    Preparing search index...
    • Calculate the amount A delta between two sqrt_prices

      Parameters

      • sqrt_price_1: The first square root price
      • sqrt_price_2: The second square root price
      • liquidity: The liquidity
      • round_up: Whether to round up or not

      Returns

      • u64: The amount delta

      Parameters

      • sqrt_price_1: bigint
      • sqrt_price_2: bigint
      • liquidity: bigint
      • round_up: boolean

      Returns bigint