Back to Home

BetProxy

0x14684bcd86fb...72722acc1781
ByzantiumSource VerifiedEdit this contract
Deployed June 1, 2018 (8 years ago)Block 5,712,825

Mid 2018 sports betting address: send it ether and it places a bet on your behalf through the bookmaker contract, with your own address recorded as the bettor.

Byzantium EraVerified Source

Historical Significance

This is what a betting slip looks like when the user interface is a wallet. In mid 2018 most people interacting with a contract could send ether and nothing more: no ABI, no function selector, often no dapp browser. A system that wanted bets from those people had to make the address carry the information, so it minted an address per market and let the transfer speak.

The design has a property that later became a named pattern. Because the proxy holds no logic and no funds, the market it represents can be settled, paused or repriced entirely in the bookmaker, and the public address stays valid. It is address as identifier rather than address as program, a habit that runs from exchange deposit addresses through to modern counterfactual accounts.

Key Facts
Deployment Block
5,712,825
Deployment Date
Jun 1, 2018, 08:06 AM
Code Size
340.0 B
Transactions by Year
20183

Description

Two hundred and ninety seven bytes, one storage slot and one idea. The slot holds the address of a bookmaker contract, readable through the public getter factory. The fallback takes whatever ether it receives and calls bet on that bookmaker, forwarding the value and passing msg.sender as the argument, so the person who paid is the person credited with the wager.

What the contract does not do is say which wager. There is no match id, no outcome, no calldata at all: a bettor sends a plain transfer and nothing else. The selection is the address itself. The bookmaker knows which market this proxy stands for because it knows which contract called it, and the bettor picks a market by choosing which address to pay.

The bookmaker on the other side is a full betting contract, with createMatch, odds, matches, pauseMatch and setWin among its functions, and its own token. These proxies are the part of that system that faced the public.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.22

Bytecode Overview

Opcodes340
Unique Opcodes90
Jump Instructions11
Storage Operations3

External Links

Related contracts