Closed code423n4 closed 1 year ago
require
Splitting into separate require() statements saves gas
require()
DBR.sol: L249
require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");
Recommendation:
require(recoveredAddress != address(0), "INVALID_SIGNER"); recoveredAddress == owner, "INVALID_SIGNER");
Similarly for the following:
Market.sol: L75
Market.sol: L162
Market.sol: L173
Market.sol: L184
Market.sol: L195
Market.sol: L448
Market.sol: L512
0xean marked the issue as grade-c
Avoid use of '&&' within a
require
functionSplitting into separate
require()
statements saves gasDBR.sol: L249
Recommendation:
Similarly for the following:
Market.sol: L75
Market.sol: L162
Market.sol: L173
Market.sol: L184
Market.sol: L195
Market.sol: L448
Market.sol: L512