28910 - [SC - High] Bool check wrong in registerGauge
Previous28892 - [SC - Medium] ZeroLockermerge can make a voting lock last lon...Next28912 - [SC - Critical] Attackers can control the vote result and ampli...
Last updated
Was this helpful?
Last updated
Was this helpful?
Submitted on Mar 1st 2024 at 17:07:59 UTC by @offside0011 for
Report ID: #28910
Report type: Smart Contract
Report severity: High
Target: https://github.com/zerolend/governance
Impacts:
Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended effect of original results
registerGauge function has a boolean value check written incorrectly, causing the pool to never be registered.
in the function registerGauge, the if bool check is wrong,
lead to pools will never be success registered
https://github.com/zerolend/governance/blob/main/contracts/voter/PoolVoter.sol#L136