MarginFi Integration StagingStaging
lending_account_repay
Repays borrowed liquidity from the GLAM vault to a MarginFi account.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | `glam_state` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| glam_vault | writable | `glam_vault` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| glam_signer | signer, writable | `glam_signer` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| integration_authority | read-only | `integration_authority` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| cpi_program | read-only | `cpi_program` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| glam_protocol_program | read-only | `glam_protocol_program` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| system_program | read-only | `system_program` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| group | read-only | `group` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| marginfi_account | writable | `marginfi_account` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| bank | writable | `bank` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| signer_token_account | writable | `signer_token_account` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| liquidity_vault | writable | `liquidity_vault` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
| token_program | read-only | `token_program` account required by the `lending_account_repay` instruction (see program source for the full constraint). |
Arguments
| Argument | Type | Notes |
|---|---|---|
| amount | u64 | |
| repay_all | option<bool> |
Policy & permissions
- Permission:
MarginfiPermissions::Repay.