mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
25 lines
611 B
Solidity
25 lines
611 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.7.0;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
import { IERC6777 } from "../interfaces/IBridge.sol";
|
|
|
|
contract WithdrawalWorkerStuckCheck {
|
|
constructor(
|
|
IERC6777 token,
|
|
address changeReceiver,
|
|
address[] memory targets,
|
|
bytes[] memory calldatas
|
|
) {
|
|
for (uint256 i = 0; i < targets.length; i++) {
|
|
(bool success, ) = targets[i].call(calldatas[i]);
|
|
require(success, "WW: call failed");
|
|
}
|
|
uint256 amount = token.balanceOf(address(this));
|
|
token.transfer(changeReceiver, amount);
|
|
assembly {
|
|
return(0, 0)
|
|
}
|
|
}
|
|
}
|