The function _getBaseWeight will return the weight of the gauge not the weight of the user for the gauge.
As we can see the account variable is never used.
The base weight passed to _applyBoost
comes from _getBaseWeight
, which only returns a gauge-level value (obtained from IGaugeController(controller).getGaugeWeight(address(this))
). This means that the boost is applied to the same base weight for every user, regardless of their individual stake.
All users would have the same “base” value applied to their boost, regardless of the amount they’ve staked.
This means that a user with a small deposit but a high boost multiplier (from locking a lot of veTokens) could receive a large effective weight relative to someone who staked a larger amount but has a lower boost.
_getBaseWeight should return the weight of the user
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.