addGauge
initializes periods with block.timestamp
, potentially causing time-weighted averages to include past timestamps. This may skew calculations.
Current implementation of GaugeController's addGauge function
Impact of using block.timestamp
Time-weighted calculations include past periods
Initial period weights become misaligned
Reward distributions start from incorrect timestamps
Period boundaries don't align with intended cycles
Manual review
Align period start times with future epochs (here's like, block.timestamp + periodDuration
) to ensure proper windowing.
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.