{
    "Function": "nonStakersClaimable",
    "File": "contracts/managers/SherlockProtocolManager.sol",
    "Parent Contracts": [
        "contracts/managers/Manager.sol",
        "node_modules/@openzeppelin/contracts/security/Pausable.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "contracts/interfaces/managers/ISherlockProtocolManager.sol",
        "contracts/interfaces/managers/IManager.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "_calcIncrementalProtocolDebt"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function nonStakersClaimable(bytes32 _protocol) external view override returns (uint256) {\n    // Calcs the debt of a protocol since the last accounting update\n    uint256 debt = _calcIncrementalProtocolDebt(_protocol);\n    // Gets the active balance of the protocol\n    uint256 balance = activeBalances[_protocol];\n    // The debt should never be higher than the balance (only happens if the arbitrages fail)\n    if (debt > balance) debt = balance;\n\n    // Adds the incremental claimable amount owed to nonstakers to the total claimable amount\n    return\n      nonStakersClaimableByProtocol[_protocol] +\n      (nonStakersPercentage[_protocol] * debt) /\n      HUNDRED_PERCENT;\n  }"
}