{
    "Function": "_sweep",
    "File": "contracts/managers/Manager.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/security/Pausable.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "contracts/interfaces/managers/IManager.sol"
    ],
    "High-Level Calls": [
        "IERC20",
        "SafeERC20"
    ],
    "Internal Calls": [
        "balance(address)",
        "revert InvalidConditions()"
    ],
    "Library Calls": [
        "safeTransfer"
    ],
    "Low-Level Calls": [
        "call"
    ],
    "Code": "function _sweep(address _receiver, IERC20[] memory _extraTokens) internal {\n    // Loops through the extra tokens (ERC20) provided and sends all of them to the receiver address\n    for (uint256 i; i < _extraTokens.length; i++) {\n      IERC20 token = _extraTokens[i];\n      token.safeTransfer(_receiver, token.balanceOf(address(this)));\n    }\n    // Sends any remaining ETH to the receiver address (as long as receiver address is payable)\n    (bool success, ) = _receiver.call{ value: address(this).balance }('');\n    if (success == false) revert InvalidConditions();\n  }"
}