{
    "Function": "recordOvercommittedBeaconChainETH",
    "File": "src/contracts/core/StrategyManager.sol",
    "Parent Contracts": [
        "src/contracts/core/StrategyManagerStorage.sol",
        "src/contracts/interfaces/IStrategyManager.sol",
        "src/contracts/permissions/Pausable.sol",
        "src/contracts/interfaces/IPausable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/security/ReentrancyGuardUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [
        "IDelegationManager"
    ],
    "Internal Calls": [
        "onlyEigenPodManager",
        "nonReentrant",
        "_removeShares"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function recordOvercommittedBeaconChainETH(address overcommittedPodOwner, uint256 beaconChainETHStrategyIndex, uint256 amount)\n        external\n        onlyEigenPodManager\n        nonReentrant\n    {\n        // get `overcommittedPodOwner`'s shares in the enshrined beacon chain ETH strategy\n        uint256 userShares = stakerStrategyShares[overcommittedPodOwner][beaconChainETHStrategy];\n        // if the amount exceeds the user's shares, then record it as an amount to be \"paid off\" when the user completes a withdrawal\n        if (amount > userShares) {\n            uint256 debt = amount - userShares;\n            beaconChainETHSharesToDecrementOnWithdrawal[overcommittedPodOwner] += debt;\n            amount -= debt;\n        }\n        // removes shares for the enshrined beacon chain ETH strategy\n        if (amount != 0) {\n            _removeShares(overcommittedPodOwner, beaconChainETHStrategyIndex, beaconChainETHStrategy, amount);            \n        }\n        // create array wrappers for call to DelegationManager\n        IStrategy[] memory strategies = new IStrategy[](1);\n        strategies[0] = beaconChainETHStrategy;\n        uint256[] memory shareAmounts = new uint256[](1);\n        shareAmounts[0] = amount;\n        // modify delegated shares accordingly, if applicable\n        delegation.decreaseDelegatedShares(overcommittedPodOwner, strategies, shareAmounts);\n    }"
}