Back to Home

0x4959...d5bd

Lottery / Gambling
Part of The Cyrus Adkisson Collection
0x4959e041bfbb...46d623f0d5bd
FrontierContract #739Exact Bytecode MatchEdit this contract
Deployed September 2, 2015 (11 years ago)Block 177,563

A coin flip wager contract endowed with 6 ETH, deployed 2 September 2015.

Frontier EraVerified Source

Historical Significance

Randomness is the problem gambling contracts exist to expose. Every value available inside the EVM is either known in advance or chosen by the account producing the block, so a payout decided from block data can be steered by whoever mines it. This run of revisions is that lesson being learned in public, one deployment at a time, and the answer the ecosystem eventually reached, an oracle or a commit and reveal, is not available here at all.

Context

Deployed a month after the Frontier launch, when block difficulty and coinbase were still being used as randomness sources.

Key Facts
Deployer
Cyrus Adkisson(0xcf684d...ad1bac)
Deployment Block
177,563
Deployment Date
Sep 2, 2015, 09:26 PM
Code Size
2.5 KB
Gas at Deploy
731,528
Transactions by Year
20154

Description

The player calls betAndFlip with a wager attached. The contract derives a pseudorandom value by hashing block difficulty, the coinbase address, the timestamp and the wager, then pays double on a win and keeps the stake on a loss. It refuses any wager above the uint128 limit and any wager the balance cannot cover at two to one, returning the money in both cases. Three read-only calls report the result of the last flip, the player gain or loss on it, and the endowment still held. A kill function let the creator withdraw and destroy the contract, and it was used: the address holds no code today, so this source is matched against the bytecode as it was archived at deployment. Deployed by Cyrus Adkisson from 0xcf684dfb8304729355b58315e8019b1aa2ad1bac with 6 ether as the house bankroll.

Source Verified

Exact bytecode match(2,591 bytes)
Compiler: v0.1.1+

Historian Categories

Lottery / Gambling
Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Lottery / Gambling

Bytecode Overview

Opcodes2,591
Unique Opcodes148
Jump Instructions123
Storage Operations47

External Links

Related contracts