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

Fix NOR stuck/refund #693

Merged
merged 2 commits into from
Mar 22, 2023
Merged

Conversation

krogla
Copy link
Member

@krogla krogla commented Mar 17, 2023

  • rename ever constants to TOTAL_xxx
  • fix copy/paste typo in _updateStuckValidatorsCount

@krogla krogla requested a review from TheDZhon March 17, 2023 13:59
Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

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

LGTM, please consider the suggestion below

@@ -611,16 +611,16 @@ contract NodeOperatorsRegistry is AragonApp, Versioned {
*/
function _updateStuckValidatorsCount(uint256 _nodeOperatorId, uint64 _stuckValidatorsCount) internal {
Packed64x4.Packed memory stuckPenaltyStats = _loadOperatorStuckPenaltyStats(_nodeOperatorId);
uint64 curStuckValidatorsCount = stuckPenaltyStats.get(REFUNDED_VALIDATORS_COUNT_OFFSET);
uint64 curStuckValidatorsCount = stuckPenaltyStats.get(STUCK_VALIDATORS_COUNT_OFFSET);
Copy link
Contributor

@TheDZhon TheDZhon Mar 20, 2023

Choose a reason for hiding this comment

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

could you also add a simple test case to secure this change?

@TheDZhon TheDZhon merged commit eafdaaa into fix/shapella-upgrade-beta3-to-rc Mar 22, 2023
@TheDZhon TheDZhon deleted the fix-nor-upd-stuck branch March 22, 2023 13:11
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