Add the pauser role to some contracts - #108
Merged
Merged
Conversation
evercoinx
force-pushed
the
serge/pauser-role
branch
from
May 10, 2026 15:47
f633a1a to
3c2ef37
Compare
dB2510
reviewed
May 11, 2026
dB2510
left a comment
Member
There was a problem hiding this comment.
Can you please confirm if all the new pauser role variables in the all the contracts are compatible with already deployed contracts?
Contributor
Author
The current changes are totally upgrade safe. |
dB2510
approved these changes
May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
High Risk
Changes who can
pause()/unpause()on six upgradeable mainnet contracts; ifPAUSER_ROLEis not granted during upgrade/deploy, contracts can become unpausable during incidents. Also updates deployment/upgrade automation paths, which are operationally sensitive.Overview
Separates pausing from admin governance by introducing
PAUSER_ROLEonPolicyManager,ClaimManager,PremiumManager,SpecRegistry,Swapper, andCoverPoolFactory, and switchingpause()/unpause()to requireonlyRole(PAUSER_ROLE)instead ofDEFAULT_ADMIN_ROLE.Updates deployment and interfaces to support a dedicated pauser: adds
PAUSERenv var, wiresPAUSER_ROLEgrants duringDeploy.s.solrole configuration, and extends interfaces/mocks/tests accordingly. Adds mainnet-focused upgrade tooling and documentation, including Ethereum-specific upgrade scripts (notably a ClaimManager variant that skipsinitializeV2) and a runbook describing batching upgrades withgrantRoleto avoid a no-pauser window.Reviewed by Cursor Bugbot for commit 2c4dbec. Bugbot is set up for automated code reviews on this repo. Configure here.