GLAMIDL Reference

lending_account_repay

Repays borrowed liquidity from the GLAM vault to a MarginFi account.

Accounts

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

Arguments

ArgumentTypeNotes
amountu64
repay_alloption<bool>

Policy & permissions

  • Permission: MarginfiPermissions::Repay.