GLAMIDL Reference

remove_registered_position

Removes a registered position from the RPI policy and observation state.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `remove_registered_position` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `remove_registered_position` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `remove_registered_position` instruction (see program source for the full constraint).
observation_statewritable`observation_state` account required by the `remove_registered_position` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `remove_registered_position` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `remove_registered_position` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `remove_registered_position` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
position_id[u8; 32]

Policy & permissions

  • Signer must hold the RPI Configure ACL permission on the GLAM state and be on the position's configure allowlist.
  • Persistence is gated through GLAM Protocol's owner-only protocol-policy persistence path — so a delegate with Configure cannot complete the removal by itself.
  • The position is removed from the RPI policy and observation state, and vault registered-position coverage is synced through cpi_proxy side effects.