{
    "Function": "_stakeShares",
    "File": "contracts/legacy/MetaVault.sol",
    "Parent Contracts": [
        "contracts/legacy/IMetaVault.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol",
        "node_modules/@openzeppelin/contracts/GSN/Context.sol"
    ],
    "High-Level Calls": [
        "SafeMath",
        "SafeMath",
        "SafeMath"
    ],
    "Internal Calls": [
        "updateReward",
        "_getReward"
    ],
    "Library Calls": [
        "mul",
        "div",
        "add"
    ],
    "Low-Level Calls": [],
    "Code": "function _stakeShares(uint _shares) internal {\n        UserInfo storage user = userInfo[msg.sender];\n        updateReward();\n        _getReward();\n        user.amount = user.amount.add(_shares);\n        user.yaxRewardDebt = user.amount.mul(accYaxPerShare).div(1e12);\n        emit Deposit(msg.sender, _shares);\n    }"
}