{
    "Function": "getLiquidatableDebt",
    "File": "src/Market.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "getCreditLimit"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function getLiquidatableDebt(address user) public view returns (uint) {\n        uint debt = debts[user];\n        if (debt == 0) return 0;\n        uint credit = getCreditLimit(user);\n        if(credit >= debt) return 0;\n        return debt * liquidationFactorBps / 10000;\n    }"
}