Skip to content
Permalink
Browse files

Fix failing ether transfer in multiFill function

  • Loading branch information
TimviOfficial committed Nov 14, 2019
1 parent 63ee24e commit 0a6e3d1277ecb1a460563de495b570bf0a2ced61
Showing with 7 additions and 5 deletions.
  1. +7 −5 contracts/services/gate/Gate.sol
@@ -182,11 +182,13 @@ contract Gate {

require(address(this).balance >= eth, "Not enough funds");

address owner = orders[id].owner;
delete orders[id];
IToken(settings.tmvAddress()).transfer(timviWallet, tmv);
owner.transfer(eth);
emit OrderFilledPool(id, owner, tmv, eth);
if (owner.send(eth)) {
address owner = orders[id].owner;
delete orders[id];
IToken(settings.tmvAddress()).transfer(timviWallet, tmv);

emit OrderFilledPool(id, owner, tmv, eth);
}
}
}

0 comments on commit 0a6e3d1

Please sign in to comment.
You can’t perform that action at this time.