orca_whirlpools_docs::orca_whirlpools_core

Function collect_fees_quote

pub fn collect_fees_quote(
    whirlpool: WhirlpoolFacade,
    position: PositionFacade,
    tick_lower: TickFacade,
    tick_upper: TickFacade,
    transfer_fee_a: Option<TransferFee>,
    transfer_fee_b: Option<TransferFee>,
) -> Result<CollectFeesQuote, &'static str>
Expand description

Calculate fees owed for a position

§Paramters

  • whirlpool: The whirlpool state
  • position: The position state
  • tick_lower: The lower tick state
  • tick_upper: The upper tick state
  • transfer_fee_a: The transfer fee for token A
  • transfer_fee_b: The transfer fee for token B

§Returns

  • CollectFeesQuote: The fees owed for token A and token B