{
    "Function": "_mintShares",
    "File": "contracts/mocks/stETHMock.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol"
    ],
    "High-Level Calls": [
        "SafeMath",
        "SafeMath"
    ],
    "Internal Calls": [
        "_getTotalShares",
        "require(bool,string)"
    ],
    "Library Calls": [
        "add",
        "add"
    ],
    "Low-Level Calls": [],
    "Code": "function _mintShares(\n        address _recipient,\n        uint256 _sharesAmount\n    ) internal returns (uint256 newTotalShares) {\n        require(_recipient != address(0), \"MINT_TO_THE_ZERO_ADDRESS\");\n\n        newTotalShares = _getTotalShares().add(_sharesAmount);\n        totalShares = newTotalShares;\n\n        shares[_recipient] = shares[_recipient].add(_sharesAmount);\n\n        // Notice: we're not emitting a Transfer event from the zero address here since shares mint\n        // works by taking the amount of tokens corresponding to the minted shares from all other\n        // token holders, proportionally to their share. The total supply of the token doesn't change\n        // as the result. This is equivalent to performing a send from each other token holder's\n        // address to `address`, but we cannot reflect this as it would require sending an unbounded\n        // number of events.\n    }"
}