Skip to main content

Signature

IPolicyRegistry.sol

Description

Nominates newAdmin as the pending admin for policyId. The current admin does not change. policyAdmin(policyId) still returns the current admin. pendingPolicyAdmin(policyId) returns newAdmin. The pending admin must call finalizeUpdateAdmin(policyId) to take effect. Until then, the current admin retains full update rights on the policy. Passing address(0) as newAdmin clears any previously staged nomination without transferring administration. Emits PolicyAdminStaged(policyId, currentAdmin, pendingAdmin).

Parameters

Reverts

Access Control

Callable only by the current policy admin for policyId. Any other caller reverts Unauthorized.

Example

Admin handoff