Back to Home

SerpentGamble

Unknown
Part of The Vitalik Collection
0x59375871ab51...30a3fa55b7d0
FrontierContract #1,494Exact Bytecode MatchEdit this contract
Deployed September 23, 2015 (10 years ago)Block 276,870

The full serpent_gamble provably-fair betting dapp: bettors pick their own odds, the owner settles rounds via a commit-reveal seed, with an emergency refund.

Frontier EraVerified Source
Key Facts
Deployer
Vitalik Buterin(0x1db343...fa6ee6)
Deployment Block
276,870
Deployment Date
Sep 23, 2015, 06:43 AM
Code Size
2.4 KB
Gas at Deploy
675,453
Transactions by Year
201513

Description

Deployed 2015-09-23 by Vitalik Buterin (0x1db3439a22ee7c4d034e9b26437d3960b5af0517) in block 276870. The full serpent_gamble provably-fair betting dapp written in Serpent; canonical source is serpent_gamble/gamble.se from ethereum/dapp-bin. Bettors call bet(bettor_key, prob_milli) staking ETH and choosing their win probability in per-mille; the contract locks the potential payout against its balance and emits Bet. The owner runs a commit-reveal seed scheme via set_curseed(old_value, new_seed), which reveals the prior seed, settles every open bet by comparing sha3(old_value, bettor_key)/(2^256/1000) against each bet probability (emitting Win/Loss and paying winners), then commits the next seed with a 2-day deadline. If the owner fails to reveal within two days, anyone can call emergency_withdraw() to refund all bets and donate the remainder to the Ethereum Foundation. The 2387-byte runtime and 2426-byte creation code reproduce byte-for-byte using ethereum/serpent commit f0b4128. runtime sha256 f19b4b3bf158be5ee2905ffea48a5631d62d78aae72b2ed7c2acd766681a3664.

Source Verified

SerpentExact bytecode match(2,426 bytes)
Compiler: f0b4128

Source is serpent_gamble/gamble.se from ethereum/dapp-bin. Deployed runtime (2387 bytes) and creation code (2426 bytes) reproduce byte-for-byte using ethereum/serpent commit f0b4128. runtime sha256 f19b4b3bf158be5ee2905ffea48a5631d62d78aae72b2ed7c2acd766681a3664; creation sha256 e4e0e66d8071ffdcab2bb8321641231ba6770322033abb6bcb8b0628dcc55350.

Heuristic Analysis

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

Detected Type: Unknown

Bytecode Overview

Opcodes2,426
Unique Opcodes208
Jump Instructions113
Storage Operations68

External Links

Related contracts