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
CreateStrategyas the delegate permission for this instruction. - the
lenderargument must be the GLAM vault. - any external yield-source configuration must be unset.
principal_mintmust be present in the Loopscale deposit allowlist.market_informationmust be present in the Loopscale markets allowlist.
Accounts
Uses the standard Big Seven account pattern, plus the instruction-specific accounts below.
| Account | Role | Description |
|---|---|---|
| bs_auth | signer | Fixed program or sysvar account. |
| nonce | signer | nonce account read by Loopscale Integration Staging's create strategy instruction. |
| strategy | writable | External strategy account. |
| market_information | read-only | Loopscale market information account for the strategy, collateral, or principal asset. |
| principal_mint | read-only | Token mint account. |
| event_authority | read-only | Anchor event authority PDA used when the invoked program emits events. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| params | CreateStrategyParams |
Policy & permissions
- Enable the Loopscale integration program on the vault integration ACL before Loopscale position actions.
- Delegate permission:
CreateStrategy.