{
    "Function": "_harvest",
    "File": "contracts/v3/strategies/ConvexStrategy.sol",
    "Parent Contracts": [
        "contracts/v3/strategies/BaseStrategy.sol",
        "contracts/v3/interfaces/IStrategy.sol"
    ],
    "High-Level Calls": [
        "IERC20"
    ],
    "Internal Calls": [
        "_swapTokens",
        "_deposit",
        "_payHarvestFees",
        "getMostPremium",
        "_swapTokens",
        "_addLiquidity",
        "_claimReward",
        "balanceOfWant"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _harvest(uint256 _estimatedWETH, uint256 _estimatedYAXIS) internal override {\n        _claimReward();\n        uint256 _cvxBalance = IERC20(cvx).balanceOf(address(this));\n        if (_cvxBalance > 0) {\n            _swapTokens(cvx, crv, _cvxBalance, 1);\n        }\n\n        uint256 _remainingWeth = _payHarvestFees(crv, _estimatedWETH, _estimatedYAXIS);\n\n        if (_remainingWeth > 0) {\n            (address _stableCoin, ) = getMostPremium(); // stablecoin we want to convert to\n            _swapTokens(weth, _stableCoin, _remainingWeth, 1);\n            _addLiquidity();\n\n            if (balanceOfWant() > 0) {\n                _deposit();\n            }\n        }\n    }"
}