Type alias InitializeRewardV2Params

InitializeRewardV2Params: {
    funder: PublicKey;
    rewardAuthority: PublicKey;
    rewardIndex: number;
    rewardMint: PublicKey;
    rewardTokenBadge: PublicKey;
    rewardTokenProgram: PublicKey;
    rewardVaultKeypair: Keypair;
    whirlpool: PublicKey;
}

Parameters to initialize a rewards for a Whirlpool

Type declaration

  • funder: PublicKey
  • rewardAuthority: PublicKey
  • rewardIndex: number
  • rewardMint: PublicKey
  • rewardTokenBadge: PublicKey
  • rewardTokenProgram: PublicKey
  • rewardVaultKeypair: Keypair
  • whirlpool: PublicKey

Param: whirlpool

PublicKey for the whirlpool config space that the fee-tier will be initialized for.

Param: rewardIndex

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

Param: rewardMint

PublicKey for the reward mint that we'd use for the reward index.

Param: rewardTokenBadge

PublicKey for the TokenBadge for this reward mint.

Param: rewardVaultKeypair

Keypair of the vault for this reward index.

Param: rewardAuthority

Assigned authority by the reward_super_authority for the specified reward-index in this Whirlpool

Param: funder

The account that would fund the creation of this account

Param: rewardTokenProgram

PublicKey for the token program.

Generated using TypeDoc