Submitted by T1MOH, also found by yjrwkk, josephdara, devival, KupiaSec, LaScaloneta, cccz, Iurii3, pep7siup, 0xnev, bytes032, bytes032, skyge, and sces60107
As a result, voting process is broken, as it wont execute proposals with most of forVotes. Instead, it will execute proposals with most of againstVotes.
It returns whether number of votes with support = 1 is greater than with support = 0:
However support = 1 means againstVotes, and support = 0 means forVotes:
https://github.com/code-423n4/2023-06-lybra/blob/26915a826c90eeb829863ec3851c3c785800594b/contracts/lybra/governance/LybraGovernance.sol#L120-L122
Manual Review
Swap 1 and 0:
Governance
LybraFinance confirmed
