Type Alias CollectRewardV2Params

CollectRewardV2Params: {
    position: PublicKey;
    positionAuthority: PublicKey;
    positionTokenAccount: PublicKey;
    rewardIndex: number;
    rewardMint: PublicKey;
    rewardOwnerAccount: PublicKey;
    rewardTokenProgram: PublicKey;
    rewardTransferHookAccounts?: AccountMeta[];
    rewardVault: PublicKey;
    whirlpool: PublicKey;
}

Parameters to collect rewards from a reward index in a position.

PublicKey for the whirlpool that the position will be opened for.

PublicKey for the position will be opened for.

PublicKey for the position token's associated token address.

authority that owns the token corresponding to this desired position.

The reward index that we'd like to initialize. (0 <= index <= NUM_REWARDS).

PublicKey for the reward token mint.

PublicKey for the reward token account that the reward will deposit into.

PublicKey of the vault account that reward will be withdrawn from.

Optional array of token transfer hook accounts for the reward token.

PublicKey for the token program.