Back to Home

Lottery

Game
0x53805153a059...ec2562b7eff8
FrontierContract #4,303Exact Bytecode MatchEdit this contract
Deployed November 28, 2015 (10 years ago)Block 610,023

The Oraclize SimpleDice example, a one wei dice game that asks WolframAlpha for a number between 1 and 6.

Frontier EraVerified Source

Context

Deployed 28 November 2015, during the Frontier era.

Key Facts
Deployment Block
610,023
Deployment Date
Nov 28, 2015, 02:12 PM
Code Size
1.5 KB
Gas at Deploy
446,865

Description

The SimpleDice example from oraclize/ethereum-examples, whose contract is named Lottery, deployed with the Oraclize API of the day inlined above it. bet throws unless exactly one wei is sent and the contract already holds at least two, then rollDice sends an Oraclize query for a WolframAlpha random number between 1 and 6 and records the caller against the query id. __callback rejects any caller that is not the Oraclize callback address, reads the first character of the returned string, subtracts 48 to turn it into a digit, and sends two wei to the bettor if it is above 3. The payout uses send and ignores its result, and nothing clears the recorded bet, so a bettor whose send fails has no way to retry. kill lets the deployer self destruct the contract at any time. Its Oraclize resolver is the address resolver at 0x1d11e5eae3112dbd44f99266872ff1d07c77dce8.

Source Verified

Exact bytecode match(1,571 bytes)
Compiler: v0.1.6+
Heuristic Analysis

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

Detected Type: Game
Contains SELFDESTRUCT opcode

Bytecode Overview

Opcodes1,571
Unique Opcodes126
Jump Instructions62
Storage Operations18

External Links

Related contracts