mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-12-23 09:44:25 +01:00
refund asserts for ETH mixer
This commit is contained in:
parent
c889a88b4d
commit
0cbc0ad79b
@ -24,6 +24,9 @@ contract ETHMixer is Mixer {
|
||||
}
|
||||
|
||||
function _processWithdraw(address payable _receiver, address payable _relayer, uint256 _fee, uint256 /* _refund */) internal {
|
||||
require(msg.value == 0, "Message value is supposed to be zero for ETH mixer");
|
||||
require(_refund == 0, "Message value is supposed to be zero for ETH mixer");
|
||||
|
||||
_receiver.transfer(denomination - _fee);
|
||||
if (_fee > 0) {
|
||||
_relayer.transfer(_fee);
|
||||
|
Loading…
Reference in New Issue
Block a user