GLAMIDL Reference

collect_reward_v2

Collect one reward emission using Token-2022-aware accounts.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
whirlpoolread-only`whirlpool` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
positionwritable`position` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
position_token_accountread-only`position_token_account` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
reward_owner_accountwritable`reward_owner_account` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
reward_mintread-only`reward_mint` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
reward_vaultwritable`reward_vault` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
reward_token_programread-only`reward_token_program` account required by the `collect_reward_v2` instruction (see program source for the full constraint).
memo_programread-only`memo_program` account required by the `collect_reward_v2` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
reward_indexu8
remaining_accounts_infooption<RemainingAccountsInfo>

Policy & permissions

  • Permission: CollectReward.