Submitted by gzeon
In _decrementWeightUntilFree, the free weight is calculated by balanceOf[user] - getUserWeight[user] plus weight freed from non-deprecated gauges. The non-deprecated criteria is unnecessary and lead to incorrect accounting of free weight.
ERC20Gauges.sol#L547-L583
Consider Alice allocated 3 weight to gauge D, gauge A and gauge B equally where gauge D is depricated
Alternatively, Alice can
No need to treat deprecated gauge separately.
Joeysantoro (xTRIBE) confirmed and commented:
For this contest, 27 reports were submitted by wardens detailing low risk and non-critical issues. The report highlighted below by IllIllI received the top score from the judge.
The following wardens also submitted reports: joestakey, hyh, robee, rayn, sorrynotsorry, Dravee, MaratCerby, delfin454000, defsec, Ruhum, teryanarmen, hake, gzeon, VAD37, 0xmint, CertoraInc, fatima_naz, 0xDjango, csanuragjain, samruna, catchup, 0v3rf10w, simon135, oyc_109, kebabsec, and dipp.
