This commit is contained in:
Alexey 2021-08-19 11:15:46 +03:00
parent 6ed44f493b
commit 9befe25540
1 changed files with 0 additions and 2 deletions

View File

@ -101,14 +101,12 @@ contract TornadoPool is Initializable {
} else if (_extData.extAmount < 0) {
require(msg.value == 0, "Sent ETH amount should be 0 for withdrawal");
require(_extData.recipient != address(0), "Can't withdraw to zero address");
// _extData.recipient.transfer(uint256(-extAmount));
_transfer(_extData.recipient, uint256(-_extData.extAmount));
} else {
require(msg.value == 0, "Sent ETH amount should be 0 for transaction");
}
if (_extData.fee > 0) {
// _extData.relayer.transfer(_args.fee);
_transfer(_extData.relayer, _extData.fee);
}