{
    "Function": "slashQueuedWithdrawal",
    "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": [
        "IStrategy"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)",
        "calculateWithdrawalRoot",
        "_withdrawBeaconChainETH",
        "onlyFrozen",
        "nonReentrant",
        "onlyOwner"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function slashQueuedWithdrawal(address recipient, QueuedWithdrawal calldata queuedWithdrawal, IERC20[] calldata tokens, uint256[] calldata indicesToSkip)\n        external\n        onlyOwner\n        onlyFrozen(queuedWithdrawal.delegatedAddress)\n        nonReentrant\n    {\n        require(tokens.length == queuedWithdrawal.strategies.length, \"StrategyManager.slashQueuedWithdrawal: input length mismatch\");\n\n        // find the withdrawalRoot\n        bytes32 withdrawalRoot = calculateWithdrawalRoot(queuedWithdrawal);\n\n        // verify that the queued withdrawal is pending\n        require(\n            withdrawalRootPending[withdrawalRoot],\n            \"StrategyManager.slashQueuedWithdrawal: withdrawal is not pending\"\n        );\n\n        // reset the storage slot in mapping of queued withdrawals\n        withdrawalRootPending[withdrawalRoot] = false;\n\n        // keeps track of the index in the `indicesToSkip` array\n        uint256 indicesToSkipIndex = 0;\n\n        uint256 strategiesLength = queuedWithdrawal.strategies.length;\n        for (uint256 i = 0; i < strategiesLength;) {\n            // check if the index i matches one of the indices specified in the `indicesToSkip` array\n            if (indicesToSkipIndex < indicesToSkip.length && indicesToSkip[indicesToSkipIndex] == i) {\n                unchecked {\n                    ++indicesToSkipIndex;\n                }\n            } else {\n                if (queuedWithdrawal.strategies[i] == beaconChainETHStrategy){\n                     //withdraw the beaconChainETH to the recipient\n                    _withdrawBeaconChainETH(queuedWithdrawal.depositor, recipient, queuedWithdrawal.shares[i]);\n                } else {\n                    // tell the strategy to send the appropriate amount of funds to the recipient\n                    queuedWithdrawal.strategies[i].withdraw(recipient, tokens[i], queuedWithdrawal.shares[i]);\n                }\n                unchecked {\n                    ++i;\n                }\n            }\n        }\n    }"
}