Incorrect boostState.minBoost value is set in the BaseGauge contract constructor.
The docs state that boosState.minBoost should be set to 10000, however, the value is set to 1e18.
It also is clearly incorrect because maxBoost < minBoost, which doesn't make logical sense.
This will cause an underflow error whenever calculateBoost is called (given that the parameters haven't been set to different values by the controller through setBoostParameters
.
The underflow error occurs due to the calculation:
Low
The controller can just alter the initial values through calling setBoostParameters, however, that doesn't mean the issue is non-existent.
Manual review
Set the initial value for minBoost correctly, as per the docs.
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.