GLAMIDL Reference

set_marginfi_policy

Sets the MarginFi policy for group, bank, and borrow-token allowlists.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `set_marginfi_policy` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `set_marginfi_policy` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `set_marginfi_policy` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
policyMarginfiPolicy

Policy & permissions

  • Permission: GLAM state owner via glam_protocol::set_protocol_policy.