mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-08-07 06:12:14 -04:00
custom relayer
This commit is contained in:
parent
50872ac342
commit
9009b9c56d
7 changed files with 30 additions and 11 deletions
|
@ -36,12 +36,12 @@ contract ERC20Mixer is Mixer {
|
|||
safeErc20TransferFrom(msg.sender, address(this), mixDenomination);
|
||||
}
|
||||
|
||||
function _processWithdraw(address payable _receiver, uint256 _fee) internal {
|
||||
function _processWithdraw(address payable _receiver, address payable _relayer, uint256 _fee) internal {
|
||||
_receiver.transfer(userEther);
|
||||
|
||||
safeErc20Transfer(_receiver, mixDenomination - _fee);
|
||||
if (_fee > 0) {
|
||||
safeErc20Transfer(operator, _fee);
|
||||
safeErc20Transfer(_relayer, _fee);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue