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:
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.
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:- Collects strategy data. APY, TVL, remaining deposit capacity and risk signals for every whitelisted strategy.
- Reads the vault. The strategy list and the value of each position, converted to a current weight.
- Computes a decision. The chosen algorithm proposes target weights and whether drift from the current weights is large enough to act on.
- 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.
- Proposes or executes. Depending on the vault’s mode, the service either submits
allocateanddeallocatetransactions for your multisig to sign, or executes them from the operator wallet.
- APY optimization (TVL-adjusted)
- Max APY
- Your own
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%.
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.Next steps
Allocation & rebalancing
How weights become on-chain capital moves.
Accounting & share price
How the vault values its strategies and charges fees.
Roles & signing
Who can call which function.
Smart contract reference
Functions, limits, events and errors.

