-
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
Nonce cannot be incremented by depositor #89
Conversation
Coverage after merging fix/resolve-small-issues into main will be
Coverage Report
|
@@ -1284,7 +1283,7 @@ contract ClaimRewardOnBehalf is GovernanceStakerRewardsTest { | |||
|
|||
// A user deposits staking tokens | |||
(_depositAmount, _depositId) = | |||
_boundMintAndStake(_depositor, _depositAmount, _delegatee, _claimer); | |||
_boundMintAndStake(_depositor, _depositAmount, address(0x01), _claimer); |
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.
I don't understand why this change was made?
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.
Good question, this is to avoid a stack too deep error
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.
left a question but otherwise looks good.
@@ -119,6 +119,7 @@ contract BinaryEligibilityOracleEarningPowerCalculator is Ownable, IEarningPower | |||
_setOraclePauseGuardian(_oraclePauseGuardian); | |||
_setDelegateeScoreEligibilityThreshold(_delegateeScoreEligibilityThreshold); | |||
_setUpdateEligibilityDelay(_updateEligibilityDelay); | |||
lastOracleUpdateTime = block.timestamp; |
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.
could use a test here.
@@ -761,10 +760,7 @@ abstract contract GovernanceStaker is INotifiableRewardReceiver, Multicall { | |||
uint256 _depositNewEarningPower, | |||
uint256 _totalEarningPower | |||
) internal pure returns (uint256 _newTotalEarningPower) { | |||
if (_depositNewEarningPower >= _depositOldEarningPower) { |
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.
was this changed because of a different finding?
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.
Good question
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.
Yes, it was do you think we should keep it the same?
Description
Closes #85