-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transfer Ownership of contract from multisig to governance #279
base: development
Are you sure you want to change the base?
Conversation
Add pauser role in priceFeeds Add deployment script for transferring ownership to governance Prettier and linting contract
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several code quality issues that don't endanger contracts` security
@@ -23,6 +23,13 @@ contract ProtocolSettings is State, ProtocolTokenUser, ProtocolSettingsEvents { | |||
using SafeERC20 for IERC20; | |||
using SafeMath for uint256; | |||
|
|||
address public admin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
admin
should be in the State
so it's easier to track storage layout
event AdminRemoved(address admin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should admin
be indexed
?
admin = _admin; | ||
} | ||
|
||
function getAdmin() external view returns (address) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
admin
variable is public, so you don't need a separate getter
Add admin role in protocol settings
Add pauser role in priceFeeds
Add deployment script for transferring ownership to governance
Prettier and linting contract