The setLiqRatio function checks that the passed liqRatio is greater than or equal to maxLTV, but no such check is performed inside the setMaxLTV function. Hence admins can unintentionally break this invariant.
Remediation to consider
Consider adding an explicit check to ensure that maxLTV is less than liqRatio.
Description
The
setLiqRatio
function checks that the passedliqRatio
is greater than or equal tomaxLTV
, but no such check is performed inside thesetMaxLTV
function. Hence admins can unintentionally break this invariant.Remediation to consider
Consider adding an explicit check to ensure that
maxLTV
is less thanliqRatio
.