Skip to content

Conversation

@lilelrain
Copy link
Contributor

Replace one main "systemOwner" role in the protocol with a variety of different roles for each contract.
There is a RoleManager contract which stores constants containing those roles' names used accross the protocol, functions to check whether a user has a particular role, functions to grant & revoke roles.
Contracts which implement the roles mechanics have the modifiers which call the RolesManager contract inside the internal functions to check whether a caller has a particular role

…at do the updateUserStatsForPRT and transferOwnershipAndInject functions do
…e roles, add calls to such functions in dependant contract
…the internal function in the contracts with a role mechanism, add comments to IRoleManager, replace 'only system owner can call...' comments with the corresponding role names, change string formating in tests
@lilelrain lilelrain requested a review from Hrom131 March 20, 2023 22:38
@lilelrain lilelrain self-assigned this Mar 20, 2023
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