pub fn decrease_liquidity_quote_a(
token_amount_a: u64,
slippage_tolerance_bps: u16,
current_sqrt_price: u128,
tick_index_1: i32,
tick_index_2: i32,
transfer_fee_a: Option<TransferFee>,
transfer_fee_b: Option<TransferFee>,
) -> Result<DecreaseLiquidityQuote, CoreError>Expand description
Calculate the quote for decreasing liquidity given a token a amount
§Parameters
token_amount_a- The amount of token a to decreaseslippage_tolerance- The slippage tolerance in bpscurrent_sqrt_price- The current sqrt price of the pooltick_index_1- The first tick index of the positiontick_index_2- The second tick index of the positiontransfer_fee_a- The transfer fee for token A in bpstransfer_fee_b- The transfer fee for token B in bps
§Returns
- A DecreaseLiquidityQuote struct containing the estimated token amounts