Skip to content
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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

cwsnt
Copy link
Contributor

@cwsnt cwsnt commented Jun 18, 2021

Add admin role in protocol settings

Add pauser role in priceFeeds

Add deployment script for transferring ownership to governance

Prettier and linting contract

Add pauser role in priceFeeds

Add deployment script for transferring ownership to governance

Prettier and linting contract
@cwsnt cwsnt linked an issue Jun 18, 2021 that may be closed by this pull request
Copy link

@korepkorep korepkorep left a 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;
Copy link

@korepkorep korepkorep Jul 16, 2021

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

Comment on lines +9 to +10
event AdminRemoved(address admin);

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) {

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

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.

moving from multisig to governance
3 participants