Skip to content

Commit

Permalink
do a proper fix, last one was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Sep 9, 2024
1 parent 451e2a4 commit 855e107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Redistribution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ contract Redistribution is AccessControl, Pausable {
revert WrongPhase();
}

if (_lastUpdate >= block.number - 2 * ROUND_LENGTH && _lastUpdate > 0) {
if (_lastUpdate >= block.number - 2 * ROUND_LENGTH && _lastUpdate == 0) {
revert MustStake2Rounds();
}

Expand Down

0 comments on commit 855e107

Please sign in to comment.