code-423n4 / 2022-02-concur-findings

2 stars 0 forks source link

Gas Optimizations #259

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

> 0 costs more gas than != 0 when use in a require() statement. The project has the following instances of this issue: https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/MasterChef.sol#L186 https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/StakingRewards.sol#L94 https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/StakingRewards.sol#L108

r2moon commented 2 years ago

duplicated with https://github.com/code-423n4/2022-02-concur-findings/issues/265

GalloDaSballo commented 2 years ago

18 gas saved