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

# How Meta Vaults work

> The parts of a Meta Vault deployment: the vault contract, the offchain allocation service, reward compounding and monitoring.

A Meta Vault deployment has four parts. The vault contract holds custody and does the accounting. An offchain allocation service decides where capital should sit. A compounding pipeline turns incentive rewards into the deposit asset. Monitoring watches every strategy and can pause the vault.

## The vault contract

The vault is the only contract your customers touch. It exposes the standard ERC-4626 functions (`deposit`, `mint`, `withdraw`, `redeem`) and holds:

| State | What it holds |
| - | - |
| Strategy list | Up to 10 ERC-4626 strategies that accept the deposit asset. The order of the list is the withdrawal queue |
| Idle balance | Deposit asset held in the vault and not yet deployed |
| Fee configuration | Deposit, management and performance fee rates, and the fee recipient |
| Access settings | Pause state, a switch that stops new deposits, and an optional whitelist of addresses allowed to hold shares |
| Reward settings | The reward claim calls the vault may make, and the address rewards are sent to for swapping |

Lending markets that are not ERC-4626, such as Aave v3, are added through a Yield.xyz ERC-4626 wrapper, so the vault values and moves every strategy the same way.

The vault runs behind an upgradeable beacon proxy. Upgrades are signed by the vault's admin; when your multisig is admin, Yield.xyz proposes an upgrade and your signers approve it. See [Roles & signing](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/roles-signing-models.md).

## The allocation service

Target weights are not stored on-chain. They are the policy for the vault, and Yield.xyz's allocation service carries them out. Each run:

1. **Collects strategy data.** APY, TVL, remaining deposit capacity and risk signals for every whitelisted strategy.
2. **Reads the vault.** The strategy list and the value of each position, converted to a current weight.
3. **Computes a decision.** The chosen algorithm proposes target weights and whether drift from the current weights is large enough to act on.
4. **Records it.** Every run is logged with the previous and proposed allocation, the algorithm and its version, the reason and, if executed, the transaction hash.
5. **Proposes or executes.** Depending on the vault's mode, the service either submits `allocate` and `deallocate` transactions for your multisig to sign, or executes them from the operator wallet.

The algorithms available today:

> [tab] APY optimization (TVL-adjusted)
>
> Maximizes expected yield across the strategy list while limiting concentration in low-TVL strategies. Starts from an equal split and converges on weights that sum to 100%.

> [tab] Max APY
>
> A baseline that moves the full allocation to the strategy with the highest reported APY, once drift from that target passes the threshold.

> [tab] Your own
>
> Plug in your own algorithm, or have an external curator set the weights. The same on-chain limits apply.

You can also skip the algorithm and keep fixed weights that change only when your team decides. See [Allocation & rebalancing](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/allocation-weights-rebalancing.md).

## Reward compounding

Some strategies pay part of their yield in incentive tokens. The vault claims them through a role-gated call that can only reach claim functions on an allowlist, never the deposit asset, the vault itself or a strategy. The claim reverts if it would lower the vault's assets or change its share supply.

Claimed tokens are sent to the vault's reinvester, which swaps them into the deposit asset and returns them to the vault as idle balance. The share price rises without new shares being minted. That idle balance is deployed into strategies on the next allocation.

## Monitoring

When monitoring is enabled, Hypernative and Blockaid watch every strategy in the vault, and you can add your own source. When the activation policy is met, a pre-signed pause stops the vault within seconds without moving funds; an exit of capital is then signed by your approved signers. See [Security & monitoring](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/security-monitoring.md).

## Next steps

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

> [card] [Accounting & share price](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/accounting-share-price.md)
>
> How the vault values its strategies and charges fees.

> [card] [Roles & signing](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/roles-signing-models.md)
>
> Who can call which function.

> [card] [Smart contract reference](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/smart-contract-addendum.md)
>
> Functions, limits, events and errors.


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