Comparisons to boolean constant #47
Labels
bug
Warden finding
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
loop
Vulnerability details
In a couple of instances a boolean (return) value is compared to
false
. Consider using the!
operator instead.Impact
Unnecessary comparison to a boolean constant, only using the boolean value is slightly cheaper on gas.
Proof of Concept
Boolean constant comparisons:
Tools Used
Slither & Remix
The text was updated successfully, but these errors were encountered: