{
    "Function": "deposit",
    "File": "contracts/routers/FullRouter.sol",
    "Parent Contracts": [
        "contracts/routers/StrategyRouter.sol",
        "contracts/helpers/StrategyTypes.sol",
        "contracts/interfaces/IStrategyRouter.sol"
    ],
    "High-Level Calls": [
        "IStrategy",
        "IStrategy"
    ],
    "Internal Calls": [
        "onlyController",
        "_batchBuy",
        "abi.decode()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function deposit(address strategy, bytes calldata data)\n        external\n        override\n        onlyController\n    {\n        (address depositor, uint256 amount) =\n            abi.decode(data, (address, uint256));\n        address[] memory strategyItems = IStrategy(strategy).items();\n        address[] memory strategyDebt = IStrategy(strategy).debt();\n        int256[] memory estimates = new int256[](strategyItems.length + strategyDebt.length + 1);\n        _batchBuy(\n          strategy,\n          depositor,\n          amount,\n          estimates,\n          strategyItems,\n          strategyDebt\n        );\n    }"
}