GLAMIDL Reference

marginfi_account_initialize_pda

Initializes a MarginFi account PDA owned by the GLAM vault.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
marginfi_groupread-only`marginfi_group` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
marginfi_accountwritable`marginfi_account` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).
instructions_sysvarread-only`instructions_sysvar` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
account_indexu16
third_party_idoption<u16>

Policy & permissions

  • Permission: MarginfiPermissions::InitAccount.