GLAMIDL Reference

decrease_liquidity_v2

Decrease liquidity in an Orca Whirlpools position using Token-2022-aware accounts.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
whirlpoolwritable`whirlpool` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_program_aread-only`token_program_a` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_program_bread-only`token_program_b` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
memo_programread-only`memo_program` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
positionwritable`position` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
position_token_accountread-only`position_token_account` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_mint_aread-only`token_mint_a` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_mint_bread-only`token_mint_b` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_owner_account_awritable`token_owner_account_a` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_owner_account_bwritable`token_owner_account_b` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_vault_awritable`token_vault_a` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
token_vault_bwritable`token_vault_b` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
tick_array_lowerwritable`tick_array_lower` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).
tick_array_upperwritable`tick_array_upper` account required by the `decrease_liquidity_v2` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
liquidity_amountu128
token_min_au64
token_min_bu64
remaining_accounts_infooption<RemainingAccountsInfo>

Policy & permissions

  • Permission: DecreaseLiquidity.