Architecture
Attested sub-accounts
How attested sub-accounts reach custodians and offchain venues through approved call shapes, and how their reported value is limited, checked and frozen.
An attested sub-account reaches places a contract cannot price itself: a custodian, an exchange account, a token only allowlisted holders may hold, or another chain through bridging. It makes only calls the vault approved. A NAV provider reports its value on chain, and the account decides whether to use each report.
Key points
- An attested sub-account can make only calls that match a shape the vault approved.
- Its value comes from its own NAV provider, so one account's report affects only that account.
- A report far below the expected value is refused and freezes the account until it is re-anchored.
- While the account's value is stale, the whole vault's NAV is stale and settlement waits.
When an attested sub-account is used
Use one for a custodied real-world asset, a venue that settles offchain, borrowing and looping, or a bridge. A tracked sub-account cannot do these: everything it does must come back to it in the same call, at oracle prices.
Approved call shapes
A vault manager, the VaultAdmin, or a trader the account names calls executeCalls with a batch of calls. Each call
must match a call shape in the account's BitmaskVerifier. A shape fixes the target contract, the native value
and the function exactly, and may leave chosen arguments free, such as an amount. The account never calls the
vault, its AccessManager, its verifier, the oracles or its own NAV provider.
Shapes can be approved at deployment, through the factory, and are live with the vault. After launch, the
VaultAdmin approves a shape with allowCallShape after CRITICAL, and revokes one at once with revokeCallShape. A
shape approves a capability, not one transaction, so approved calls can be repeated, reordered or combined.
Where the value comes from
Each attested account has its own NAV provider. By default it is an AttestedNavProvider, where NavManagers post
the account's value with attest. The value is the account's whole net worth in USDC, after what it owes. The
vault's NavAdmin appoints and removes NavManagers. The VaultAdmin can replace the provider after CRITICAL, for
example with a third-party source.
Each report carries an observed time: the block on the vault's chain at which the account was read. A report is never newer than its oldest part, so a part read elsewhere, such as on another chain, moves that time back. The account uses a report only if it was taken after the account's last push, return and call batch.
Safeguards
The deviation band
A report must sit within a band around an anchor: the value when the current window opened, moved by pushes and returns since. A report above the band is not used, and the last accepted value stands. A report below it is refused and freezes the account. Three settings are fixed for the account's life: the band's width, the heartbeat (how old a value may be and still count, at most seven days), and the window over which the band's anchor holds.
Invalidation and re-anchoring
The NavGuardian or the VaultAdmin can freeze the account at once with invalidateNav. While frozen, no report
counts, pushes are refused and returns send nothing, but approved calls still run so positions can be reduced.
Only anchorDeviationToLatestAttestation, from the same two, ends it, by accepting the provider's latest report.
Anyone may call syncNav to have the account take up a new report.
What it means for deposits and withdrawals
While the account is stale or frozen, the vault's NAV is stale, so settlement and instant withdrawals wait. After a call batch the account stays stale until a report taken after the batch is used. While fresh, it can return up to the lesser of its USDC balance and its value.
What attestation does not protect against
A wrong report inside the band is used as reported. The account also relies on the custodian or venue, any token issuer, the attestation service and the NavManagers' keys. Its swaps have no on-chain price check.
Where to read more
| Page | What it covers |
|---|---|
| Bridging | Sending assets to another chain |
| NAV parameters | How an attested value enters NAV |
| Profiles | The NavGuardian and the other profiles |
| An attestation is wrong | What to do about a wrong report |