The BaseGauge::_updateWeights function miscalculates the next period start time, leading to skipped periods.
The BaseGauge::_updateWeights function behaves as follows:
when weightPeriod.startTime exists, it will use the following formula:
This calculation advances the period by one additional period, instead of just moving to the next period.
This will cause incorrect period tracking and skipped periods.
Manual Review
In the BaseGauge::_updateWeights function, replace the incorrect nextPeriodStart calculation with the following formula:
This ensures that the gauge progresses one period at a time instead of skipping multiple periods.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.