```\n    function _revertOnMinDebt(\n        LoansState storage loans_,\n        uint256 poolDebt_,\n        uint256 borrowerDebt_,\n        uint256 quoteDust_\n    ) view {\n        if (borrowerDebt_ != 0) {\n            uint256 loansCount = Loans.noOfLoans(loans_);\n            if (loansCount >= 10) {\n                if (borrowerDebt_ < _minDebtAmount(poolDebt_, loansCount)) revert AmountLTMinDebt();\n            } else {\n                if (borrowerDebt_ < quoteDust_)                            revert DustAmountNotExceeded();\n            }\n        }\n    }\n```\n