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

5 stars 0 forks source link

Gas Optimizations #386

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

There are 3 instances of this:

https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L293

https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L598

https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L599

JeeberC4 commented 2 years ago

Warden submitted multiple Gas Optimizations. Will not be judged.