mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-08-13 17:15:24 -04:00
custom relayer
This commit is contained in:
parent
50872ac342
commit
9009b9c56d
7 changed files with 30 additions and 11 deletions
|
@ -23,10 +23,10 @@ contract ETHMixer is Mixer {
|
|||
) Mixer(_verifier, _mixDenomination, _merkleTreeHeight, _emptyElement, _operator) public {
|
||||
}
|
||||
|
||||
function _processWithdraw(address payable _receiver, uint256 _fee) internal {
|
||||
function _processWithdraw(address payable _receiver, address payable _relayer, uint256 _fee) internal {
|
||||
_receiver.transfer(mixDenomination - _fee);
|
||||
if (_fee > 0) {
|
||||
operator.transfer(_fee);
|
||||
_relayer.transfer(_fee);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue