Immutability and upgradeability
What is immutable
Every contract binding and setting in a Truss vault that is fixed for good once deployed, and where to read each one on chain.
Some choices are fixed when a vault is deployed, so holders can rely on them for the vault's whole life. Changing one means deploying a new vault. This page is the one list of them.
Key points
- All contract code is fixed, and no contract can be upgraded.
- The vault's underlying, oracles, fee ceilings and limits are fixed, and so is the choice of forced transfers.
- Each sub-account, module and policy keeps its own bindings and ceilings for its whole life.
- Values that move within a fixed bound, such as fee rates under their ceilings, are not fixed.
The vault
| Fixed for good | Read it with |
|---|---|
| The underlying, and the share token's name and symbol | asset(), name(), symbol() |
| Its NAV oracle, asset registry, instant redemption policy and deposit silo | navOracle(), assetRegistry(), instantRedemptionPolicy(), silo() |
| The ceilings on the five fee rates, and the round-trip ceiling | feeCeilings() |
| The most sub-accounts, the most requests one settlement may fill, the minimum deposit and the minimum redemption | limits() |
| Whether forced transfers are on | forcedTransfersEnabled() |
The vault emits all of these in VaultInitialized when it is set up. Its fee recipient and its access manager are
the two bindings that can change.
Sub-accounts, modules and policies
| Contract | Fixed for good | Read it with |
|---|---|---|
| Every sub-account | Its vault, its kind and its NAV oracle | vault(), valuationMode(), navOracle() |
| Tracked sub-account | Its asset registry and price oracle | assetRegistry(), priceOracle() |
| Attested sub-account | Its call verifier, its deviation band, its NAV heartbeat (at most 7 days) and its deviation window | verifier(), maxDeviationBps(), navHeartbeat(), navDeviationWindow() |
| Module | The sub-account that owns it | owner() |
| Swap and lend policies | The tolerance ceiling, the most loss one call may declare | maxSlippageBps() |
| Allocation policy | The ceiling on any sub-account's cap | subAccountCapCeiling() |
| Deposit cap policy | The ceiling on the deposit cap | depositCapCeiling() |
| Asset registry | The most assets per sub-account, and the most in total | maxAssetsPerSubAccount(), maxTotalPositions() |
Every policy, registry and call verifier is bound to one vault for good, which vault() reads. The swap and lend
policies emit MaxSlippageSet when they are set up.
Oracles, providers and keys
| Contract | Fixed for good |
|---|---|
| NAV oracle | Its vault, price oracle and underlying |
| Price oracle | Its vault. The USDC price adapter can be replaced but never removed |
| Price adapter on a network with a sequencer | The sequencer uptime feed and the grace period after an outage |
| Attested NAV provider | The account it values and its NavAdmin, read with account() and navAdmin() |
| Operator multicall | Its owner key, read with owner() |
The factory and the roles table
The factory fixes, when it is deployed, its roles table, its maximum for every vault limit, its floor for each
delay tier and the implementations it clones. maxima(), minimumDelays() and implementations() read them.
Only its owner can change, in two steps.
The roles table fixes every role, its tier and the profiles that hold it, for every vault in its environment.
rolesVersion() reads its version. The factory also records the tiers each vault was deployed with, read with
delaysOf(vault). The delays that apply are the access manager's grants, which hasRole reads.
Where to read more
| Page | What it covers |
|---|---|
| Contracts that can be swapped | What can be replaced after launch |
| What can change after deployment | Values that move within fixed bounds |
| Deployment parameters | Every value chosen at deployment, with the factory's limit |