Emergencies
A price feed is wrong
What happens when a price feed stops or reports a wrong price, what the vault already does on its own, and the steps an owner takes.
A stopped feed and a wrong feed are different problems. The vault handles a stopped feed on its own, by refusing to use a price that is too old. A feed that reports a wrong price looks fresh, so the vault uses it until someone acts.
Key points
- A stale feed halts settlement, instant withdrawals and trades in that asset on its own.
- A wrong but fresh price is used until someone stops the settlers or removes the feed.
- Removing an asset's price adapter is immediate, except USDC's, which can only be replaced.
- Binding a new adapter waits CRITICAL.
A feed has stopped
When a held asset's feed is older than its allowed age, the vault's NAV reads stale. While it is stale:
- settlement and instant withdrawals are refused;
- a trade that prices the asset is refused;
- every fee change, a lowering included, is refused;
- requests can still be made, cancelled and claimed, and shares still transfer;
- the share-price views give the last fresh price, and
nav()flags it as stale.
Lowering limits adds nothing here, because pricing has already stopped. Wait for the feed to recover, or have the
VaultAdmin bind the asset to a working source with setOracleAdapterForAsset (CRITICAL). The oracle prices one
whole unit through the new adapter before accepting it.
A feed reports a wrong price
- Stop anything settling at that price. Revoke the settlers' roles, or have the settling service stop. A
vault manager or the Sentry pauses instant withdrawals with
pauseInstant(). The Sentry or the VaultAdmin can pause the vault to stop new requests too. - Take the price out of use. The VaultAdmin removes the asset's adapter with
removeOracleAdapterForAsset, which is immediate and makes the NAV stale until the asset is bound again. Or it replaces the adapter withsetOracleAdapterForAsset, which waits CRITICAL. USDC's adapter cannot be removed, only replaced, so for a wrong USDC price keep the settlers and the instant path stopped until the replacement runs. - Stop trades at that price. The Sentry or the VaultAdmin lowers the affected swap limits to zero, so no swap in that asset can go through at the wrong price.
Removing the adapter also stops any trade or withdrawal in that asset, so bring capital back first if you need to.
An L2 sequencer outage
On a network with a sequencer, the single node that orders transactions, the price adapters also read a sequencer uptime feed. Every price they give is stale while the sequencer is down, and for a grace period after it returns: an hour in the committed Base network file. A vault whose NAV is all USDC, an attested account's reported value included, reads no feed. It stays fresh through an outage, and settlement and instant withdrawals keep working. During an outage, pause instant withdrawals or hold settlement until the sequencer is back.
Getting back to normal
A new adapter waits CRITICAL. Unpausing the vault or the instant path waits HIGH. A revoked settler is granted back at once. Once the NAV is fresh again, the next settlement, fee crystallisation or instant withdrawal records a new share price.
Where to read more
| Page | What it covers |
|---|---|
| Tracked sub-accounts | How holdings are priced |
| Emergency controls | Every control that acts at once |
| Risks | Price-feed risk for holders |