TrussDocs

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:

  1. Schedule the exact call with schedule(target, data, 0) on the vault's AccessManager, where data is the encoded call and 0 means the earliest allowed moment. A vault manager or another operator sends this through its operator multicall. The OperationScheduled event carries the full call, so holders can see what is coming and when.
  2. Wait the delay. getSchedule(operationId) gives the moment the call may run.
  3. 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

TaskWhoFunction (tier)Guide
Onboard an assetVaultAdminsetOracleAdapterForAsset, registerAsset (CRITICAL); limits up (HIGH)Onboard an asset
Add a sub-accountVaultAdminaddSubAccount (CRITICAL)Add a sub-account
Turn on or tune instant withdrawalsVaultAdmin; vault managers and the Sentry lowerLimits up (HIGH); default source (CRITICAL)Turn on instant withdrawals
Bind a policyVaultAdminsetDepositPolicy, setHolderPolicy, setWithdrawalPolicy (CRITICAL)Bind a policy
Change curatorVaultAdmin; a vault manager for operator keysNew multicalls, grants, then revokesChange curator
Rotate a keyDepends on the keyNew multicall or grant, then revokeRotate a key
Raise or lower the deposit capVaultAdmin raises; vault managers and the Sentry lowerraiseDepositCap (HIGH), lowerDepositCap (Immediate)What can change
Change a fee rateVaultAdmin or a vault managerRaise (MEDIUM; the instant fee LOW), lower (Immediate)How to update fees
Change the fee recipientVaultAdminsetFeeRecipient (HIGH)How to update fees
Reset the high-water markVaultAdminresetHighWaterMark (HIGH)Management and performance fees
Add or remove a moduleVaultAdminaddModule (CRITICAL), removeModule (Immediate)Contracts that can be swapped
Remove a sub-accountVaultAdmininitiateSubAccountRemoval, 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

PageWhat it covers
Who can call whatEvery function's tier and holders
Tiers and timelocksHow tiers are set and what they protect
Operator multicallsHow an operator key sends its calls
Emergency controlsThe changes that act at once