Earn is an Enterprise feature. Reach out to [email protected] to request
access for your app.
Capabilities
- Deposit and withdraw assets into yield vaults with a single API call per operation
- Query positions to display real-time holdings, accrued yield, and vault shares
- Collect fees from a configurable share of the yield generated through your app
How DeFi yield is generated
DeFi vaults allocate deposited assets into onchain lending markets where borrowers pay interest to access liquidity. That interest flows back to the vault, increasing the value of deposited shares over time. Vault strategies are managed by curators who determine how capital is allocated across markets to balance risk and return. APY fluctuates based on borrower demand, market utilization, and the curator’s allocation strategy. Some vaults also distribute additional token incentives on top of the base lending yield. All lending and borrowing happens onchain through non-custodial smart contracts.Your app should make clear to end users that yield is generated via a DeFi protocol independent
from the wallet provider. Users keep full control of their assets and should explicitly direct the
deposit action.
Supported vaults
Earn is built on the ERC-4626 tokenized vault standard and supports multiple protocols through a single API. Morpho vaults curated by Gauntlet and Steakhouse are available today in the Privy Dashboard. Morpho, Aave, and Kamino vaults across all supported chains are available on request. Contact [email protected] to enable your preferred vault. Do your own research when selecting a vault. You can find more information on the vaults supported in the Dashboard, including details on the liquidity and allocation below:Revenue sharing
Privy helps deploy a fee wrapper that wraps the underlying Morpho vault. Through your app, users direct deposits into this fee wrapper, and the fee wrapper captures a configurable portion (up to 50%) of the accrued yield as shares in a designated admin wallet. Your app can withdraw those shares at any time to collect fees.Next steps
Setup
Deploy a vault, deposit funds, and withdraw with accrued yield.
Starter template
A working Next.js app with end-to-end deposit and withdraw flows.

