{
    "Function": "getBestOfferAndInfo",
    "File": "contracts/RubiconRouter.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "RubiconMarket",
        "RubiconMarket"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function getBestOfferAndInfo(address asset, address quote)\n        public\n        view\n        returns (\n            uint256, //id\n            uint256,\n            ERC20,\n            uint256,\n            ERC20\n        )\n    {\n        address _market = RubiconMarketAddress;\n        uint256 offer = RubiconMarket(_market).getBestOffer(\n            ERC20(asset),\n            ERC20(quote)\n        );\n        (\n            uint256 pay_amt,\n            ERC20 pay_gem,\n            uint256 buy_amt,\n            ERC20 buy_gem\n        ) = RubiconMarket(_market).getOffer(offer);\n        return (offer, pay_amt, pay_gem, buy_amt, buy_gem);\n    }"
}