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

# Revenue sharing

> Keep a share of the yield generated by your users' Earn deposits.

Your app can earn revenue by keeping a share of the yield generated by its users' deposits. This share is a performance fee: users keep the rest of the yield and all principal, and can withdraw at any time. An admin wallet your app controls receives the fees.

The fee is set when the vault is configured, and how it is capped, split, and distributed depends on the vault provider.

## Configure the fee

The performance fee is set at vault setup, not per deposit. For self-serve Morpho vaults, choose the fee percentage when you deploy the fee wrapper in the [Privy Dashboard](https://dashboard.privy.io). For Aave and Veda vaults, the fee is set when Privy enables the vault for your app. See [setup](/wallets/actions/earn/setup) to get started.

Every vault has an **admin wallet**, which is a wallet your app controls that receives the fees.

## Fee limits by provider

| Provider                                         | Maximum fee                | Revenue split                                                              |
| ------------------------------------------------ | -------------------------- | -------------------------------------------------------------------------- |
| [Morpho](/wallets/actions/earn/providers/morpho) | Up to 50% of yield         | Your app keeps the full fee; the remaining yield accrues to depositors.    |
| [Aave](/wallets/actions/earn/providers/aave)     | Up to 100% of yield        | Yield not returned to users is split 50/50 between your app and Aave Labs. |
| [Veda](/wallets/actions/earn/providers/veda)     | Set by agreement with Veda | Defined in your custom agreement with Veda.                                |

For example, an Aave vault with a 20% performance fee leaves users with 80% of the yield; the remaining 20% is split so your app receives 10% and Aave Labs receives 10%.

<Info>
  Enabling an Aave or Veda vault, or raising a Morpho fee above the self-serve cap, is handled by
  Privy. Contact [sales@privy.io](mailto:sales@privy.io) to set these up.
</Info>

## How fees are distributed

Fees reach your admin wallet differently depending on the provider.

* **Morpho**: fees accrue as vault shares directly in the admin wallet. Redeem the underlying asset any time with the [withdraw](/wallets/actions/earn/withdraw) endpoint. No separate collection step is required.
* **Aave**: fees accumulate in the vault contract. Read the collectable amount from `available_fees` on [get vault details](/wallets/actions/earn/get-vault-details), then move it to the admin wallet with the [collect fees](/wallets/actions/earn/collect-fees) endpoint.
* **Veda**: Veda claims accrued fees and withdraws them to your admin wallet on a recurring schedule, per your agreement with Veda. No action is required from your app.

<Info>
  For Aave vaults, `available_fees` and the amount returned by collect fees reflect your app's share
  after the 50/50 split with Aave Labs.
</Info>

## 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="Collect performance fees" icon="hand-holding-dollar" href="/wallets/actions/earn/collect-fees" arrow>
    Collect an Aave vault's accrued performance fees to its admin wallet.
  </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>
