{
    "Function": "withdrawFromSavingsAccount",
    "File": "contracts/SavingsAccount/SavingsAccountUtil.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "ISavingsAccount",
        "ISavingsAccount"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function withdrawFromSavingsAccount(\n        ISavingsAccount _savingsAccount,\n        address _from,\n        address _to,\n        uint256 _amount,\n        address _token,\n        address _strategy,\n        bool _withdrawShares\n    ) internal returns (uint256 _amountReceived) {\n        if (_from == address(this)) {\n            _amountReceived = _savingsAccount.withdraw(_amount, _token, _strategy, payable(_to), _withdrawShares);\n        } else {\n            _amountReceived = _savingsAccount.withdrawFrom(_amount, _token, _strategy, _from, payable(_to), _withdrawShares);\n        }\n    }"
}