Contract - GaugeController.sol
In current implementation user can vote on particular gauge, and can increase it's weight, via calling vote()
function.
_updateGaugeWeight()
Incorrect logic part -
currently, multiplication of oldWeight of user and current veRACC holding of user is performed, but it's may be possible that veRAAC holding user earlier (during oldWeight time), is less compared to current holding; or veRAAC holding of user earlier (during oldWeight time) is higher than current holder.
So the point is that, the multiplication should be done between user's old weight and user's old voting power/ veRAAC holding; instead of user's old weight and user's current voting power.
Same as above
Incorrect updating of gauge weight or g.weight
, with incorrect value.
Manual
Create new state variable struct for user, to track the voting status. something like -
Implement something like this in vote()
function instead of -
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.