{
    "Function": "getUnderlyingPrice",
    "File": "contracts/tests/TestOracle.sol",
    "Parent Contracts": [
        "contracts/Oracle.sol",
        "contracts/legos/Governable.sol",
        "node_modules/@openzeppelin/contracts/proxy/utils/Initializable.sol",
        "contracts/legos/Governable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function getUnderlyingPrice(address underlying)\n        override\n        external\n        view\n        returns(int256 answer)\n    {\n        if (stablePrice[underlying] != 0) {\n            return stablePrice[underlying];\n        }\n        require(prices[underlying] != 0, \"underlying price has not been set as yet\");\n        return prices[underlying];\n    }"
}