TrussDocs

Flow of funds

Flow of funds

How money enters, moves through and leaves a Truss vault, which function runs each step, who must call it, and when it needs a fresh NAV.

Deposits and redemptions in a Truss vault are requests. A holder opens one, a settler fills it later at one price for the whole batch, and the holder then claims the result. The one exception is an instant withdrawal, which opens a redemption and pays it in the same call. This section follows the money through each flow: which contract and function runs each step, who must call it, and which steps need a fresh NAV (net asset value, what everything the vault holds is worth in USDC).

Key points

  • A holder opens and claims requests. A settler decides which requests fill, and when.
  • Only the steps that price something need a fresh NAV: settling, instant withdrawals and turning fees into shares.
  • Opening, claiming, cancelling and transferring a request need no fresh NAV, so they keep working when a price feed lapses.
  • Every fee is paid in vault shares. No fee moves USDC out of the vault.

Who is who

WhoWhat they do
OwnerThe address whose USDC or shares a request takes
ControllerControls the request: claims the result, and can cancel or transfer it while it is pending. Usually the owner
OperatorAn address a controller has approved with setOperator to act for it on every request
ReceiverThe address a claim pays
SettlerThe profile that fills requests. The VaultManager and the VaultAdmin can settle too
Allocator and TradersThe Allocator sends idle USDC to sub-accounts. Traders work the capital in the sub-accounts that name them, and bring it back
Fee recipientThe address that receives the fee shares

The flows at a glance

FlowOpened bySettled or executed byClaimed byPage
DepositThe owner or its operatorA Settler, VaultManager or the VaultAdminThe controller or its operator; anyone, for the controllerDeposits
RedemptionThe owner or its operatorA Settler, VaultManager or the VaultAdminThe controller or its operator; anyone, for the controllerWithdrawals
Instant withdrawalThe owner and the controller, or their operatorsThe same callPaid in the same callInstant withdrawals
FeesCharged inside the flows aboveTurned into shares at settlements and fee changesRedeemed by the fee recipient like any holderFees in the flow of funds

A pending request can also change hands before it settles. See Selling a pending request.

What needs a fresh NAV, and what a pause stops

A NAV is stale when a price feed is past its allowed age, an attestation is late, or a price cannot be read. A stale NAV stops the steps that price. A vault pause stops the steps that start something new.

StepNeeds a fresh NAVWhile the NAV is staleWhile the vault is paused
Opening a depositNoWorksRefused
Opening a redemptionNo; its minimum is checked at the last price, and skipped while staleWorksRefused
SettlingYesRevertsWorks
Instant withdrawalYes, and its oldest input must be within the freshness gateRevertsRefused
ClaimingNoWorksWorks
Cancelling or transferring a requestNoWorksWorks
Turning fees into shares, and any fee changeYesRevertsWorks

While the NAV is stale, a pending request waits. Its holder can still cancel it for free.

Where to read more

PageWhat it covers
DepositsRequest, settle and claim a deposit
WithdrawalsRequest, fund, settle and claim a redemption
Instant withdrawalsRedeeming and being paid in one call
Fees in the flow of fundsWhere each fee is taken, and how the recipient is paid
ArchitectureThe contracts these flows run through