Back to Home

LooneyLottery

Game
0x2298307fa99c...3f4da59f4630
FrontierContract #9,144Exact Bytecode MatchEdit this contract
Deployed February 18, 2016 (10 years ago)Block 1,021,942

LooneyLottery by The Looney Farm: a ticket lottery played by sending ETH to the contract, 10 finney per ticket, with the pool paid to one winner per round.

Frontier EraVerified Source
Key Facts
Deployment Block
1,021,942
Deployment Date
Feb 18, 2016, 09:12 AM
Code Size
1.5 KB
Gas at Deploy
572,010

Description

LooneyLottery has no ABI functions for players: sending at least 10 finney to the contract buys tickets, up to 100 per transaction, and any amount above a whole number of tickets is refunded. A round closes once 222 players have entered, or once at least 5 have entered and its 24 hour timer has run out; the next entry after that triggers the draw. The winning ticket is chosen with a Lehmer random number generator whose seeds are mixed with the block coinbase and blockhash, and the winner receives 9.95 finney per ticket in the round, leaving a 50 szabo fee per ticket that the owner can collect with ownerWithdraw(). Player and Winner events log each entry and payout, and the game constants and lifetime totals (transactions, tickets, turnover) are public getters.

Source Verified

SolidityExact bytecode match(1,569 bytes)
Compiler: v0.2.1+

Original source by the author: https://github.com/Cryptix23/contracts/blob/9885b2bb6d/src/lottery/lottery.sol (optimizer on). Verified on Etherscan.

Heuristic Analysis

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

Detected Type: Game

Bytecode Overview

Opcodes1,569
Unique Opcodes174
Jump Instructions86
Storage Operations75

External Links

Related contracts