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

Use `==` instead for `<=` for `uints` when comparing for `zero` values

Summary

Using == 0 is cheaper than <= 0 for uints

There are 2 instances of this issue:

File: src/DecentralizedStableCoin.sol
48: if (_amount <= 0) {
61: if (_amount <= 0) {

Support

FAQs

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