• Calculate the next square root price

    Parameters

    • current_sqrt_price: The current square root price
    • current_liquidity: The current liquidity
    • amount: The amount
    • specified_input: Whether the input is specified

    Returns

    • u128: The next square root price

    Parameters

    • current_sqrt_price: bigint
    • current_liquidity: bigint
    • amount: bigint
    • specified_input: boolean

    Returns bigint