Back to Home

KingOfTheEtherThrone

Token
0xb336a86e2feb...04de3df254d0
FrontierContract #8,004Exact Bytecode MatchEdit this contract
Deployed February 6, 2016 (10 years ago)Block 963,186

Kieran Elby's redesigned successor throne, deployed Feb 6, 2016 — three hours after the v0.3.0 throne fell silent in what he later called the 'Turbulent Age' tr

Frontier EraVerified Source

Historical Significance

The first attempt to patch the gas-stipend bug that broke its predecessor. v0.4.0 was deployed under time pressure during the Turbulent Age and only partially fixed the issue — the same .send() pattern remained in the compensation payment, so Mist-wallet monarchs continued to lose compensation. The eventual proper fix (call.value with manual gas) and the v1.0 rewrite were both downstream consequences of the bug Kieran first encountered on this contract.

Key Facts
Deployment Block
963,186
Deployment Date
Feb 6, 2016, 04:12 PM
Code Size
2.3 KB
Gas at Deploy
703,275
Transactions by Year
201621

Description

King of the Ether Throne v0.4.0 is the redesigned successor to the original v0.3.0 throne (0xa9d160e3), deployed on February 6, 2016 (block 963,186) during the 'Turbulent Age' (Feb 6–8, 2016) — the period when the original v0.3.0 throne stopped paying compensation to monarchs whose addresses required more than 2,300 gas to receive ether. Kieran Elby deployed v0.4.0 about three hours after the v0.3.0 send() bug was discovered, attempting a fix-and-improve revision.

Notable changes from v0.3.0:
• Starting claim price raised from 10 finney (0.01 ETH) to 100 finney (0.1 ETH).
• No accumulatedWizardPayments slot — wizard now sweeps commission directly via sweepCommission(uint amount) rather than from an accumulating balance.
• No 12-monarch limit — anyone can become king as long as the throne is active.
• transferOwnership(address) added so the wizard role can be reassigned.
• Two-significant-figure rounding of next claim price across tiers (0.001, 0.01, 0.1, 1, 10, 100, 1000 ETH) so prices don't accrue silly trailing decimals.

Ironically, v0.4.0 does NOT fully fix the send() bug — currentMonarch.etherAddress.send(compensation) still uses the default 2,300 gas stipend, so Mist-style contract wallets would still fail to receive their compensation. The proper fix didn't land until commit 120f5a26 (Feb 21, 2016) and the v1.0 rewrite.

The contract author references this exact contract address in the v0.4.0 source comment: '// This contract lives on the blockchain at 0xb336a86e2feb1e87a328fcb7dd4d04de3df254d0'.

Source Verified

SolidityExact bytecode match(2,400 bytes)
Compiler: v0.2.1-

Byte-for-byte runtime match (2,109 bytes) and creation match. Source published by author Kieran Elby in the KingOfTheEtherThrone GitHub repo at commit 6d77929 ('Bump to new contract', Feb 6 2016 16:23 UTC — eleven minutes after deployment). The source as committed defines sweepCommission before transferOwnership, but the deployed bytecode requires the opposite order; Kieran appears to have cosmetically swapped the two functions in the source after deploying. With the function order restored to deployment order, the source compiles to an exact byte-for-byte match using soljson v0.2.1-nightly.2016.2.3+commit.fad2d4df with optimizer ON. Verification repo: https://github.com/cartoonitunes/koth-v04-verification

Heuristic Analysis

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

Detected Type: Token

Bytecode Overview

Opcodes2,400
Unique Opcodes175
Jump Instructions128
Storage Operations93

External Links