> For the complete documentation index, see [llms.txt](https://docs.chamberfi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chamberfi.com/concepts/vaults-as-guardrails.md).

# Vaults as guardrails

Most people picture a "vault" as a container: somewhere funds go to sit safely. In Chamber, the container framing misses the point. A Chamber vault is a **constraint system**. It's a set of rules, encoded in smart contracts, that define what the person or bot running the vault can and cannot do with the money inside.

The funds aren't "in" the vault the way money is in a safe. They're *subject* to the vault, bounded by what the vault's rules will let happen to them.

## Why this framing matters

Onchain asset management historically offered two options, both bad:

* **Custodial.** Hand money to a manager or platform and hope they do right by you.
* **Permissionless trading bots.** Give a script full control over your wallet and hope the script is bug-free.

Chamber vaults are a third option: the manager has broad operational freedom *within rules nobody can override*. The rules are:

* **Which assets can be held.** A manager can't suddenly route the vault into random tokens. Only the vault's [enabled assets](/manage/permissions-access.md) are allowed.
* **Which protocols can be used.** Only the protocols on Chamber's allowlist (Aave, Uniswap, Toros, etc.), never arbitrary contracts.
* **What fees can be charged.** Performance, management, entry, and exit fees are capped, and increases require a [14-day announcement](/manage/fees-performance.md).
* **Who can move funds.** Depositors control their own shares. The manager controls trading only. They cannot withdraw depositor funds.

Most of these are enforced by the [Guard System](/security/guard-system.md) at the contract level: every trade the manager submits is checked against the vault's enabled assets and the protocol allowlist, and anything that violates them reverts before it can touch vault funds. Fee caps and the 14-day announcement work slightly differently (they're enforced at the point the manager tries to change fees, not on every trade), but the effect is the same: the manager can't "promise" to follow the rules and then break them. The contract literally won't let them.

## The implication for automated trading

This is the reason Chamber can safely host bots and automated strategies. A bot operating on the vault has exactly the same surface area as a human manager: the same enabled assets, the same protocol allowlist, the same fee caps. It cannot do more, cannot do worse, cannot route around the rules.

You don't have to trust the automation more than you'd trust a human. You trust the rules, which are the same for both.

## What guardrails don't protect against

The vault constrains *what the manager can do with the money*. It does not constrain *whether their decisions are good*.

A manager operating entirely within the rules can still:

* Lose money on bad trades.
* Hold concentrated positions that drop.
* Accrue management fees while the vault underperforms.
* Run a strategy that simply doesn't work.

Guardrails bound the downside caused by malice or bug; they do not bound the downside caused by ordinary market risk or poor judgment. See [Deposit → Risks](/deposit/risks.md) for the fuller picture.

## A useful mental model

Think of a Chamber vault the way you'd think of a managed account at a broker with pre-agreed rules:

* The broker can trade within a stated mandate.
* They can't move your money to their own account.
* They can't change the mandate without notice.
* You can withdraw any time.

The difference is that Chamber's "broker" is the onchain contract, not a legal entity or a trust relationship. The rules are executable code, and breaking them is impossible rather than punishable.

## Related

* [Guard System](/security/guard-system.md): the technical enforcement layer.
* [Permissions & access](/manage/permissions-access.md): how asset whitelists work.
* [Vault tokens & mechanics](/concepts/vault-tokens.md): what a vault share is, onchain.
* [NAV & accounting](/concepts/nav-accounting.md): how the value of a share is calculated.
