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

# Allocation & rebalancing

> How a Meta Vault's target weights turn into on-chain capital moves, who signs them, and the order withdrawals follow.

A Meta Vault separates deciding where capital should sit from moving it. Target weights are the policy. Role-gated `allocate` and `deallocate` transactions move capital to match it. Between the two, a vault can be off target, and that is expected.

## Target weights

Each whitelisted strategy has a target weight, and the idle buffer has one too. With an idle target of 5%, the vault keeps about 5% of assets in the vault for instant withdrawals and deploys the rest across strategies by weight.

Weights are held offchain, by the allocation service, your team or your curator, not in the vault contract. Changing a weight moves nothing on its own.

## Moving capital

Two keeper functions move capital, one strategy at a time:

| Function | What it does | Safety check |
| - | - | - |
| `allocate(strategy, amount, minSharesOut)` | Deposits idle assets into a strategy | Reverts if the strategy returns fewer shares than `minSharesOut` |
| `deallocate(strategy, shares, minAssetsOut)` | Redeems strategy shares back to idle | Reverts if fewer assets than `minAssetsOut` come back |

Both only work on strategies already in the vault's list, so capital can only move between the vault and its whitelist. A rebalance is a set of these calls: deallocate from strategies above target, then allocate to those below it.

New deposits stay idle until the next allocation. Rewards compounded back into the vault also arrive as idle.

## Allocation modes

| Mode | Who computes weights | Who signs the moves |
| - | - | - |
| Manual | Your team, as fixed weights | Your multisig |
| Optimizer proposes, you approve (recommended) | Yield.xyz's optimizer | Your multisig, for each proposed rebalance |
| Automated | Yield.xyz's optimizer | The operator wallet, within its on-chain limits |
| Curator | An external curator you choose | The curator, holding the operator permissions |

In the optimizer modes, the service does not act on every rate change. It compares drift between current and target weights against a threshold and only proposes a rebalance once the threshold is crossed, so the vault does not spend gas on small moves. Every proposal is logged with its inputs, the algorithm and the result, whether or not it executes.

## Withdrawal order

A withdrawal is paid from the idle buffer first. If idle is not enough, the vault pulls from strategies in the order of its strategy list, which is the withdrawal queue. A strategy that cannot pay is skipped and the vault moves on to the next one.

A withdrawal pays the full amount or reverts; it never pays part. Placing the most liquid strategies first in the queue, and keeping an idle buffer, makes large withdrawals more reliable. The queue order is set when the strategy list is set; see [Strategy lifecycle](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/strategy-lifecycle.md).

## Next steps

> [card] [Strategy lifecycle](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/strategy-lifecycle.md)
>
> Add, remove and replace strategies.

> [card] [Roles & signing](https://docs.yield.xyz/documentation/earn/oavs/meta-vaults/vault-mechanics/roles-signing-models.md)
>
> Which role can move capital.


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