Donate to The Blockchain Show

Now you can donate to The Blockchain Show with Ether! Help keep the show going by making a donation. If you can’t donate, no problem – just enjoy the show! Any donations will be split equally between the podcast’s volunteer staff, including hosts Steve, Ethan and Sarah as well as Heather, who works behind-the-scenes. The following smart contract intends to do just that.

There are two ways to donate:

1. Donate Ether directly to the contract address (0x14001C032Ef44787C38786d1C1ec23D891E5bc24); The donation will be split when someone calls the payout method. Anyone can call the method (It will most likely be one of us) and the Ether will get split evenly four ways.

2. Add the contract to an Ethereum wallet or Mist and call Donate. This time, the donation will be split and sent automatically.

Side note: The contract does not worry about the possible leftover wei (10e-18 ether).

contract splitter {

address[] recipients = [
0x770C533539D21b40b0C8E4B3F2A91A70C45d7E7A,
0x88d9655F042E3027C3663725A252a4c9B7F35748,
0x37A81D3f1b39936f911b6a02C2CC666419A9189f,
0xF7847807349147b0eDCb89FF52a726A5DD42b439
];
address owner = 0x770C533539D21b40b0C8E4B3F2A91A70C45d7E7A;

event donation(address _from, uint _amount);

function getAddresses() constant returns (address[]) {
return recipients;

}

modifier onlyowner {if (msg.sender == owner) _ }

function Payout() public {
uint SplitAmount = this.balance/4;
recipients[0].send(SplitAmount);
recipients[1].send(SplitAmount);
recipients[2].send(SplitAmount);
recipients[3].send(SplitAmount);

}

function donate() public {
uint SplitAmount = msg.value/4;
recipients[0].send(SplitAmount);
recipients[1].send(SplitAmount);
recipients[2].send(SplitAmount);
recipients[3].send(SplitAmount);

}

function kill() public onlyowner {
uint SplitAmount = msg.value/4;
recipients[0].send(SplitAmount);
recipients[1].send(SplitAmount);
recipients[2].send(SplitAmount);
recipients[3].send(SplitAmount);
suicide(owner);

}

}

[ { “constant”: false, “inputs”: [], “name”: “Payout”, “outputs”: [], “type”: “function”, “displayName”: ” Payout” }, { “constant”: false, “inputs”: [], “name”: “kill”, “outputs”: [], “type”: “function”, “displayName”: “kill” }, { “constant”: true, “inputs”: [], “name”: “getAddresses”, “outputs”: [ { “name”: “”, “type”: “address[]”, “value”: [ “0x770c533539d21b40b0c8e4b3f2a91a70c45d7e7a”, “0x88d9655f042e3027c3663725a252a4c9b7f35748”, “0x37a81d3f1b39936f911b6a02c2cc666419a9189f”, “0xf7847807349147b0edcb89ff52a726a5dd42b439” ], “displayName”: “” } ], “type”: “function”, “displayName”: “get Addresses” }, { “constant”: false, “inputs”: [], “name”: “donate”, “outputs”: [], “type”: “function”, “displayName”: “donate” }, { “anonymous”: false, “inputs”: [ { “indexed”: false, “name”: “_from”, “type”: “address” }, { “indexed”: false, “name”: “_amount”, “type”: “uint256” } ], “name”: “donation”, “type”: “event” } ]

Thank you for supporting the show!

TheBlockchain Show Written by:

Comments are closed.