Overview
Periphery contracts provide supporting infrastructure for the core Aera V3 vault system. They handle price feeds, fee calculation, and other utility functions that the core vaults depend on but are not part of the vault inheritance hierarchy.OracleRegistry
TheOracleRegistry is an ERC-7726 compatible registry of price oracles for asset pairs. Vaults and hooks use it to look up current prices for exchange rate calculations, slippage enforcement, and fee computation.
Functions
getOracle
Returns the oracle address for a given asset pair. Signature:| Parameter | Type | Description |
|---|---|---|
base | address | Base asset address |
quote | address | Quote asset address |
getPrice
Returns the current price for an asset pair from the registered oracle. Signature:| Parameter | Type | Description |
|---|---|---|
base | address | Base asset address |
quote | address | Quote asset address |
setOracle
Registers or updates an oracle for an asset pair. Only callable by the registry owner. Signature:| Parameter | Type | Description |
|---|---|---|
base | address | Base asset address |
quote | address | Quote asset address |
oracle | address | Oracle contract address |
Events
OracleSet
Emitted when an oracle is registered or updated.DelayedFeeCalculator
Fee calculator for SingleDepositorVault vaults. Applies time-delayed fee accrual based on vault values reported by an accountant. The delay prevents fee manipulation through short-term vault value changes.Functions
calculateFees
Calculates accrued fees based on the current vault value and time elapsed since the last report. Signature:| Parameter | Type | Description |
|---|---|---|
vaultValue | uint256 | Current vault value as reported by the accountant |
reportValue
Reports the current vault value for fee calculation. Starts or updates the time-delayed fee accrual window. Signature:| Parameter | Type | Description |
|---|---|---|
vaultValue | uint256 | Current vault value |
PriceAndFeeCalculator
Fee calculator for MultiDepositorVault vaults. Uses unit-based pricing with managed accountant snapshots for fee computation. Integrates with theOracleRegistry for price lookups.
Functions
calculateFees
Calculates accrued fees based on the current unit price and total supply. Signature:| Parameter | Type | Description |
|---|---|---|
unitPrice | uint256 | Current price per vault unit |
totalSupply | uint256 | Total supply of vault units |
snapshot
Takes a snapshot of the current vault state for fee calculation. Called by the guardian as part of the submit flow (typically via anafterSubmit hook).
Signature:
| Parameter | Type | Description |
|---|---|---|
unitPrice | uint256 | Current price per vault unit |
totalSupply | uint256 | Total supply of vault units |
This page was manually created as a baseline. Run the contract reference generation pipeline to update with complete NatSpec documentation from the Solidity source.