function setTargetUtilization should also prevent _value = 0 as then function interestRatePerBlock will stop working (revert due to division by 0). This function can only be called by an owner but I think still it makes sense to enforce this algorithmically.
Handle
pauliax
Vulnerability details
Impact
function setTargetUtilization should also prevent _value = 0 as then function interestRatePerBlock will stop working (revert due to division by 0). This function can only be called by an owner but I think still it makes sense to enforce this algorithmically.
Recommended Mitigation Steps
require(_value > 0, "InterestRateModel: _value > 0");