This commit is contained in:
Alexey 2021-08-19 11:15:46 +03:00
parent 6ed44f493b
commit 9befe25540

View File

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