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

0 stars 0 forks source link

Gas Optimizations #279

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-periphery.sol (line 104) :-

 `require(amountA > 0, 'BaseV1Router: INSUFFICIENT_AMOUNT');`
JeeberC4 commented 2 years ago

Warden submitted multiple Gas Optimizations. Will not be judged.