Emergencies
A key has leaked
What to do when a vault key leaks, from revoking an operator key at once to the limits of what can be done if the VaultAdmin key leaks.
What a leaked key can do depends on its profile. Revoking an operator role is immediate, so the first step is the same for almost every key: take its roles away, then find out what it did, then replace it.
Key points
- Revoke first and rotate second.
- Look for changes the key has scheduled, and cancel them.
- On a vault deployed with forced transfers, a leaked vault manager key can move any holder's position, so act at once.
- No other key can override a leaked VaultAdmin key.
An operator key
This covers a settler, allocator, donor or trader key.
- Revoke its multicall's roles. The VaultAdmin or a vault manager calls
revokeRoleon the AccessManager for each role, which acts at once. - Check what it did. Its multicall emits an
Executedevent for every call it made. - Replace it with a new key and multicall; see Rotate a key.
Until it is revoked, a settler key can choose which requests fill from the idle USDC, and a trader key can trade within the limits on its sub-accounts. An allocator key can push idle USDC into sub-accounts up to their caps, and by pushing into an attested account every block it can keep that account's value stale. None of them can take anything out of the vault.
A vault manager key
- Take its powers away. The VaultAdmin revokes its immediate roles, its execute and return roles, and its
delegation admin, all at once. On a vault deployed with forced transfers, revoke
forceTransferfirst. - Cancel what it scheduled. Revoking its fee-raise roles waits the CRITICAL tier. Until then, the VaultAdmin cancels any fee raise it schedules. A raise can never pass the fee's ceiling.
- Undo its grants. With the delegation admin it may have revoked other keys' roles or granted new ones. Use
the AccessManager's
RoleGrantedandRoleRevokedevents to re-grant and revoke. - Remove it as an attester. If the key is a NavManager on an attested account's provider, the NavAdmin
removes it with
setNavManager(key, false).
The Sentry, the NavGuardian or the fee recipient
The VaultAdmin revokes a leaked Sentry or NavGuardian at once. A Sentry can only pause and lower, but undoing a pause
waits HIGH. A NavGuardian can re-anchor an attested account to its latest attestation, so revoke it before anything
else when an attester key may also be leaked. A leaked fee recipient is replaced with setFeeRecipient (HIGH); fee
shares already paid to it stay in its wallet.
The VaultAdmin key
The VaultAdmin holds every lever and both cancellers. What the delays still protect:
- every delayed change it makes is scheduled in public before it runs;
- making another key an admin takes two CRITICAL windows, or one in the first five days after deployment.
What they do not protect: no other key can cancel what it schedules, and its immediate levers act at once. These
include pausing, removing a price adapter, revoking roles and, on a vault deployed with them, forced transfers.
There is no recovery path on chain. A VaultAdmin multisig whose signers are partly compromised changes its signers
inside the multisig. Holders can watch the AccessManager's OperationScheduled events, and cancel a pending request,
which is free, to keep their shares.
A NavManager or NavAdmin key: see An attestation is wrong.
Where to read more
| Page | What it covers |
|---|---|
| Profiles | What each key can and cannot do |
| Rotate a key | Replacing the key once it is revoked |
| Emergency controls | Every control that acts at once |