{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/routers/BatchDepositRouter.sol",
    "Parent Contracts": [
        "contracts/routers/StrategyRouter.sol",
        "contracts/helpers/StrategyTypes.sol",
        "contracts/interfaces/IStrategyRouter.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "contract BatchDepositRouter is StrategyRouter {\n    using SafeERC20 for IERC20;\n\n    constructor(address controller_) public StrategyRouter(RouterCategory.BATCH, controller_) {}\n\n    function deposit(address strategy, bytes calldata data)\n        external\n        override\n        onlyController\n    {\n        require(IStrategy(strategy).debt().length == 0, \"Cannot batch deposit debt\");\n        IOracle oracle = controller.oracle();\n        (address depositor, uint256 amount) =\n            abi.decode(data, (address, uint256));\n        address[] memory strategyItems = IStrategy(strategy).items();\n        for (uint256 i; i < strategyItems.length; i++) {\n          address token = strategyItems[i];\n          uint256 expectedValue =\n              uint256(StrategyLibrary.getExpectedTokenValue(amount, strategy, token));\n          if (expectedValue > 0)\n              IERC20(token).safeTransferFrom(\n                  depositor,\n                  strategy,\n                  expectedValue.mul(10**18).div(uint256(oracle.estimateItem(10**18, token)))\n              );\n        }\n    }\n\n    function withdraw(address strategy, bytes calldata data)\n        external\n        override\n        onlyController\n    {\n      (strategy, data);\n      revert(\"Withdraw not supported\");\n    }\n\n    function rebalance(address strategy, bytes calldata data) external override onlyController {\n        (strategy, data);\n        revert(\"Rebalance not supported\");\n    }\n\n    function restructure(address strategy, bytes calldata data)\n        external\n        override\n        onlyController\n    {\n        (strategy, data);\n        revert(\"Restructure not supported\");\n    }\n}"
}