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

Yield upgradeable #118

Merged
merged 6 commits into from
Oct 3, 2024
Merged

Yield upgradeable #118

merged 6 commits into from
Oct 3, 2024

Conversation

Krishnakumarskr
Copy link
Member

No description provided.

Copy link

openzeppelin-code bot commented Oct 3, 2024

Yield upgradeable

Generated at commit: a5d8f3a4766303117224e3ba9e83435e3968c46a

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
0
0
4
22
27
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

Copy link
Member

@lucasia lucasia left a 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!

@@ -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"
Copy link
Member

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.

Copy link
Member

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

Copy link
Member

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");
Copy link
Member

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

Comment on lines 15 to 23
// 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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out code

@Krishnakumarskr Krishnakumarskr marked this pull request as ready for review October 3, 2024 16:06
@Krishnakumarskr Krishnakumarskr merged commit f75bbde into main Oct 3, 2024
8 checks passed
@lucasia lucasia deleted the yield-upgradeable branch December 3, 2024 13:35
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