mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
tidy
This commit is contained in:
parent
6ed44f493b
commit
9befe25540
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user