> ## Documentation Index
> Fetch the complete documentation index at: https://docs.privy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Earn

> Put wallet balances to work with Privy integrations to yield-generating DeFi vaults

Earn enables apps to generate yield on wallet balances via DeFi lending protocols. Deposit into vaults, withdraw at any time, and track positions in real time, all with a few API calls. Privy simplifies vault deployment, smart contract interactions, and onchain execution.

<img src="https://mintcdn.com/privy-c2af3412/7cXr-D-UUALqEUgn/images/earn-tempo.png?fit=max&auto=format&n=7cXr-D-UUALqEUgn&q=85&s=e832d803c823d717a7e5dad26d67bbd3" alt="Earn" width="3686" height="2633" data-path="images/earn-tempo.png" />

## 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
* **Sponsor gas** for your users — if your app has [gas sponsorship](/wallets/actions/overview#gas-management) enabled, Privy automatically sponsors gas for earn deposit, withdraw, and incentive claim actions

## Supported vaults

Earn supports multiple providers through a single API. Your app deposits, withdraws, and reads positions through the same endpoints, regardless of provider. Vault models differ under the hood — some follow the [ERC-4626](https://eips.ethereum.org/EIPS/eip-4626) tokenized vault standard, while others use different architectures. [Morpho](https://morpho.org/) vaults curated by [Gauntlet](https://www.gauntlet.xyz/), [Steakhouse](https://steakhouse.financial/), and [Sentora](https://sentora.com/) are available today in the Privy Dashboard for self-serve setup.

Beyond the featured vaults, more options are available on request. These include additional Morpho vaults — from other curators, on other chains, and in other tokens. Other providers like [Aave](https://aave.com/), [Veda](https://docs.veda.tech/), and Kamino are also available through the same earn API. Contact [sales@privy.io](mailto:sales@privy.io) to enable any of these. See the [Aave](/wallets/actions/earn/providers/aave) and [Veda](/wallets/actions/earn/providers/veda) integration guides for details.

<Info>
  The earn API is provider- and chain-agnostic: your app passes a `vault_id` and uses the same
  endpoints for every vault. Privy namespaces EVM endpoints under `/earn/ethereum/...`, which
  applies to vaults on any supported EVM chain — not just Ethereum mainnet. Privy routes each
  request to the vault's configured chain.
</Info>

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:

* [Gauntlet USDC Prime (USDC on
  Base)](https://app.morpho.org/base/vault/0x050cE30b927Da55177A4914EC73480238BAD56f0/gauntlet-usdc-prime)
* [Steakhouse Prime Instant (USDC on
  Base)](https://app.morpho.org/base/vault/0xbeef0e0834849aCC03f0089F01f4F1Eeb06873C9/steakhouse-prime-instant)
* [Sentora PathUSD (PathUSD on
  Tempo)](https://app.morpho.org/tempo/vault/0x9a044AE05E5e6290DcF56afd69548565e957a626/sentora-pathusd)

### Earn on real world assets

Privy also supports earning on real world assets (RWAs) today. Contact [sales@privy.io](mailto:sales@privy.io) to explore options on Tempo and other chains.

## 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.

### How yield accrues

ERC-4626 vaults track balances in **shares**. A deposit converts assets into shares at the current share price. As interest accrues, the share price rises — each share redeems for more of the underlying asset. Yield accrues passively with no claiming or compounding required, and withdrawals return the original deposit plus earned yield.

Example: a wallet deposits 1,000 USDC at a share price of 1.00 and receives 1,000 shares. When the share price reaches 1.05, those shares are worth 1,050 USDC. No new shares are minted; existing shares appreciate.

Vault shares are standard ERC-20 tokens and can be transferred between wallets like any other token.

<Info>
  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.
</Info>

## Revenue sharing

Your app can earn revenue by capturing a configurable share of the yield generated by its users' deposits. An admin wallet your app controls receives the fees. How your app configures and collects the fee depends on the vault provider:

* **Morpho vaults** use a fee wrapper that captures up to 50% of accrued yield as shares in the admin wallet. Your app can withdraw those shares at any time to collect fees.
* **Aave vaults** let your app apply a performance fee of up to 100% of yield, of which Aave Labs takes 50%. Fees accumulate in the vault until your app collects them. See [collect performance fees](/wallets/actions/earn/providers/aave#collect-performance-fees).
* **Veda vaults** accrue performance fees that Veda claims and withdraws to your admin wallet on a recurring schedule — typically weekly or monthly, per your agreement with Veda.

## Next steps

<CardGroup cols={2}>
  <Card title="Setup" icon="gear" href="/wallets/actions/earn/setup" arrow>
    Deploy a fee wrapper and configure your vault in the Privy Dashboard.
  </Card>

  <Card title="Starter template" icon="github" href="https://github.com/privy-io/examples/tree/main/examples/privy-next-yield-demo" arrow>
    A working Next.js app with end-to-end deposit and withdraw flows.
  </Card>
</CardGroup>

<Warning title="Disclaimer">
  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.
</Warning>
