GLAMIDL Reference

open_position_with_token_extensions

Open a Token-2022 Orca Whirlpools position owned by the GLAM vault.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
positionwritable`position` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
position_mintsigner, writable`position_mint` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
position_token_accountwritable`position_token_account` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
whirlpoolread-only`whirlpool` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
token_2022_programread-only`token_2022_program` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
associated_token_programread-only`associated_token_program` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).
metadata_update_authread-only`metadata_update_auth` account required by the `open_position_with_token_extensions` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
tick_lower_indexi32
tick_upper_indexi32
with_token_metadata_extensionbool

Policy & permissions

  • Permission: OpenPosition.
  • Policy: Whirlpool and both pool token mints must be allowlisted.