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 stateposition
: The position statetick_lower
: The lower tick statetick_upper
: The upper tick statetransfer_fee_a
: The transfer fee for token Atransfer_fee_b
: The transfer fee for token B
§Returns
CollectFeesQuote
: The fees owed for token A and token B