GLAMIDL Reference

deposit_sol

Deposits sol.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `deposit_sol` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `deposit_sol` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `deposit_sol` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `deposit_sol` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `deposit_sol` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `deposit_sol` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `deposit_sol` instruction (see program source for the full constraint).
stake_poolwritable`stake_pool` account required by the `deposit_sol` instruction (see program source for the full constraint).
stake_pool_withdraw_authorityread-only`stake_pool_withdraw_authority` account required by the `deposit_sol` instruction (see program source for the full constraint).
reserve_stakewritable`reserve_stake` account required by the `deposit_sol` instruction (see program source for the full constraint).
pool_tokens_towritable`pool_tokens_to` account required by the `deposit_sol` instruction (see program source for the full constraint).
fee_accountwritable`fee_account` account required by the `deposit_sol` instruction (see program source for the full constraint).
pool_mintwritable`pool_mint` account required by the `deposit_sol` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `deposit_sol` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
lamports_inu64
minimum_pool_tokens_outoption<u64>

Policy & permissions

  • The target protocol is derived from the supplied stake-pool program and must be enabled on the GLAM state.
  • Signer must be the GLAM owner or a delegate holding Stake Pool DepositSolAny — or DepositSol suffices when the pool mint is already in the vault asset allowlist.