BaseGauge's _getBaseWeight
function ignores the user's account parameter and returns the gauge's weight instead, leading to incorrect reward calculations for all users.
In the BaseGauge contract, the _getBaseWeight function incorrectly uses address(this)
instead of the provided account
parameter:
This affects the reward calculation on earned function and
getUserWeight function
All users receive rewards based on gauge weight instead of their individual weights and incorrect rewards will be distributed across all users.
Manual Review
Correct the _getBaseWeight
function to use the account parameter
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.