In GaugeController.sol, admin can add gauges via addGauge()
, whereby the added gauge has to be either RWA or RAAC gauge type. Each gauge type has their own stored typeWeight value that is stored in typeWeights mapping. However in addGauge()
, the typeWeight value for the newly added gauge is hardcoded to 0.
In the above snippet from addGauge()
, line 17 shows the hardcoded value of 0 for the new gauge. This typeWeight refers to the weight multipliers for each gauge type.
Now referring to the initializeTypeWeights()
function below, it sets the initial typeWeight for RWA and RAAC gauge types.
All newly added gauges will not have the correct typeWeight set as defined in the typeWeights[] mapping, and instead will always have typeWeight = 0. There will hence never be any weight multiplier value for all new gauges.
Manual
Ensure that typeWeight retrieves the correct value from typeWeights mapping, depending on the gauge type of the newly added gauge.
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.