GLAMIDL Reference

create_strategy

Create a direct lender strategy owned by the GLAM vault.

Required conditions

  • The vault integration ACL must enable this integration before the instruction is accepted; that enablement is defined on the GLAM state account.
  • If the signer is not the owner, the delegate ACL on the GLAM state must contain the exact protocol permission required by this instruction; registering a delegate alone is insufficient.
  • Instruction-specific destination accounts must satisfy the external protocol's own account model; GLAM validates the accounts it needs for authorization and policy enforcement, then passes the remaining protocol accounts through CPI.
  • Creation-style flows require the target account or PDA to be uninitialized or intentionally updatable, the fee payer to be writable, and the System Program to be present when rent or allocation is needed.
  • The instruction metadata names CreateStrategy as the delegate permission for this instruction.
  • the lender argument must be the GLAM vault.
  • any external yield-source configuration must be unset.
  • principal_mint must be present in the Loopscale deposit allowlist.
  • market_information must be present in the Loopscale markets allowlist.

Accounts

Uses the standard Big Seven account pattern, plus the instruction-specific accounts below.

AccountRoleDescription
bs_authsignerFixed program or sysvar account.
noncesignernonce account read by Loopscale Integration Staging's create strategy instruction.
strategywritableExternal strategy account.
market_informationread-onlyLoopscale market information account for the strategy, collateral, or principal asset.
principal_mintread-onlyToken mint account.
event_authorityread-onlyAnchor event authority PDA used when the invoked program emits events.

Arguments

ArgumentTypeNotes
paramsCreateStrategyParams

Policy & permissions

  • Enable the Loopscale integration program on the vault integration ACL before Loopscale position actions.
  • Delegate permission: CreateStrategy.