Skip to content

Instantly share code, notes, and snippets.

@oscarguindzberg
Last active December 6, 2017 13:03
Show Gist options
  • Save oscarguindzberg/e9acc2a1c34b59d9159fd1e2862ec2b0 to your computer and use it in GitHub Desktop.
Save oscarguindzberg/e9acc2a1c34b59d9159fd1e2862ec2b0 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.18;
contract DogeEthBountySplit {
// Just hardcode externally owned accounts, don’t use contract addresses.
address public oscarGuindzbergAddress = 0xFc7E364035f52ecA68D71dcfb63D1E3769413d69;
address public coinfabrikAddress = 0x8ffC991Fc4C4fC53329Ad296C1aFe41470cFFbb3;
address public truebitAddress = 0x1e6d05543EaD73fb1820FAdBa481aAd716845FBa;
function() payable public {
}
function withdraw() public {
uint balance = this.balance;
uint oneThird = balance / 3;
oscarGuindzbergAddress.transfer(oneThird);
coinfabrikAddress.transfer(oneThird);
truebitAddress.transfer(oneThird);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment