Skip to main content
This page describes the Meta Vault contract for engineers and reviewers. For the product view, see the Meta Vaults overview.

Components

User functions

maxWithdraw is the one deviation from ERC-4626 to note. Some strategies report 0 from their max* functions while their withdraw works. The vault treats a 0 or a revert as no information and values that position from its own accounting, so the estimate can be higher than what a strategy can pay at that moment.

Privileged functions

Limits

Events

Errors you may see

Guarantees

  • Funds move only between the vault and its listed strategies. allocate and deallocate take only listed strategies, and no privileged function sends the deposit asset or strategy shares anywhere else.
  • Reward claims cannot touch principal. Claim calls are allowlisted per contract and selector, can never target the deposit asset, the vault or a strategy, and revert if total assets fall or share supply changes. The deposit asset and strategy shares can never be swept.
  • Fees dilute, they never withdraw. Every fee is minted as shares to the fee recipient.
  • A funded strategy cannot be dropped. Removal reverts above the dust limit, and the dust limit cannot be raised past its fixed ceiling.
  • Holders can always exit a permissioned vault. The whitelist gates who receives shares, never withdrawals or redemptions.
  • Roles cannot escalate. Only the admin grants roles.
These hold for the deployed implementation. An upgrade through the beacon proxy can change contract behavior, which is why upgrades are signed by the vault’s admin.

Next steps

How it works

The operational view of the same components.

Roles & signing

Who typically holds each role.