When the addGauge function is called by the gaugeAdmin in the function the Gauge struct is updated.
When the addGauge function is called by the gaugeAdmin in the function the Gauge struct is updated with the required value and params. However in the typeWeight param always 0 is being passed in but the problem with that is that these weights are supposed to be evenly splitted between both the types i.e RWA and RAAC and this is also being done in the constructor this is initialized as 5000 for both types. if not that, the fact that this is also being updated by the gaugeAdmin in the setTypeWeight function. so either of these two should be passed for updating the Gauge instead of just 0 everytime.
Manual Review
Pass in 5000 instead of 0 when updating the Gauge struct or pass in this mapping instead o : typeWeights[gaugeType] = weight; because this being updated by the gaugeAdmin
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.