Overview
The Aave V3 Strategy (StrategyAaveV3) is a low-risk, passive lending strategy that supplies assets to Aave V3 to earn supply-side interest. This strategy is ideal for conservative users seeking stable, predictable yields.
Contract: StrategyAaveV3.sol (packages/contracts/contracts/strategy/StrategyAave.sol)
Key Characteristics
How It Works
1. Investment Flow
When funds are allocated to this strategy:- Vault transfers USDC to the strategy contract
- Strategy supplies USDC to Aave V3 Pool
- Strategy receives aTokens (aUSDC) representing the deposit
- Principal is tracked in the
depositedvariable
2. Yield Accrual
Aave V3 automatically accrues interest to aToken holders. The strategy tracks profit using the aToken balance:3. Harvesting
The harvest function extracts profits and sends them back to the vault:- Calculate profit:
aToken balance - deposited principal - Withdraw profit amount from Aave
- Transfer profit to vault
- Keep principal deposited for continued yield generation
4. Withdrawals
When users withdraw from the vault:- Router requests withdrawal of specific amount
- Strategy withdraws from Aave Pool (burns aTokens)
- Receives USDC back
- Transfers USDC to vault
- Updates
depositedaccounting
5. Balance Tracking
The strategy reports its total value via:Strategy Parameters
Immutable Configuration
Set at deployment and cannot be changed:Constructor
Risk Profile
Low Risk Factors
✅ No Leverage: Strategy does not borrow, eliminating liquidation risk ✅ Battle-Tested Protocol: Aave V3 is one of the most secure DeFi protocols ✅ Isolated Exposure: Only exposure is to Aave smart contract risk ✅ No Price Risk: USDC is a stablecoin with minimal volatility ✅ Simple Mechanics: Straightforward supply-only logic reduces complexity risksPotential Risks
Deleveraging (No-Op)
Since this strategy doesn’t use leverage, thedeleverageAll function is a no-op:
deleverageAll() on all strategies uniformly without errors.
APY Calculation
Actual APY depends on:- Aave Supply APY: Current lending rate for USDC on Aave V3
- Utilization Rate: Higher borrowing demand → higher supply APY
- AAVE Rewards: Additional incentives distributed by Aave governance
- Vault Fees: Performance fees deducted by MetaVault
Development Note
For development and testing, this strategy uses mock Aave contracts that simulate:
- Liquidity index updates (initialized at
1e18) - aToken balance accrual
- Supply and withdrawal mechanics
Access Control
All state-changing functions use theonlyRouter modifier:
- Only the StrategyRouter can invest, withdraw, or harvest
- Prevents unauthorized fund movements
- Centralizes strategy management through the router
Integration Example
Deploying and connecting the strategy:Related Documentation
Aave Leverage Strategy
Compare with high-yield leveraged strategy
Risk Management
Learn about risk parameters
Strategy Overview
Return to strategies overview
AI Agents
See how AI manages this strategy