Skip to content

Commit

Permalink
Fix underflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
08xmt committed Sep 13, 2024
1 parent dd5cc66 commit 5458170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sInv.sol
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ contract sINV is ERC4626{
revenueData.lastPeriodRevenue = 0;
revenueData.periodRevenue = newRevenue;
revenueData.lastBuyPeriod = uint64(currentPeriod);
} else if(periodsSinceLastBuy - revenueData.lastBuyPeriod == 1) {
} else if(periodsSinceLastBuy == 1) {
revenueData.lastPeriodRevenue = revenueData.periodRevenue;
revenueData.periodRevenue = newRevenue;
revenueData.lastBuyPeriod = uint64(currentPeriod);
Expand Down

0 comments on commit 5458170

Please sign in to comment.