Deploying a New Vault

A deployment involves a single factory call followed by automatic registry listing. No manual proxy setup nor ABI juggling is necessary.

  1. Assemble facet bundle: Compile the set of facets that allow you to implement your strategy and load their function selectors into an array.

  2. Call deployVault on the VaultsFactory: Pass the facet bundle, the wrapped‑native token address, and the registry you want to join. The factory mints a Diamond proxy, wires the facets, emits VaultDeployed, and pushes the address into deployedVaults[].

  3. Registry handshake: The new vault registers itself in the chosen registry, marking it discoverable by front‑ends that filter on isFactoryVault.

  4. Verify on‑chain: Query getDeployedVaults() or listen for the VaultDeployed event to fetch the address and initial facet map.

Last updated