Skip to content

Commit

Permalink
resolves 5.25
Browse files Browse the repository at this point in the history
  • Loading branch information
toyv0 committed Jan 4, 2024
1 parent 1cf60ee commit baec95a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/RewardsDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit baec95a

Please sign in to comment.