From 855e10726c655f116306d183856f1b38ed7f5b31 Mon Sep 17 00:00:00 2001 From: "Mark.B" Date: Mon, 9 Sep 2024 11:18:37 +0200 Subject: [PATCH] do a proper fix, last one was wrong --- src/Redistribution.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Redistribution.sol b/src/Redistribution.sol index 0a5a37b2..49db2efa 100644 --- a/src/Redistribution.sol +++ b/src/Redistribution.sol @@ -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(); }