Function collect_rewards_quote
pub fn collect_rewards_quote(
whirlpool: WhirlpoolFacade,
position: PositionFacade,
tick_lower: TickFacade,
tick_upper: TickFacade,
current_timestamp: u64,
transfer_fee_1: Option<TransferFee>,
transfer_fee_2: Option<TransferFee>,
transfer_fee_3: Option<TransferFee>,
) -> Result<CollectRewardsQuote, &'static str>
Expand description
Calculate rewards owed for a position
§Paramters
whirlpool
: The whirlpool stateposition
: The position statetick_lower
: The lower tick statetick_upper
: The upper tick statecurrent_timestamp
: The current timestamptransfer_fee_1
: The transfer fee for token 1transfer_fee_2
: The transfer fee for token 2transfer_fee_3
: The transfer fee for token 3
§Returns
CollectRewardsQuote
: The rewards owed for the 3 reward tokens.