Closed code423n4 closed 2 years ago
itsmeSTYJ
If low rate is lower than min rate, the calculation of interestRatePerBlock will not be accurate.
function setLowRate(uint _value) external onlyOwner { // ok require(_value < highRate, "InterestRateModel: _value < lowRate"); require(_value > minRate, "InterestRateModel: _value > minRate"); // added this. lowRate = _timeRateToBlockRate(_value); emit NewLowRate(_value); }
Duplicate #63
Handle
itsmeSTYJ
Vulnerability details
Impact
If low rate is lower than min rate, the calculation of interestRatePerBlock will not be accurate.
Recommended Mitigation Steps