refund asserts for ETH mixer

This commit is contained in:
poma 2019-10-07 07:15:06 +03:00
parent c889a88b4d
commit 0cbc0ad79b

View File

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