Open code423n4 opened 2 years ago
WatchPug
function setTargetUtilization(uint _value) external onlyOwner { require(_value < 99e18, "InterestRateModel: _value < 100e18" targetUtilization = _value; emit NewTargetUtilization(_value); }
https://github.com/code-423n4/2021-09-wildcredit/blob/main/contracts/InterestRateModel.sol#L60-L64
Error message indicates "InterestRateModel: _value < 100e18"
While it actually checks for _value < 99e18
_value < 99e18
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-09-wildcredit/blob/main/contracts/InterestRateModel.sol#L60-L64
Error message indicates "InterestRateModel: _value < 100e18"
While it actually checks for
_value < 99e18