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:
Returns: Address of the registered oracle for the pair.
getPrice
Returns the current price for an asset pair from the registered oracle. Signature:
Returns: Current price of base asset denominated in quote asset.
setOracle
Registers or updates an oracle for an asset pair. Only callable by the registry owner. Signature: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:
Returns: Amount of fees accrued.
reportValue
Reports the current vault value for fee calculation. Starts or updates the time-delayed fee accrual window. Signature: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:
Returns: Amount of fees accrued.
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:
This page was manually created as a baseline. Run the contract reference generation pipeline to update with complete NatSpec documentation from the Solidity source.