Documentation Index
Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt
Use this file to discover all available pages before exploring further.
ExponentVault.ixInitializeVault
Creates a new Strategy Vault. This is a static method since the vault doesn’t exist yet at call time. It sets up the vault PDA, mints the initial LP tokens, creates the Squads smart account for policy-gated execution, and registers the vault’s token entries.Usage
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
payer | PublicKey | Yes | Transaction payer and initial LP token recipient |
mint | PublicKey | Yes | Underlying mint used for vault-level price validation |
manager | PublicKey | Yes | Manager of the vault (can differ from payer) |
seedId | SeedId (8 bytes) | Yes | Unique 8-byte seed for the vault PDA |
feeTreasury | PublicKey | Yes | Fee treasury account that receives management fees |
feeTreasuryLpBps | number | Yes | Management fee in basis points |
tokenEntries | TokenEntryInput[] | Yes | Initial set of accepted deposit tokens |
maxLpSupply | bigint | Yes | Maximum LP token supply (deposit cap) |
initialLpAmount | bigint | Yes | Initial LP tokens to mint |
lpDecimals | number | Yes | Decimal places for the LP token |
vaultType | VaultType | Yes | { orderbook: {} } or { generic: {} } |
roles | VaultRoles | Yes | Role membership lists (manager, curator, allocator, sentinel) |
proposalVoteConfig | ProposalVoteConfig | No | Governance voting configuration |
addressLookupTable | PublicKey | Yes | Address lookup table for the vault |
squadsProgram | PublicKey | Yes | Squads v4 program ID |
squadsProgramConfig | PublicKey | Yes | Squads program config account |
squadsTreasury | PublicKey | Yes | Squads treasury account |
squadsSettings | PublicKey | Yes | Squads settings account |
squadsVault | PublicKey | Yes | Squads vault account |
tokenProgram | PublicKey | No | SPL Token program. Defaults to TOKEN_PROGRAM_ID |
Environment object that specifies the program ID.
Returns
TransactionInstruction — a single instruction that creates the vault, mints LP tokens, and sets up the Squads smart account.