Before starting, make sure you have:
- A wallet with guardian permissions on the target vault
- viem 2.x installed (
npm install viem) or Foundry for thecastCLI - Familiarity with the Aera V3 Guardian Model
Setup
Configure your environment for interacting with the vault contract. The guardian needs both a signing wallet and a way to read on-chain state.Strategy Execution
Strategy execution is the guardian’s core responsibility — submitting operations that allocate capital, rebalance positions, and interact with DeFi protocols on behalf of the vault. Operations are submitted in batches and validated against the guardian’s Merkle tree before execution.Submitting Operations
Thesubmit function on BaseVault accepts an array of operations to execute atomically. Each operation specifies a target contract, calldata, and Merkle proof elements. For the full Operation struct and validation details, see the BaseVault Contract Reference.
Operations are validated against the guardian’s Merkle tree on-chain. If an operation’s proof is invalid or the target is not whitelisted, the entire batch reverts with
Vault__InvalidProof. The vault owner sets the Merkle root via setGuardianRoot.Reading Vault State
Monitor vault state between submissions to inform strategy decisions. The Gauntlet API provides pre-computed metrics, while on-chain reads give real-time contract state. Via API — For vault metrics including TVL, APY, and share price, use the Gauntlet API. See Displaying Data for complete API coverage and endpoint details. Via on-chain reads — Query the vault contract directly for current state:Rebalancing
Rebalancing is submitting a new batch of operations that adjusts the vault’s position allocations. A typical rebalance involves multiple chained operations — for example, withdrawing from one protocol and depositing into another in a single atomic submission.Fee Reporting
Fee reporting ensures accurate fee accrual for the vault owner and fee recipient. The guardian periodically reports the vault’s current value, which the fee calculator uses to compute management and performance fees.How Fees Work
Single-depositor vaults use theDelayedFeeCalculator for fee computation. Two fee types apply:
- Management fee — A percentage of assets under management (AUM), accruing over time. The fee is proportional to the vault value and the time elapsed since the last report.
- Performance fee — A percentage of gains above a high-water mark. Only accrues when the vault value exceeds its previous peak.
DelayedFeeCalculator uses time-delayed accrual to prevent fee manipulation through short-term vault value changes. See the Periphery Contract Reference for full function signatures.
Reporting Fees
Report the current vault value to trigger fee calculation. This updates the fee calculator’s internal state and starts the delayed accrual window.Claiming Fees
The fee recipient claims accrued fees from the vault. Specify the token, amount, and recipient address.Monitoring Accrued Fees
Check how much in fees has accrued and is available for claiming.Emergency Procedures
Emergency procedures allow the guardian to halt vault operations immediately if a security concern arises. These are safety mechanisms — use them when you detect anomalous conditions, compromised keys, or unexpected protocol behavior.Pausing the Vault
Callingpause immediately halts all guardian operations on the vault. Both the guardian and the vault owner can pause.
Checking Pause Status
Verify whether the vault is currently paused before attempting operations.Guardian Whitelist Check
Verify that the guardian is still authorized on the vault’s whitelist. Anyone can call this function — if the guardian fails the whitelist check, they are removed from the vault.Related Pages
- Multi-Depositor Vaults — Guardian operations for shared liquidity pools with order solving
- Custom Hooks — Building and deploying custom hooks for vault operations
- Guardian Model — How the guardian role works at the protocol level
- Hooks — How hooks validate and extend guardian operations
- BaseVault Contract Reference — Full ABI for submit, pause, and guardian functions
- FeeVault Contract Reference — Fee reporting and claiming functions
- Periphery Contract Reference — DelayedFeeCalculator and OracleRegistry