第二遍走查 snapshot4

This commit is contained in:
mingda
2020-11-30 16:08:11 +08:00
parent 4550a872f4
commit e5c24453bb
7 changed files with 146 additions and 148 deletions

View File

@@ -18,11 +18,11 @@ contract DODOCalleeHelper is ReentrancyGuard {
address payable public _WETH_;
fallback() external payable {
require(msg.sender == _WETH_, "WE_DONT_SAVED_YOUR_ETH");
require(msg.sender == _WETH_, "WE_SAVED_YOUR_ETH");
}
receive() external payable {
require(msg.sender == _WETH_, "WE_DONT_SAVED_YOUR_ETH");
require(msg.sender == _WETH_, "WE_SAVED_YOUR_ETH");
}
constructor(address payable _weth) public {
@@ -57,4 +57,4 @@ contract DODOCalleeHelper is ReentrancyGuard {
SafeERC20.safeTransfer(IERC20(token), to, amount);
}
}
}
}