Missing Input Validation could allow Underflow possibilities in L273 and L285 of contract DSCEngine.sol contract after Subtraction Operation.
These codes shows that an underflow is possible without validation check depending on the incoming value of uint amountDscToBurn and uint256 amountCollateral parameters respectively
Missing Input Validation could allow Underflow possibilities in L273 and L285 of contract DSCEngine.sol contract after Subtraction Operation which could jeopardize the integrity of accurate calculation and a possible loss of fund.
Solidity, Hardhat
An Input validation check is necessary to avoid underflow from subtraction of large number from a smaller number. Another good recommendation is to use safeMath Library in carrying out these calculations as they are fund sensitive.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.