A payable payment splitter: split(address a, address b) forwards msg.value/2 to each address via .send.
Key Facts
Description
Deployed May 17, 2017 by Vitalik Buterin (0x1db3439a22ee7c4d034e9b26437d3960b5af0517). A payment splitter: split(address a, address b) forwards msg.value/2 to each of the two given addresses using .send (the return value is not checked, so a failed send does not revert). This version is payable. Compiled with solc 0.4.11, optimizer on. The executable runtime reproduces byte-for-byte from the reconstructed source; only the trailing swarm metadata hash differs, since the original source's exact whitespace and identifiers are not recoverable from a metadata-only hash. runtime sha256 0562931d3e50bc6ca55cb9192d4dc76b470aae1f333b4b4cdcaf238bfad84396.
Source Verified
Executable runtime reproduces byte-for-byte from the reconstructed source with solc 0.4.11, optimizer on; only the trailing swarm metadata hash differs. runtime sha256 0562931d3e50bc6ca55cb9192d4dc76b470aae1f333b4b4cdcaf238bfad84396.
Spurious Dragon Era
Continued DoS protection. State trie clearing.
Bytecode Overview
Verified Source Available
This contract has verified source code.
View Verification ProofShow source code (Solidity)
// Verified by EthereumHistory (ethereumhistory.com)
contract Split {
function split(address a, address b) payable {
a.send(msg.value / 2);
b.send(msg.value / 2);
}
}External Links
Related contracts
SerpentGamble
Same deployerProvably-fair betting game where players choose their own odds. The owner settles bets with a commit-reveal random seed. Includes a 2-day emergency refund.
0x034df8...200e2fSeptember 20, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x9ca7e9...fa8bb4September 21, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x75649a...176028September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xe1a99f...0d2457September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xdc00a9...15861fSeptember 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xd0ed09...300b48September 21, 2015