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

# Accounting & share price

> How a Meta Vault values positions across several strategies as one ERC-4626 share price, and how deposit, management and performance fees accrue.

A Meta Vault issues one share token while its assets sit in several places: idle in the vault and in each strategy. One share price covers all of it.

## Total assets

`totalAssets()` is the sum of:

* **Idle balance.** The deposit asset held by the vault.
* **Each strategy position.** The vault's shares in that strategy, converted to the deposit asset through the strategy's own `convertToAssets`.

The share price is total assets divided by share supply. Every share is a claim on the same mix of positions, however many strategies are behind it.

The vault takes each strategy's reported value as given. A strategy that over-reports its value would raise the share price, which is why strategies are reviewed before they are whitelisted.

## What moves the share price

* **Strategy yield.** Interest and fees earned inside a strategy raise that position's value.
* **Compounded rewards.** Incentive tokens claimed, swapped into the deposit asset and returned to the vault raise the idle balance.
* **Fees.** Fee shares minted to your fee recipient dilute every holder in proportion, so the share price your customer sees is net of fees.

Deposits and withdrawals change total assets and share supply together, so they do not move the share price.

## Fees

All three fees are paid in vault shares minted to the fee recipient. No fee is paid by withdrawing assets from a strategy.

| Fee | Charged on | When it is collected | Contract cap |
| - | - | - | - |
| Deposit | The deposited amount | In the deposit transaction, as fee shares minted next to the depositor's shares | 500 bps (5%) |
| Management | Assets under management, annualized and accrued by the second | At each harvest | 2,000 bps (20%) a year |
| Performance | Growth in total assets since the last checkpoint | At each harvest | 5,000 bps (50%) |

**When harvest runs.** The vault harvests before every deposit, mint, withdrawal, redemption, allocation and fee change, and the keeper can also call `harvest()`. Each harvest mints the fees owed since the last checkpoint, then records a new checkpoint of the time and total assets. Deposits and withdrawals also update the checkpoint, so they never count as performance.

**How the amounts are set.** The management fee accrues on the lower of the last checkpoint's assets and current assets, for the time elapsed. The performance fee is the configured share of the gain above the last checkpoint. If assets fall, no performance fee is charged for that period.

**Previews include pending fees.** `previewDeposit`, `previewMint`, `previewWithdraw`, `previewRedeem`, `maxWithdraw` and `maxRedeem` price against the share supply after fees owed are minted, so a quote matches what the transaction does.

## Protection against share inflation

The vault uses virtual shares and a six-decimal offset between assets and shares. This blocks the inflation attack where a first depositor donates assets to round later depositors down to zero shares.

## Next steps

> [card] [Allocation & rebalancing](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/allocation-weights-rebalancing.md)
>
> How capital moves between idle and strategies.

> [card] [Monetization](https://docs.yield.xyz/documentation/earn/monetization.md)
>
> How vault fees fit with your other Earn fees.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.