GLAMIDL Reference

earn_withdraw

Burn Jupiter Earn jlTokens and withdraw underlying tokens to the GLAM vault.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `earn_withdraw` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `earn_withdraw` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `earn_withdraw` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `earn_withdraw` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `earn_withdraw` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `earn_withdraw` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `earn_withdraw` instruction (see program source for the full constraint).
owner_token_accountwritable`owner_token_account` account required by the `earn_withdraw` instruction (see program source for the full constraint).
recipient_token_accountwritable`recipient_token_account` account required by the `earn_withdraw` instruction (see program source for the full constraint).
lending_adminread-only`lending_admin` account required by the `earn_withdraw` instruction (see program source for the full constraint).
lendingwritable`lending` account required by the `earn_withdraw` instruction (see program source for the full constraint).
mintread-only`mint` account required by the `earn_withdraw` instruction (see program source for the full constraint).
f_token_mintwritable`f_token_mint` account required by the `earn_withdraw` instruction (see program source for the full constraint).
supply_token_reserves_liquiditywritable`supply_token_reserves_liquidity` account required by the `earn_withdraw` instruction (see program source for the full constraint).
lending_supply_position_on_liquiditywritable`lending_supply_position_on_liquidity` account required by the `earn_withdraw` instruction (see program source for the full constraint).
rate_modelread-only`rate_model` account required by the `earn_withdraw` instruction (see program source for the full constraint).
vaultwritable`vault` account required by the `earn_withdraw` instruction (see program source for the full constraint).
claim_accountwritable`claim_account` account required by the `earn_withdraw` instruction (see program source for the full constraint).
liquiditywritable`liquidity` account required by the `earn_withdraw` instruction (see program source for the full constraint).
liquidity_programwritable`liquidity_program` account required by the `earn_withdraw` instruction (see program source for the full constraint).
rewards_rate_modelread-only`rewards_rate_model` account required by the `earn_withdraw` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `earn_withdraw` instruction (see program source for the full constraint).
associated_token_programread-only`associated_token_program` account required by the `earn_withdraw` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
amountu64
max_shares_burnu64

Policy & permissions

  • Permission: EarnPermissions::Withdraw.
  • Policy: underlying mint must be in EarnPolicy::mints_allowlist.