GLAMIDL Reference

kamino_withdraw

Withdraws Kamino-backed collateral from a MarginFi account.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
groupread-only`group` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
marginfi_accountwritable`marginfi_account` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
bankwritable`bank` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
destination_token_accountwritable`destination_token_account` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
liquidity_vault_authoritywritable`liquidity_vault_authority` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
liquidity_vaultwritable`liquidity_vault` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
integration_acc_2writable`integration_acc_2` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
lending_marketread-only`lending_market` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
lending_market_authorityread-only`lending_market_authority` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
integration_acc_1writable`integration_acc_1` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
mintwritable`mint` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
reserve_liquidity_supplywritable`reserve_liquidity_supply` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
reserve_collateral_mintwritable`reserve_collateral_mint` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
reserve_source_collateralwritable`reserve_source_collateral` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
obligation_farm_user_statewritable, optional`obligation_farm_user_state` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
reserve_farm_statewritable, optional`reserve_farm_state` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
kamino_programread-only`kamino_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
farms_programread-only`farms_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
collateral_token_programread-only`collateral_token_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
liquidity_token_programread-only`liquidity_token_program` account required by the `kamino_withdraw` instruction (see program source for the full constraint).
instruction_sysvar_accountread-only`instruction_sysvar_account` account required by the `kamino_withdraw` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
amountu64
withdraw_alloption<bool>

Policy & permissions

  • Permission: MarginfiPermissions::Withdraw.