In BaseGauge, minBoost is incorrectly set higher than maxBoost, leading to calculation errors in boost computation.
The constructor initializes the boost parameters as follows:
Here we can see that minBoost and greater then maxBoost. This incorrect assignment affects boost calculations in BoostCalculator::calculateBoost() function:
Since minBoost > maxBoost, calculating boostRange will result in underflow error.
Although setBoostParameters function exists to update these values. But if setBoostParameters is not called on time, the incorrect values persist, leading to miscalculations.
Incorrect boost calculations may lead to improper reward distribution.
Manual Review
Ensure correct initialization of minBoost and maxBoost in BaseGauge constructor.
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.