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

[I-4] Constants in comparisons should appear on the left side

Summary

Doing so will prevent typo bugs

Vulnerability Details

Instances (4):

File: src/DSCEngine.sol
96: if (amount == 0) {
329: if (totalDscMinted == 0) return type(uint256).max;
File: src/DecentralizedStableCoin.sol
48: if (_amount <= 0) {
61: if (_amount <= 0) {

Impact

Tools Used

Recommendations

Support

FAQs

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