Skip to main content

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

The second argument is an 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.

TokenEntryInput

Deriving the Vault Address

After initialization, you can derive the vault PDA from its seed: