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

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