15,000 USDC
View results
Submission Details
Severity: medium

Missing Zero Check

Summary

Missing Zero Check of collateralValueInUsd variable of L330 of DSCEngine.sol contract could cause unnecessary errors and imprecision of code execution

Vulnerability Details

Missing Zero Check of collateralValueInUsd variable of L330 of DSCEngine.sol contract could cause unnecessary errors and precision of code execution, which could affect functions linked to it, liquidate(...) function of L229 is one of them

Tools Used

Solidity, Hardhat

Recommendations

Making sure a reversion error functions reverts the code with details when collateralValueInUsd is Zero

Support

FAQs

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