Platform: Code4rena
Start Date: 30/11/2021
Pot Size: $30,000 USDC
Total HM: 0
Participants: 21
Period: 3 days
Judge: pauliax
Id: 63
League: ETH
Rank: 20/21
Findings: 2
Award: $7.24
🌟 Selected for report: 0
🚀 Solo Findings: 0
0x1f8b
Pay less gas.
In the line https://github.com/code-423n4/2021-11-fei/blob/add34324513b863f58e4ef7b3cd0c12d776dbb7f/contracts/PegExchanger.sol#L38 is compared a boolean value with true, in order to get a bool result, use the boolean value returned by isEnabled it's cheaper than add a extra comparation.
Manual review
require(isEnabled(), "Proposals are not both passed");
#0 - elee1766
2021-12-06T04:07:21Z
#160
#1 - pauliax
2021-12-10T18:26:44Z
A duplicate of #160