GLAMIDL Reference

deposit

Deposits.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `deposit` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `deposit` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `deposit` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `deposit` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `deposit` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `deposit` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `deposit` instruction (see program source for the full constraint).
statewritable`state` account required by the `deposit` instruction (see program source for the full constraint).
msol_mintwritable`msol_mint` account required by the `deposit` instruction (see program source for the full constraint).
liq_pool_sol_leg_pdawritable`liq_pool_sol_leg_pda` account required by the `deposit` instruction (see program source for the full constraint).
liq_pool_msol_legwritable`liq_pool_msol_leg` account required by the `deposit` instruction (see program source for the full constraint).
liq_pool_msol_leg_authorityread-only`liq_pool_msol_leg_authority` account required by the `deposit` instruction (see program source for the full constraint).
reserve_pdawritable`reserve_pda` account required by the `deposit` instruction (see program source for the full constraint).
mint_towritable`mint_to` account required by the `deposit` instruction (see program source for the full constraint).
msol_mint_authorityread-only`msol_mint_authority` account required by the `deposit` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `deposit` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
lamportsu64

Policy & permissions

  • Marinade integration must be enabled.
  • Signer must be the GLAM owner or a delegate holding Marinade Stake before depositing SOL for mSOL.