setDebtLimits() is used to set the maximum and minimum debt for an underlying and ilk pair. The assumption is that max will be greater than min while setting them because otherwise, the debt checks in _pour() for line/dust will fail and revert.
While max and min debt limits can be reset, it is safer to perform input validation on them in setDebtLimits().
A recipe incorrectly interchanges the values of min and max debt, which leads to exceptions in pouring into the vaults.
Recommend adding a check to ensure max > mix.
albertocuestacanada (Yield) confirmed:
