-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add checkpointing in missing methods #88
Conversation
test/GovernanceStaker.t.sol
Outdated
@@ -2764,6 +2764,58 @@ contract NotifyRewardAmount is GovernanceStakerRewardsTest { | |||
assertLe(govStaker.scaledRewardRate(), _expectedRewardRate); | |||
} | |||
|
|||
function test_shareManipulationIfRewardsArentCeckpointed() public { |
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.
function test_shareManipulationIfRewardsArentCeckpointed() public { | |
function test_shareManipulationIfRewardsArentCheckpointed() public { |
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 we rename this test to describe that there's no longer share manipulation? also, are there unit tests to write here (e.g. alterDelegatee checkpoints global reward, alterDelegatee checkpoints reward)? defer to you on that
test/GovernanceStaker.t.sol
Outdated
|
||
address _fox = makeAddr("fox"); | ||
|
||
//!audit-ok Step 1, fox deposits with full earning power |
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.
might revise these comments, or possibly attribute CergyK above the test
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.
Updated
b63e68c
to
e3592d4
Compare
Coverage after merging fix/earning-power-inflation into main will be
Coverage Report
|
Description
Closes #83