{
    "Function": "protocolAgent",
    "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 protocolAgent(bytes32 _protocol) external view override returns (address) {\n    address agent = protocolAgent_[_protocol];\n    if (agent != address(0)) return agent;\n\n    // If a protocol has been removed but is still within the claim deadline, the protocolAgent is returned\n    // Note: Old protocol agent will never be address(0)\n    if (block.timestamp <= removedProtocolClaimDeadline[_protocol]) {\n      return removedProtocolAgent[_protocol];\n    }\n\n    // If a protocol was never instantiated or was removed and the claim deadline has passed, this error is returned\n    revert ProtocolNotExists(_protocol);\n  }"
}