MarginFi Integration StagingStaging
kamino_withdraw
Withdraws Kamino-backed collateral from a MarginFi account.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | `glam_state` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| glam_vault | writable | `glam_vault` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| glam_signer | signer, writable | `glam_signer` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| integration_authority | read-only | `integration_authority` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| cpi_program | read-only | `cpi_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| glam_protocol_program | read-only | `glam_protocol_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| system_program | read-only | `system_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| group | read-only | `group` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| marginfi_account | writable | `marginfi_account` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| bank | writable | `bank` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| destination_token_account | writable | `destination_token_account` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| liquidity_vault_authority | writable | `liquidity_vault_authority` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| liquidity_vault | writable | `liquidity_vault` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| integration_acc_2 | writable | `integration_acc_2` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| lending_market | read-only | `lending_market` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| lending_market_authority | read-only | `lending_market_authority` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| integration_acc_1 | writable | `integration_acc_1` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| mint | writable | `mint` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| reserve_liquidity_supply | writable | `reserve_liquidity_supply` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| reserve_collateral_mint | writable | `reserve_collateral_mint` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| reserve_source_collateral | writable | `reserve_source_collateral` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| obligation_farm_user_state | writable, optional | `obligation_farm_user_state` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| reserve_farm_state | writable, optional | `reserve_farm_state` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| kamino_program | read-only | `kamino_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| farms_program | read-only | `farms_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| collateral_token_program | read-only | `collateral_token_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| liquidity_token_program | read-only | `liquidity_token_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
| instruction_sysvar_account | read-only | `instruction_sysvar_account` account required by the `kamino_withdraw` instruction (see program source for the full constraint). |
Arguments
| Argument | Type | Notes |
|---|---|---|
| amount | u64 | |
| withdraw_all | option<bool> |
Policy & permissions
- Permission:
MarginfiPermissions::Withdraw.