{
    "Function": "markets",
    "File": "contracts/HubbleViewer.sol",
    "Parent Contracts": [
        "contracts/Interfaces.sol"
    ],
    "High-Level Calls": [
        "IAMM",
        "IClearingHouse",
        "IClearingHouse"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function markets() external view returns(MarketInfo[] memory _markets) {\n        uint l = clearingHouse.getAmmsLength();\n        _markets = new MarketInfo[](l);\n        for (uint i = 0; i < l; i++) {\n            IAMM amm = clearingHouse.amms(i);\n            _markets[i] = MarketInfo(address(amm), amm.underlyingAsset());\n        }\n    }"
}