The SubvaultModule represents an isolated child vault within a modular vault system. It is tightly controlled by its parent vault (typically a VaultModule) and is responsible for securely holding and releasing assets upon authenticated requests.
Verifier setup for this specific subvaultpullAssets calls from the parent vault onlySubvaultModuleStorage)struct SubvaultModuleStorage {
address vault;
}
vault: Address of the root vault that controls this subvault. Only this address can request asset withdrawals.The layout is stored in a deterministic custom slot derived using:
SlotLibrary.getSlot("SubvaultModule", name_, version_)
vault() → addressReturns the address of the parent vault that instantiated this subvault.
pullAssets(asset: address, value: uint256)Allows the parent vault to withdraw a specified amount of an asset.
vault() addressNotVault() if the caller is not the vaultTransferLibrary.sendAssets() to forward tokens or native ETH to the Vault.sol address