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