Skip to main content

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:
Process:
  1. Vault transfers USDC to the strategy contract
  2. Strategy supplies USDC to Aave V3 Pool
  3. Strategy receives aTokens (aUSDC) representing the deposit
  4. Principal is tracked in the deposited variable

2. Yield Accrual

Aave V3 automatically accrues interest to aToken holders. The strategy tracks profit using the aToken balance:
aToken Balance: Reflects both principal and accrued interest (1:1 with underlying asset)

3. Harvesting

The harvest function extracts profits and sends them back to the vault:
Harvest Process:
  1. Calculate profit: aToken balance - deposited principal
  2. Withdraw profit amount from Aave
  3. Transfer profit to vault
  4. Keep principal deposited for continued yield generation

4. Withdrawals

When users withdraw from the vault:
Withdrawal Flow:
  1. Router requests withdrawal of specific amount
  2. Strategy withdraws from Aave Pool (burns aTokens)
  3. Receives USDC back
  4. Transfers USDC to vault
  5. Updates deposited accounting

5. Balance Tracking

The strategy reports its total value via:
This returns the current underlying value including both principal and accrued interest.

Strategy Parameters

Immutable Configuration

Set at deployment and cannot be changed:

Constructor

Approvals: Grants unlimited approval to Aave Pool for gas-efficient deposits.

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 risks

Potential Risks

Smart Contract Risk: While Aave V3 is audited and proven, all smart contracts carry inherent risk. Users should understand that their funds are subject to Aave’s security.
USDC Depeg Risk: While rare, stablecoins can experience temporary depegs during market stress. Historical precedents include USDC’s brief depeg in March 2023.

Deleveraging (No-Op)

Since this strategy doesn’t use leverage, the deleverageAll function is a no-op:
This allows the StrategyRouter to call deleverageAll() on all strategies uniformly without errors.

APY Calculation

Actual APY depends on:
  1. Aave Supply APY: Current lending rate for USDC on Aave V3
  2. Utilization Rate: Higher borrowing demand → higher supply APY
  3. AAVE Rewards: Additional incentives distributed by Aave governance
  4. Vault Fees: Performance fees deducted by MetaVault
Formula:

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
Interest accrual is programmatically controlled for predictable testing.

Access Control

All state-changing functions use the onlyRouter modifier:
This ensures:
  • 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:

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