Timestamp-parity coinflip with balance guard and donate().
Key Facts
Description
Timestamp-parity coinflip with balance guard and donate(). Functions include flip() (auto-getter), donate(), fallback. Verified with soljson-v0.1.1+commit.6ff4cd6 and optimizer ON.
Source Verified
Backfilled from awesome-ethereum-proofs PR #35.
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Compiler: solc 0.1.0 --optimize (exact match with solc 0.0.9.27 through 0.1.1, optimized)
// Contract: 0xb87824547db80f1fb37d0225b99f1a602f8642ad
// Deployed: 2015-08-08 (block 55627)
// Match: 100% exact bytecode match (186/186 bytes)
contract CoinFlipper {
uint256 public flip;
function donate() {
}
function() {
var v = msg.value;
var b = address(this).balance;
if (v > 2 * b) {
return;
}
flip = block.timestamp;
if (flip % 2 == 0) {
} else {
msg.sender.send(2 * v);
}
}
}External Links
Related contracts
Greeter
Same deployerA Frontier-era Greeter contract with the message: 'Hello World!'
0x113158...72fa8aAugust 8, 2015CoinFlip
Same deployerTimestamp-parity coinflip; payout is `2 * msg.value` via `send`.
0x0013e7...1c2989August 8, 2015Multiply7
Same deployerThe Multiply7 tutorial contract — one of the first Solidity examples ever deployed to mainnet.
0xfcb20a...b96d3fAugust 10, 2015Pyramid
Same deployerMember-added pyramid/chain list with equal-share claim distribution.
0xdf4b51...dc9b87August 10, 2015