{
    "Function": "takeProfit",
    "File": "src/Fed.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IMarket",
        "IDola"
    ],
    "Internal Calls": [
        "getProfit"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function takeProfit(IMarket market) public {\n        uint profit = getProfit(market);\n        if(profit > 0) {\n            market.recall(profit);\n            dola.transfer(gov, profit);\n        }\n    }"
}