Supply a single token to an Aave v3 lending market, with a performance fee of up to 100%.
Aave vaults supply a single token to an Aave v3 lending market, where borrowers pay interest on it. Your app uses the standard Earn API, and Privy handles the Aave contract calls.
Set up
Aave USDC on Base is self-serve:
Under Wallet infrastructure > Earn in the Privy Dashboard, select Aave USDC on Base.
Set the performance fee.
Select Create vault. Privy creates an admin wallet by default. To use an existing wallet, open Advanced settings.
Your app sets a performance fee from 0% to 100% of the vault’s yield. Fees stay in the vault until your app collects them.
Collect performance fees
Check what’s available with get vault details, which returns available_fees in the smallest unit of the underlying asset. Then call collect fees from the vault’s admin wallet:
Each call moves all available fees to the admin wallet. Partial collection isn’t supported. If Privy created the admin wallet and it hasn’t been changed, your app secret alone authorizes the call.The action moves from pending to succeeded once it confirms onchain. Track it with the wallet_action.earn_fee_collectwebhooks.
Aave Earn vaults
Learn how Aave vaults on its v3 markets work.
Privy does not control DeFi vaults or underlying protocols. Vault information is provided for
reference only and may change or be inaccurate. Earnings are generated from third-party vaults and
are not guaranteed. Using vaults involves risk, including loss of funds. These materials are for
general information purposes only and are not investment advice or a recommendation or
solicitation to engage in any specific transaction. You are responsible for evaluating vaults at
your own discretion. Privy does not provide investment, financial, legal, or tax advice.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.