Skip to content

Instantly share code, notes, and snippets.

@khovratovich
Created July 21, 2016 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khovratovich/90def430180d405c1702c6e211fee25e to your computer and use it in GitHub Desktop.
Save khovratovich/90def430180d405c1702c6e211fee25e to your computer and use it in GitHub Desktop.
Split contract by Vitalik Buterin
contract HFConditionalTransfer {
function transferIfHF(address to) {
if (address(0xbf4ed7b27f1d666546e30d74d50d173d20bca754).balance > 2000000 ether)
to.send(msg.value);
else
msg.sender.send(msg.value);
}
function transferIfNoHF(address to) {
if (address(0xbf4ed7b27f1d666546e30d74d50d173d20bca754).balance <= 2000000 ether)
to.send(msg.value);
else
msg.sender.send(msg.value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment