Last active
December 6, 2017 13:03
-
-
Save oscarguindzberg/e9acc2a1c34b59d9159fd1e2862ec2b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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