You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a compound comparison such as ≥ or ≤ uses more gas than a simple comparison check like >, <, or ==. Compound comparison operators can be replaced with simple ones for gas savings.
Using a compound comparison such as ≥ or ≤ uses more gas than a simple comparison check like >, <, or ==. Compound comparison operators can be replaced with simple ones for gas savings.
Technical Details
The
withdraw()
function in ConvexStrategy provides one example of this, but there are other instances in the contracts:By switching around the if/else clauses, we can replace the compound operator with a simple one
Impact
Gas savings.
Recommendation
Replace compound comparison operators with simple ones for gas savings.
The text was updated successfully, but these errors were encountered: