Factory
The Vaults Factory is the on-chain assembly line that guarantees every vault starts life with the same security envelope.
Deterministic deployment: The factory deploys a Diamond proxy, wires in the caller-supplied facet bundle, and emits
VaultDeployed
, making provenance trivial to track.Upgrade governor: It stores the address of the canonical
DiamondCutFacet
. Protocol governance can rotate that address, instantly propagating hardened upgrade logic to future vaults.Discovery helpers: Read-only getters like
isFactoryVault
,deployedVaults(i)
, andgetVaultsCount()
let dashboards enumerate official vaults without hard-coded lists.
Because vaults are born through a single factory, audits focus on one deployment path, and integrators can whitelist by provenance instead of by ever-growing address lists.
Last updated