The InterestRateModel.setTargetUtilization function reverts on _value < 99e18 but the error message says _value < 100e18.
Impact
The target utilization rate cannot be set to 99% or 99.2%, etc.
The cut-off at < 99% seems rather arbitrary and the intention was probably < 100%, what the error message says.
Recommendation
The require statement should be changed to _value < 100e18.
Handle
cmichel
Vulnerability details
The
InterestRateModel.setTargetUtilization
function reverts on_value < 99e18
but the error message says_value < 100e18
.Impact
The target utilization rate cannot be set to
99%
or99.2%
, etc. The cut-off at< 99%
seems rather arbitrary and the intention was probably< 100%
, what the error message says.Recommendation
The
require
statement should be changed to_value < 100e18
.