{
    "Function": "coverageAmounts",
    "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": [
        "revert ProtocolNotExists(bytes32)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function coverageAmounts(bytes32 _protocol)\n    external\n    view\n    override\n    returns (uint256 current, uint256 previous)\n  {\n    // Checks to see if the protocol has an active protocolAgent (protocol not removed)\n    // OR checks to see if the removed protocol is still within the claim window\n    // If so, gives the current and previous coverage, otherwise throws an error\n    if (\n      protocolAgent_[_protocol] != address(0) ||\n      block.timestamp <= removedProtocolClaimDeadline[_protocol]\n    ) {\n      return (currentCoverage[_protocol], previousCoverage[_protocol]);\n    }\n\n    revert ProtocolNotExists(_protocol);\n  }"
}