Guides
Running a vault
How a vault owner makes changes after launch, who signs each one, how long it waits, and where each task's step-by-step guide is.
Most changes after launch are one call, made by the key that holds the right profile. A change that raises risk waits its tier's delay first, so holders can see it coming. This page shows how a delayed change works, and lists the common tasks with the guide for each.
Key points
- Each change is signed by a profile: the VaultAdmin holds every lever, and others hold a subset.
- A delayed change is scheduled on the vault's AccessManager, waits its tier, and is then executed.
- Lowering a limit, pausing and revoking act at once.
- Every change, scheduled or immediate, emits an event that anyone can watch.
Making a delayed change
Every restricted function in a vault answers to one AccessManager, the contract that holds the vault's permissions. When a function carries a delay for its caller, the call cannot be made directly:
- Schedule the exact call with
schedule(target, data, 0)on the vault's AccessManager, wheredatais the encoded call and0means the earliest allowed moment. A vault manager or another operator sends this through its operator multicall. TheOperationScheduledevent carries the full call, so holders can see what is coming and when. - Wait the delay.
getSchedule(operationId)gives the moment the call may run. - Execute it with
execute(target, data)on the AccessManager, or by making the call itself on the target.
To cancel a scheduled call, use cancel(caller, target, data). The key that scheduled it can cancel it, and the
VaultAdmin, which holds both canceller roles, can cancel any scheduled call. A call not executed within a week of
becoming ready expires, and must be scheduled again. Several changes that should land together can each be
scheduled for the same moment, at least the longest of their delays away, and then executed in one batch.
A vault deployed with every tier at zero schedules nothing: each change is one transaction.
Tasks
| Task | Who | Function (tier) | Guide |
|---|---|---|---|
| Onboard an asset | VaultAdmin | setOracleAdapterForAsset, registerAsset (CRITICAL); limits up (HIGH) | Onboard an asset |
| Add a sub-account | VaultAdmin | addSubAccount (CRITICAL) | Add a sub-account |
| Turn on or tune instant withdrawals | VaultAdmin; vault managers and the Sentry lower | Limits up (HIGH); default source (CRITICAL) | Turn on instant withdrawals |
| Bind a policy | VaultAdmin | setDepositPolicy, setHolderPolicy, setWithdrawalPolicy (CRITICAL) | Bind a policy |
| Change curator | VaultAdmin; a vault manager for operator keys | New multicalls, grants, then revokes | Change curator |
| Rotate a key | Depends on the key | New multicall or grant, then revoke | Rotate a key |
| Raise or lower the deposit cap | VaultAdmin raises; vault managers and the Sentry lower | raiseDepositCap (HIGH), lowerDepositCap (Immediate) | What can change |
| Change a fee rate | VaultAdmin or a vault manager | Raise (MEDIUM; the instant fee LOW), lower (Immediate) | How to update fees |
| Change the fee recipient | VaultAdmin | setFeeRecipient (HIGH) | How to update fees |
| Reset the high-water mark | VaultAdmin | resetHighWaterMark (HIGH) | Management and performance fees |
| Add or remove a module | VaultAdmin | addModule (CRITICAL), removeModule (Immediate) | Contracts that can be swapped |
| Remove a sub-account | VaultAdmin | initiateSubAccountRemoval, then finalizeSubAccountRemoval once empty (Immediate) | Contracts that can be swapped |
A module can be removed only once its sub-account holds nothing but USDC. A sub-account can be finalized out only once it is empty; the operator unwinds its positions and returns the USDC first.
Where to read more
| Page | What it covers |
|---|---|
| Who can call what | Every function's tier and holders |
| Tiers and timelocks | How tiers are set and what they protect |
| Operator multicalls | How an operator key sends its calls |
| Emergency controls | The changes that act at once |