Skip to main content

createWrapperAddPolicyInstruction

Adds a Squads policy to the vault via self-CPI using the vault’s signer seeds. This instruction enforces that the vault has zero AUM (empty vault only), ensuring policies are configured before any deposits are accepted. Typically called during initial vault setup to establish the execution policies that govern strategy allocations. Once the vault holds depositor funds (AUM > 0), use a governance proposal with PolicyAction instead. See Propose Action.

Usage

Accounts

Args

Returns

TransactionInstruction — a transaction instruction ready to be added to a transaction.