{
    "Function": "_withdraw",
    "File": "contracts/SavingsAccount/SavingsAccount.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/utils/ReentrancyGuard.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/Initializable.sol",
        "contracts/interfaces/ISavingsAccount.sol"
    ],
    "High-Level Calls": [
        "IYield",
        "IYield",
        "IYield"
    ],
    "Internal Calls": [
        "_transfer",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _withdraw(\n        uint256 _amount,\n        address _token,\n        address _strategy,\n        address payable _to,\n        bool _withdrawShares\n    ) internal returns (address _tokenReceived, uint256 _amountReceived) {\n        if (_withdrawShares) {\n            _tokenReceived = IYield(_strategy).liquidityToken(_token);\n            require(_tokenReceived != address(0), 'Liquidity Tokens address cannot be address(0)');\n            _amountReceived = IYield(_strategy).unlockShares(_tokenReceived, _amount);\n        } else {\n            _tokenReceived = _token;\n            _amountReceived = IYield(_strategy).unlockTokens(_token, _amount);\n        }\n        _transfer(_amountReceived, _tokenReceived, _to);\n    }"
}