GLAMIDL Reference

borrow_init_position

Initialize a Jupiter Borrow position NFT owned by the GLAM vault.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `borrow_init_position` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `borrow_init_position` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `borrow_init_position` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `borrow_init_position` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `borrow_init_position` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `borrow_init_position` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `borrow_init_position` instruction (see program source for the full constraint).
vault_adminread-only`vault_admin` account required by the `borrow_init_position` instruction (see program source for the full constraint).
vault_statewritable`vault_state` account required by the `borrow_init_position` instruction (see program source for the full constraint).
positionwritable`position` account required by the `borrow_init_position` instruction (see program source for the full constraint).
position_mintwritable`position_mint` account required by the `borrow_init_position` instruction (see program source for the full constraint).
position_token_accountwritable`position_token_account` account required by the `borrow_init_position` instruction (see program source for the full constraint).
metadata_accountwritable`metadata_account` account required by the `borrow_init_position` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `borrow_init_position` instruction (see program source for the full constraint).
associated_token_programread-only`associated_token_program` account required by the `borrow_init_position` instruction (see program source for the full constraint).
sysvar_instructionread-only`sysvar_instruction` account required by the `borrow_init_position` instruction (see program source for the full constraint).
metadata_programread-only`metadata_program` account required by the `borrow_init_position` instruction (see program source for the full constraint).
rentread-only`rent` account required by the `borrow_init_position` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
vault_idu16
next_position_idu32

Policy & permissions

  • Permission: BorrowPermissions::InitPosition.
  • Policy: vault_state must be in BorrowPolicy::vaults_allowlist.