TrussDocs

Roles and permissions

Profiles

Each profile in a Truss vault, what it is for, how it holds its roles, and what a leaked key could and could not do.

A profile is a fixed bundle of roles given to one kind of key when a vault is deployed. Each covers one job, so a leaked key can do only what that job allows.

Key points

  • The VaultAdmin holds every role and is the only admin of the vault's access manager.
  • Each vault manager, settler, allocator, donor and trader key acts through an operator multicall it owns.
  • The Sentry can pause and lower limits, but never unpause or raise anything.
  • The NavAdmin, the NavManagers and the fee recipient are checked by the contracts themselves.

The profiles in the access manager

A deployment must name a VaultAdmin, at least one vault manager key, a NavGuardian, a NavAdmin and a fee recipient. The VaultAdmin cannot be the deploying address. The other lists may be empty, and the Sentry may be the zero address. A VaultAdmin and a vault manager on the same address are one security boundary, not two.

VaultAdmin

It holds every role at its own tier, the access manager's admin role, both cancellers and the two admins that grant immediate roles. It holds them directly, so it can schedule and run delayed changes. From five days after launch, granting another admin waits the CRITICAL tier twice. A leaked VaultAdmin key controls the vault, within each change's delay.

VaultManager

It runs the vault day to day: settling, moving capital to and from sub-accounts, turning fees into shares, and executing on every sub-account. It lowers fees at once and raises them within their ceilings, after LOW for the instant fee and MEDIUM for the others. It can lower the deposit cap and the instant limits. Through the delegation admin it grants and revokes the settler, allocator, donor and per-sub-account roles.

A leaked key can trade within each policy's limits and schedule fee raises, which the VaultAdmin can cancel. On a vault deployed with forced transfers, it can move any holder's position at once. It cannot add contracts, register assets, raise caps or unpause. The VaultAdmin revokes its immediate roles at once.

Settler, Allocator and Donor

Each holds one job, at no delay. A settler fills deposit and redemption requests; a leaked one chooses which requests fill, and when, from the USDC the vault already holds. An allocator sends idle USDC into active sub-accounts within their caps. A leaked one leaves less idle for settlement, and can keep an attested sub-account's NAV stale by sending it one unit each block. A donor adds USDC without minting shares. None of them can take anything from the vault or its fees.

Trader

A trader holds the execute and return roles on each sub-account that names it, and nothing else. A leaked trader key can trade within each policy's limits there, and send USDC back to the vault. It cannot fund a sub-account, settle, or reach another one.

Sentry and NavGuardian

The Sentry pauses the vault and its sub-accounts, lowers every policy limit, and pauses or narrows the instant path. With no Sentry, the VaultAdmin holds these levers. A leaked Sentry key can stop new requests until the VaultAdmin unpauses, after HIGH. Requests already open can still be settled, cancelled, transferred and claimed.

The NavGuardian invalidates an attested sub-account's NAV, or re-anchors it to the latest attestation. It cannot post an attestation itself. A deployment may name the VaultAdmin as NavGuardian.

Keys outside the access manager

KeyWhere it actsWhat it does
NavAdminEach attested NAV provider the factory clonesAppoints and removes NavManagers; fixed for the provider's life
NavManagersEach attested NAV providerPost the account's value with attest
Fee recipientThe vaultReceives fees as shares, and may always call crystalliseFees

No role reaches the NavAdmin or the NavManagers. The VaultAdmin replaces the fee recipient with setFeeRecipient at HIGH, which first turns what has accrued into shares for the old one.

What each profile can call

Generated from RolesTable version 1.

ProfileRolesFunctions it can call
VaultAdmin76Every function in Who can call what, and the manager's 5 own roles. On each sub-account: executeModule or executeCalls, and returnAssetsToVault
VaultManager26, plus 2 per sub-accountTrussVault: pushToSubAccount, requestAssetsFromSubAccount, settleDeposit, settleRedeem, crystalliseFees, donate, forceTransfer, raiseEntryFee, lowerEntryFee, raiseExitFee, lowerExitFee, raiseManagementRate, lowerManagementRate, raisePerformanceRate, lowerPerformanceRate, raiseInstantRedeemFee, lowerInstantRedeemFee; DepositCapPolicy: lowerDepositCap; AssetRegistry: initiateDeregistration, finalizeDeregistration; InstantRedemptionPolicy: lowerWindowCapacity, lowerWindowRefillRate, tightenFreshnessGate, pauseInstant, clearDefaultSource; AccessManager: delegation admin; on each sub-account it is given: executeModule (tracked) or executeCalls (attested), and returnAssetsToVault
Settler2TrussVault: settleDeposit, settleRedeem
Allocator1TrussVault: pushToSubAccount
Donor1TrussVault: donate
Trader2 per sub-accounton each sub-account it is given: executeModule (tracked) or executeCalls (attested), and returnAssetsToVault
Sentry15TrussVault: pause; Sub-accounts: pause; SubAccountSwapPolicy: lowerRateLimitCapacity, lowerRateLimitRefillRate; SubAccountLendPolicy: lowerRateLimitCapacity, lowerRateLimitRefillRate; SubAccountAllocationPolicy: lowerRateLimitCapacity, lowerRateLimitRefillRate, lowerSubAccountCap; DepositCapPolicy: lowerDepositCap; InstantRedemptionPolicy: lowerWindowCapacity, lowerWindowRefillRate, tightenFreshnessGate, pauseInstant, clearDefaultSource
NavGuardian2Sub-accounts: invalidateNav, anchorDeviationToLatestAttestation

Where to read more

PageWhat it covers
Who can call whatEvery restricted function, its tier and its holders
Operator multicallsHow operator keys hold their roles, and how they are added and rotated
Tiers and timelocksGrant delays and how a delayed change runs
A key has leakedWhat to do next