Voting direction is always equal to the user voting power.
In BaseGauge.processVote() function , a parameter is named totalVotes which has the same name as the state variable totalVotes.
Because the function parameter totalVotes has the same name as the state variable totalVotes, the global totalVotes is shadowed
As a result, when voteDirection is called with a value , it will always be equal to the user voting power regardless of the value used
Voting direction is always equal to the user voting power .
Manual Review
Rename the function parameter to avoid shadowing the global variable.
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.