custom relayer

This commit is contained in:
poma 2019-09-06 16:54:37 -04:00
parent 50872ac342
commit 9009b9c56d
No known key found for this signature in database
GPG key ID: 530BBEE4AE8C3604
7 changed files with 30 additions and 11 deletions

View file

@ -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);
}
}