Incorrect maxBoost initial value in BaseGauge
In BaseGauge, stakers' rewards will be calculated based on the basic weight and the boost calculation. Boost parameters are initialized in the constructor contract.
The stakers' reward boost will be calculated in function calculateBoost
. In calculateBoost()
function, we will calculate the different between maxBoost and minBoost.
The problem here is that maxBoost's initial value is less than the minBoost initial value. This will cause the calculation reverted.
Users cannot stake or withdraw because of the reverted boost calculation. The boost parameter can be updated via the setBoostParameters
function. Before the admin does not update the boost parameters, users cannot stake/withdraw.
Manual
Initial maxBoost & minBoost with correct value.
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.