Overview
FeeVault manages fee accrual and distribution for Aera V3 vaults. Fees accrue over time based on vault performance and are calculated by a dedicated fee calculator contract — DelayedFeeCalculator for single-depositor vaults or PriceAndFeeCalculator for multi-depositor vaults.
The guardian or fee recipient can claim accrued fees, but cannot manipulate the fee calculation itself. Fee accrual uses time-delayed or snapshot-based mechanisms to prevent manipulation through timing. The vault owner configures fee parameters and recipient addresses.
For the conceptual model of how fees work in the Aera V3 protocol, see Curation and Security.
Functions
reportFees
Reports the current fee state to the vault. Called by the guardian or fee calculator to update accrued fee amounts based on the latest vault value. Signature:| Parameter | Type | Description |
|---|---|---|
vaultValue | uint256 | Current vault value for fee calculation |
claimFees
Claims accrued fees for the caller. The fee recipient can withdraw their accrued fees from the vault. Signature:| Parameter | Type | Description |
|---|---|---|
token | address | Token address to claim fees in |
amount | uint256 | Amount of fees to claim |
recipient | address | Address to receive the claimed fees |
setFeeRecipient
Sets the address that receives guardian fees. Only callable by the vault owner. Signature:| Parameter | Type | Description |
|---|---|---|
recipient | address | Address of the new fee recipient |
accruedFees
Returns the total accrued fees available for claiming. Signature:feeRecipient
Returns the current fee recipient address. Signature:Events
FeesReported
Emitted when fees are reported to the vault.FeesClaimed
Emitted when accrued fees are claimed.FeeRecipientSet
Emitted when the fee recipient is updated.Errors
FeeVault__InsufficientFees
Thrown when a claim exceeds accrued fees.FeeVault__NotAuthorized
Thrown when an unauthorized address attempts a fee operation.Inheritance
FeeVault is typically composed alongside a vault rather than inherited directly:
- BaseVault uses
FeeVaultfor fee accounting DelayedFeeCalculator— Time-delayed fee calculation for single-depositor vaultsPriceAndFeeCalculator— Unit-based fee calculation for multi-depositor vaults
This page was manually created as a baseline. Run the contract reference generation pipeline to update with complete NatSpec documentation from the Solidity source.