From baec95a7cebab5f754b179d4ec4eab2ec009b44b Mon Sep 17 00:00:00 2001 From: toyvo Date: Thu, 4 Jan 2024 11:29:42 -0500 Subject: [PATCH] resolves 5.25 --- src/RewardsDistributor.sol | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/RewardsDistributor.sol b/src/RewardsDistributor.sol index 98dc835..a79b79e 100644 --- a/src/RewardsDistributor.sol +++ b/src/RewardsDistributor.sol @@ -233,11 +233,7 @@ contract RewardsDistributor is IRewardsDistributor, ReentrancyGuard { } break; } else { - if (sinceLast == 0) { - tokensPerWeek[thisWeek] += toDistribute; - } else { - tokensPerWeek[thisWeek] += (toDistribute * (nextWeek - t)) / sinceLast; - } + tokensPerWeek[thisWeek] += (toDistribute * (nextWeek - t)) / sinceLast; } t = nextWeek; thisWeek = nextWeek;