Skip to main content
Integrate Aave V3 lending into your app using CDP user wallets. Users can deposit tokens to earn yield, all with familiar sign-in methods and optional gasless transactions.
This guide covers Aave V3, the current production version deployed on Base and other networks. Aave V4 is in testnet as of February 2026.

Aave Docs

Aave protocol documentation

Non-custodial Wallets

CDP non-custodial wallet overview

Why CDP for DeFi

Integration options

There are two ways to integrate Aave:
  • Supply directly: Users deposit tokens into Aave pools and earn interest
  • Managed vaults: Deploy ERC-4626 vaults that hold aTokens, allowing you to manage deposits and earn fees on yield
This guide demonstrates both approaches on Base Sepolia. For production, use Base mainnet or other networks where both Aave V3 and CDP smart accounts are supported.

Setup

Install packages

npm

Configure providers

App.tsx

Supply directly to Aave

The simplest integration — users deposit tokens and earn interest immediately.
SupplyToAave.tsx

Withdraw from Aave

WithdrawFromAave.tsx

Create a managed vault

Deploy an ERC-4626 vault to manage user deposits and earn fees on yield generated.
DeployVault.tsx

Deposit into a vault

DepositToVault.tsx

Add onramp (optional)

Let users buy crypto before supplying to Aave:

Key concepts

Production tips

  • For mainnet, replace Base Sepolia addresses with Base mainnet Pool and token addresses
  • Query getReserveData() to display current APY to users
  • Add error handling for failed transactions and insufficient balances

Resources

AaveKit React

Full AaveKit SDK reference

Gas Sponsorship

Gasless transactions setup