-
Notifications
You must be signed in to change notification settings - Fork 1
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
Yield upgradeable #118
Yield upgradeable #118
Conversation
Yield upgradeable
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
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.
please run the build and linter and then approved!
packages/contracts/.solhint.json
Outdated
@@ -8,6 +8,7 @@ | |||
"func-name-mixedcase": "off", | |||
"var-name-mixedcase": "off", | |||
"no-console": "off", | |||
"one-contract-per-file": "off" | |||
"one-contract-per-file": "off", | |||
"no-empty-blocks": "off" |
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.
please keep this linter in.
packages/contracts/lib/forge-std
Outdated
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.
please revert this - we shouldn't need to update forge-std
packages/contracts/remappings.txt
Outdated
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.
please check remappings. only openzeppelin-contracts-upgradeable should be added.
|
||
bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); | ||
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); | ||
bytes32 public constant UPGRADE_ROLE = keccak256("UPGRADE_ROLE"); |
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.
change this to be UPGRADER_ROLE
// constructor(IERC20Metadata asset, uint256 assetToSharesRatio, uint256 yieldPercentage) | ||
// { | ||
// __TimerCheats__init(block.timestamp); | ||
// __MultiTokenVault_init(asset); | ||
// ASSET_TO_SHARES_RATIO = assetToSharesRatio; | ||
// YIELD_PERCENTAGE = yieldPercentage; | ||
// } | ||
|
||
function initialize(IERC20Metadata asset, uint256 assetToSharesRatio, uint256 yieldPercentage) public initializer { |
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.
remove commented out code
No description provided.