TrussDocs

Guides

Change curator

How to move a vault from one curator to another without a gap, including the grant delays and the NAV attestation keys that may need moving too.

Changing curator means granting the new curator's keys their roles and revoking the old curator's. Some grants take effect only after a delay, so grant first and revoke last. That way the vault is never left without someone to settle, fund or trade.

Key points

  • A new settler or donor can act at once; a new allocator or trader waits the HIGH grant delay.
  • A new vault manager waits the CRITICAL grant delay, and only the VaultAdmin can appoint one.
  • Revoking an operator key's roles is immediate, except a vault manager's fee raises, which wait CRITICAL.
  • If the old curator's keys post NAV for an attested sub-account, the NavAdmin moves that job too.

Steps

  1. Create a multicall for each of the new curator's keys. An operator multicall's owner is fixed when it is created, so each key needs its own. See Operator multicalls.
  2. Grant the new curator's profiles.
    • The VaultAdmin or a vault manager grants the Settler, Donor and Allocator roles, and each sub-account's execute and return roles, in one transaction.
    • Only the VaultAdmin grants the VaultManager profile. Its immediate roles are granted at once and take effect after the CRITICAL grant delay. Its fee-raise roles are admin changes, scheduled and run after the CRITICAL tier.
  3. Wait before relying on the new keys. A settler, a donor and a return role act at once. An allocator's push and a trader's execute role act after the HIGH grant delay. A new vault manager acts after the CRITICAL grant delay. RoleGranted gives the moment each one takes effect.
  4. Revoke the old curator's roles. The VaultAdmin or a vault manager revokes operator roles at once. The VaultAdmin revokes a vault manager's immediate roles and its delegation admin at once. Revoking its fee raises waits CRITICAL, and until then the VaultAdmin cancels any fee raise it schedules.
  5. Move NAV attestation, if needed. On each attested sub-account's NAV provider, the NavAdmin adds the new attesters with setNavManager(key, true) first, then removes the old ones with setNavManager(key, false).
  6. Check the result. Keys added after launch are not in the vault's address book, so track the AccessManager's RoleGranted and RoleRevoked events, and each provider's NavManagerSet.

What a vault manager can change on its own

A vault manager holds the delegation admin, which grants and revokes the Settler, Allocator and Donor roles and every sub-account's execute and return roles. It can do this for any holder, the other vault managers and the VaultAdmin included. If an outgoing vault manager misuses this, the VaultAdmin takes its delegation admin at once and re-grants what it revoked. See A key has leaked.

Where to read more

PageWhat it covers
Choosing and changing a curatorTruss Labs or another curator
Curator accessEach curator profile's powers
ProfilesEvery profile and how it is held
Rotate a keyReplacing one key rather than a whole curator