# What can change after deployment

> Which vault settings are fixed for good, which can change after deployment, who changes each, how long it waits, and what the change does.

Source: https://docs.trusslabs.io/vaults/overview/what-can-change

Some settings are fixed when a vault is deployed, so holders can rely on them for its whole life. Others can change
later, each by a profile holding its role, after a delay set by its tier. This page lists what can change, who
changes it and what the change does.

> **Key points**
>
> - The code, the fee ceilings, the vault's limits, forced transfers and the delay tiers never change.
> - Raising a limit or loosening a rule waits its tier. Lowering, tightening and pausing act at once.
> - No change waits for pending requests. A request settles under the settings in force when it settles.
> - Every delayed change is scheduled in public before it runs, and every change emits an event.

## Fixed for the vault's life

The contracts cannot be upgraded, and some settings are written once when the vault is created. Changing one means a
new vault, and holders moving their capital to it. The full list is on
[What is immutable](https://docs.trusslabs.io/vaults/immutability/immutable.md), and the factory's limits on each are on
[Deployment parameters](https://docs.trusslabs.io/vaults/reference/deployment-parameters.md).

## What can change

The VaultAdmin can make every change below; the last column names who else can.

| Setting | Raise, loosen or add | Lower, tighten or remove | Other profiles |
|---|---|---|---|
| Fee rates, recipient, high-water mark | See [How to update fees](https://docs.trusslabs.io/vaults/overview/updating-fees.md) | | VaultManager, for rates |
| Deposit cap | HIGH | Immediate | VaultManager and Sentry lower it |
| Instant window capacity and refill rate | HIGH | Immediate | VaultManager and Sentry lower them |
| Instant freshness gate | HIGH | Immediate | VaultManager and Sentry tighten it |
| Instant pause | HIGH to unpause | Immediate to pause | VaultManager and Sentry pause |
| Instant default source | CRITICAL to set | Immediate to clear | VaultManager and Sentry clear it |
| Sub-account cap and push limits | HIGH | Immediate | Sentry lowers them |
| Sub-accounts | CRITICAL to add | Immediate, in two steps | None |
| A sub-account's allocation policy | CRITICAL | CRITICAL | None |
| Swap and lend limits | HIGH | Immediate | Sentry lowers them |
| Modules | CRITICAL to add | Immediate to remove | None |
| Assets a sub-account may hold | CRITICAL to register | Immediate, in two steps | VaultManager deregisters |
| Deposit, holder and withdrawal policies | CRITICAL | CRITICAL | None |
| Call shapes of an attested account | CRITICAL to allow | Immediate to revoke | None |
| Vault and sub-account pause | HIGH to unpause | Immediate to pause | Sentry pauses |

Price adapters and attested NAV settings are on [NAV parameters](https://docs.trusslabs.io/vaults/overview/nav-parameters.md), and keys on
[Profiles](https://docs.trusslabs.io/vaults/roles/profiles.md).

## What a change does

- Limits act on what comes next. A lower deposit cap limits the next settlement and refuses no request. A lower
  sub-account cap or rate limit stops new pushes and trades, and recalls nothing already deployed.
- Fee changes settle the past first. Every fee change first turns the fees accrued so far into shares, at the old
  settings. That needs a fresh NAV, so no fee lever works while the NAV is stale.
- Removals wait for the books to clear. A tracked sub-account is removed once it holds no positions, an attested one
  once its fresh NAV is zero, and an asset once its tracked quantity is zero.
- Pauses freeze rather than move. A paused sub-account keeps its positions, and only its idle USDC can return. A
  paused vault refuses new requests, pushes and instant withdrawals.

## Pending requests and notice

No change waits for pending requests. A request settles at the rates, limits and prices in force when it fills. The fee ceilings bound what a raise can take from a request already waiting: the entry fee on a
deposit's fill, and the exit fee on what a redemption settles. Cancelling a request costs nothing.

A delay is notice, not an exit: a holder is out before a change runs only if a settler or the instant path pays them
first. Each delayed change appears on the vault's AccessManager as `OperationScheduled`, with its full calldata, for
its whole tier. A vault whose tiers are all zero schedules nothing, so the events are its only notice.

## Where to read more

| Page | What it covers |
|---|---|
| [Who can call what](https://docs.trusslabs.io/vaults/roles/function-permissions.md) | Every restricted function, its tier and its holders |
| [Tiers and timelocks](https://docs.trusslabs.io/vaults/roles/tiers-and-timelocks.md) | How long each tier waits, and scheduling |
| [How to update fees](https://docs.trusslabs.io/vaults/overview/updating-fees.md) | Fee rates, the recipient and the high-water mark |
| [NAV parameters](https://docs.trusslabs.io/vaults/overview/nav-parameters.md) | The settings that decide how NAV is measured |
| [Reading vault state](https://docs.trusslabs.io/vaults/developers/reading-state.md) | Views and events that show a change |
