{
    "Function": "deposit",
    "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": [
        "SafeMath"
    ],
    "Internal Calls": [
        "nonReentrant",
        "require(bool,string)",
        "_deposit"
    ],
    "Library Calls": [
        "add"
    ],
    "Low-Level Calls": [],
    "Code": "function deposit(\n        uint256 _amount,\n        address _token,\n        address _strategy,\n        address _to\n    ) external payable override nonReentrant returns (uint256) {\n        require(_to != address(0), 'SavingsAccount::deposit receiver address should not be zero address');\n        uint256 _sharesReceived = _deposit(_amount, _token, _strategy);\n        balanceInShares[_to][_token][_strategy] = balanceInShares[_to][_token][_strategy].add(_sharesReceived);\n        emit Deposited(_to, _sharesReceived, _token, _strategy);\n        return _sharesReceived;\n    }"
}