TrussDocs

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 goodRead it with
The underlying, and the share token's name and symbolasset(), name(), symbol()
Its NAV oracle, asset registry, instant redemption policy and deposit silonavOracle(), assetRegistry(), instantRedemptionPolicy(), silo()
The ceilings on the five fee rates, and the round-trip ceilingfeeCeilings()
The most sub-accounts, the most requests one settlement may fill, the minimum deposit and the minimum redemptionlimits()
Whether forced transfers are onforcedTransfersEnabled()

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

ContractFixed for goodRead it with
Every sub-accountIts vault, its kind and its NAV oraclevault(), valuationMode(), navOracle()
Tracked sub-accountIts asset registry and price oracleassetRegistry(), priceOracle()
Attested sub-accountIts call verifier, its deviation band, its NAV heartbeat (at most 7 days) and its deviation windowverifier(), maxDeviationBps(), navHeartbeat(), navDeviationWindow()
ModuleThe sub-account that owns itowner()
Swap and lend policiesThe tolerance ceiling, the most loss one call may declaremaxSlippageBps()
Allocation policyThe ceiling on any sub-account's capsubAccountCapCeiling()
Deposit cap policyThe ceiling on the deposit capdepositCapCeiling()
Asset registryThe most assets per sub-account, and the most in totalmaxAssetsPerSubAccount(), 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

ContractFixed for good
NAV oracleIts vault, price oracle and underlying
Price oracleIts vault. The USDC price adapter can be replaced but never removed
Price adapter on a network with a sequencerThe sequencer uptime feed and the grace period after an outage
Attested NAV providerThe account it values and its NavAdmin, read with account() and navAdmin()
Operator multicallIts 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

PageWhat it covers
Contracts that can be swappedWhat can be replaced after launch
What can change after deploymentValues that move within fixed bounds
Deployment parametersEvery value chosen at deployment, with the factory's limit