Platform: Code4rena
Start Date: 21/04/2022
Pot Size: $100,000 USDC
Total HM: 18
Participants: 60
Period: 7 days
Judge: gzeon
Total Solo HM: 10
Id: 112
League: ETH
Rank: 31/60
Findings: 1
Award: $293.06
🌟 Selected for report: 0
🚀 Solo Findings: 0
293.0606 USDC - $293.06
In the file RoleManager.sol
the function _revokeRole
doesn't remove the account
from the _roleMembers[role] set.
This makes getRoleMemberCount wrong (for the else part) therefore the renounceGovernance
require, on the number of governor, useless and risky as there could be no governance anymore. This imply among other things, that no account would be admin of all other roles, as the Governance Role is admin to all others. So if the last governor is removed, access control would be frozen for the whole the protocol
Hardhat-ts testing
Remove from the set the corresponding account for the role
#0 - chase-manning
2022-04-28T11:48:27Z
Duplicate of #164