15,000 USDC
View results
Submission Details
Severity: gas
Valid

Use `assembly` to check for `address(0)`

Summary

Using assembly to check for address(0) is gas-efficient.
There are 2 instances of this issue:

File: src/DecentralizedStableCoin.sol
58: if (_to == address(0)) {
File: src/DSCEngine.sol
103: if (s_priceFeeds[token] == address(0)) {

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.