• Calculate the quote for decreasing liquidity given a token a amount

    Parameters

    • token_amount_a - The amount of token a to decrease
    • slippage_tolerance - The slippage tolerance in bps
    • current_sqrt_price - The current sqrt price of the pool
    • tick_index_1 - The first tick index of the position
    • tick_index_2 - The second tick index of the position
    • transfer_fee_a - The transfer fee for token A in bps
    • transfer_fee_b - The transfer fee for token B in bps

    Returns

    • A DecreaseLiquidityQuote struct containing the estimated token amounts

    Parameters

    • token_amount_a: bigint
    • slippage_tolerance_bps: number
    • current_sqrt_price: bigint
    • tick_index_1: number
    • tick_index_2: number
    • Optionaltransfer_fee_a: null | TransferFee
    • Optionaltransfer_fee_b: null | TransferFee

    Returns DecreaseLiquidityQuote