code-423n4 / 2022-06-canto-findings

0 stars 0 forks source link

Gas Optimizations #276

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

USING > 0 COSTS MORE GAS THAN != 0 WHEN USED ON A UINT IN A REQUIRE() STATEMENT :-

File: stableswap/contracts/BaseV1-core.sol (line 253) :-

 `require(liquidity > 0, 'ILM')`
JeeberC4 commented 2 years ago

Warden submitted multiple Gas Optimizations. Will not be judged.