{
    "Function": "getUnbackedPortionPriceAndRedeemability",
    "File": "contracts/src/TroveManager.sol",
    "Parent Contracts": [
        "contracts/src/Interfaces/ITroveEvents.sol",
        "contracts/src/Interfaces/ITroveManager.sol",
        "contracts/src/Dependencies/LiquityBase.sol",
        "contracts/src/Interfaces/ILiquityBase.sol"
    ],
    "High-Level Calls": [
        "IStabilityPool",
        "IPriceFeed"
    ],
    "Internal Calls": [
        "_getTCR",
        "getEntireBranchDebt"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function getUnbackedPortionPriceAndRedeemability() external returns (uint256, uint256, bool) {\n        uint256 totalDebt = getEntireBranchDebt();\n        uint256 spSize = stabilityPool.getTotalBoldDeposits();\n        uint256 unbackedPortion = totalDebt > spSize ? totalDebt - spSize : 0;\n\n        (uint256 price, ) = priceFeed.fetchRedemptionPrice();\n        // It's redeemable if the TCR is above the shutdown threshold, and branch has not been shut down\n        bool redeemable = _getTCR(price) >= SCR && shutdownTime == 0;\n\n        return (unbackedPortion, price, redeemable);\n    }"
}