orca_whirlpools_docs::orca_whirlpools_core

Function increase_liquidity_quote

pub fn increase_liquidity_quote(
    liquidity_delta: u128,
    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<IncreaseLiquidityQuote, &'static str>
Expand description

Calculate the quote for increasing liquidity

§Parameters

  • liquidity_delta - The amount of liquidity to increase
  • 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

  • An IncreaseLiquidityQuote struct containing the estimated token amounts