{
    "Function": "getEstimates",
    "File": "contracts/v3/Harvester.sol",
    "Parent Contracts": [
        "contracts/v3/interfaces/IHarvester.sol"
    ],
    "High-Level Calls": [
        "SafeMath",
        "IStrategy",
        "IStrategy",
        "IManager",
        "SafeMath",
        "IStrategy",
        "IStrategy",
        "ISwap",
        "ISwap",
        "SafeMath",
        "IManager",
        "SafeMath",
        "SafeMath",
        "SafeMath"
    ],
    "Internal Calls": [],
    "Library Calls": [
        "div",
        "div",
        "mul",
        "div",
        "mul",
        "mul"
    ],
    "Low-Level Calls": [],
    "Code": "function getEstimates(\n        address _strategy\n    )\n        public\n        view\n        returns (uint256 _estimatedWETH, uint256 _estimatedYAXIS)\n    {\n        ISwap _router = IStrategy(_strategy).router();\n        address[] memory _path;\n        _path[0] = IStrategy(_strategy).want();\n        _path[1] = IStrategy(_strategy).weth();\n        uint256[] memory _amounts = _router.getAmountsOut(\n            IStrategy(_strategy).balanceOfPool(),\n            _path\n        );\n        _estimatedWETH = _amounts[1];\n        uint256 _slippage = slippage;\n        if (_slippage > 0) {\n            _estimatedWETH = _estimatedWETH.mul(_slippage).div(ONE_HUNDRED_PERCENT);\n        }\n        _path[0] = manager.yaxis();\n        uint256 _fee = _estimatedWETH.mul(manager.treasuryFee()).div(ONE_HUNDRED_PERCENT);\n        _amounts = _router.getAmountsOut(_fee, _path);\n        _estimatedYAXIS = _amounts[1];\n        if (_slippage > 0) {\n            _estimatedYAXIS = _estimatedYAXIS.mul(_slippage).div(ONE_HUNDRED_PERCENT);\n        }\n    }"
}