DAO whitehat balance-conditional router: if EF/whitehat address holds >1M ETH, route to addr1; otherwise route to addr2.
Context
Deployed Jul 2016, shortly after the DAO fork. Checks the DAO whitehat rescue address (0xbf4ed7b27...) balance against 1M ETH to conditionally route this contract's entire ETH balance to one of two caller-specified addresses. Written in Serpent; uses old Serpent call() argument order: call(gas, value, to, ...).
Key Facts
Description
Deployed by Vitalik Buterin. A 158-byte Serpent balance-conditional router (DAO whitehat era): if a hard-coded address holds more than a threshold balance, it routes a call one way, otherwise another. Sibling of the verified WithdrawDAO balance-split contract 0x74eeb52c.
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
DAO Fork Era
The controversial fork to recover funds from The DAO hack.
Bytecode Overview
Verified Source Available
This contract has verified source code on Etherscan.
Show source code (Solidity)
def split(addr1:address, addr2:address):
if balance(0xbf4ed7b27f1d666546e30d74d50d173d20bca754) > 1000000000000000000000000:
call(0, balance(self), addr1, 0, 0, 0, 0)
else:
call(0, balance(self), addr2, 0, 0, 0, 0)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