GLAMIDL Reference

deposit

Ember deposit: converts the vault's input mint into the Phoenix-side output mint.

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).
ember_stateread-only`ember_state` account required by the `deposit` instruction (see program source for the full constraint).
input_mintread-only`input_mint` account required by the `deposit` instruction (see program source for the full constraint).
output_mintwritable`output_mint` account required by the `deposit` instruction (see program source for the full constraint).
input_token_accountwritable`input_token_account` account required by the `deposit` instruction (see program source for the full constraint).
output_token_accountwritable`output_token_account` account required by the `deposit` instruction (see program source for the full constraint).
ember_vaultwritable`ember_vault` 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
deposit_paramsDepositParams

Policy & permissions

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