MarginFi Integration StagingStaging
set_marginfi_policy
Sets the MarginFi policy for group, bank, and borrow-token allowlists.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | `glam_state` account required by the `set_marginfi_policy` instruction (see program source for the full constraint). |
| glam_signer | signer, writable | `glam_signer` account required by the `set_marginfi_policy` instruction (see program source for the full constraint). |
| glam_protocol_program | read-only | `glam_protocol_program` account required by the `set_marginfi_policy` instruction (see program source for the full constraint). |
Arguments
| Argument | Type | Notes |
|---|---|---|
| policy | MarginfiPolicy |
Policy & permissions
- Permission: GLAM state owner via
glam_protocol::set_protocol_policy.