Skip to content

Conversation

@pegahcarter
Copy link
Collaborator

Adds an array of freezers who have permissions to freeze accounts.

Copilot AI review requested due to automatic review settings December 18, 2025 20:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a freezer role system that allows designated addresses to freeze accounts, expanding beyond the previous owner-only model. The changes add an isFreezer mapping and related management functions to control which addresses can freeze accounts.

  • Adds isFreezer mapping to track authorized freezers
  • Implements addFreezer and removeFreezer functions with corresponding events
  • Updates freeze and freezeMany functions to allow freezers (not just owner) to freeze accounts

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/contracts/fraxtal/frxUSD/versioning/FrxUSD2.sol Complete implementation of freezer role system with full functionality including add/remove freezer functions, updated access control, events, and errors
src/contracts/ethereum/frxUSD/versioning/FrxUSD2.sol Partial implementation adding only the isFreezer mapping and storage gap, missing the management functions and access control updates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants