The following require
statement in Blacklistable.sol
can be removed: require(to != address(0));
Indeed, this check is implemented in the _transfer()
function in the ERC20.sol
smart contract.
Consider removing the require statement for gas saving purposes.
- Sigma Prime Audit InfiniGold Finding INF-09
- Error Checking
- Unnecessary
require()
- Zero-address Check
- ERC20
_transfer()
- Remove Check -> Gas