Skip to content

Commit

Permalink
fix: update currentday
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Dec 2, 2024
1 parent c6934e8 commit 000ff64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/contracts/UBI/UBIPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ contract UBIPool is AccessControlUpgradeable, GoodCollectiveSuperApp, UUPSUpgrad
emit UBICycleCalculated(currentDay, currentBalance, ubiSettings.cycleLengthDays, nextDailyPool);
}

uint256 prevPeriodClaimers = status.periodClaimers;
status.currentDay = currentDay;
status.dailyUbi = nextDailyUbi;
if (status.dailyUbi <= extendedSettings.minClaimAmount) status.dailyUbi = 0;

Expand Down

0 comments on commit 000ff64

Please sign in to comment.