GLAMIDL Reference

lending_account_withdraw

Withdraws liquidity from a MarginFi account to the GLAM vault.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
groupread-only`group` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
marginfi_accountwritable`marginfi_account` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
bankwritable`bank` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
destination_token_accountwritable`destination_token_account` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
bank_liquidity_vault_authorityread-only`bank_liquidity_vault_authority` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
liquidity_vaultwritable`liquidity_vault` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `lending_account_withdraw` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
amountu64
withdraw_alloption<bool>

Policy & permissions

  • Permission: MarginfiPermissions::Withdraw.