Submitted by deadrxsezzz
Users can get extra voting power by front-running calls to change_gauge_weight.
It can be expected that in some cases calls will be made to change_gauge_weight to increase or decrease a gauges weight. The problem is users can be monitoring the mempool expecting such calls. Upon seeing such, any people who have voted for said gauge can just remove their vote prior to change_gauge_weight. Once it executes, they can vote again for their gauge, increasing its weight more than it was expected to be:
Example:
Gauge weight was supposed to be changed from 10_000 to 15_000, but due to the user front-running, gauge weight is now 25_000.
Instead of having a set function, use increase/ decrease methods.
alcueca (Judge) commented:
deadrxsezzz (Warden) commented:
OpenCoreCH (veRWA) commented:
alcueca (Judge) commented:
OpenCoreCH (veRWA) confirmed on duplicate 401
