Back to Home

Thunder Coins(THC)

Token
0xe17a19ede7b0...28cc4d4e7dbc
FrontierContract #11KExact Bytecode MatchEdit this contract
Deployed March 5, 2016 (10 years ago)Block 1,101,186

Ten thousand units at one decimal place, with approvals delegated through a callback.

Frontier EraVerified Source

Historical Significance

Instead of decrementing an allowance as it is drawn, this revision of the tutorial keeps a separate ledger of how much of each approval has been spent and compares against it. The result is the same limit enforced from the opposite direction, and it avoids the write-after-read that made the ERC-20 approve race famous. It is a road the standard did not take, preserved in the contracts that copied the tutorial while it was still there.

Context

Deployed in March 2016, days before the Homestead fork.

Token Information
Token Name
Thunder Coins
Symbol
THC
Decimals
1
Key Facts
Deployment Block
1,101,186
Deployment Date
Mar 5, 2016, 08:17 AM
Code Size
1.6 KB
Gas at Deploy
563,251

Description

The whole supply is credited to the deploying account at creation and nothing can mint more. Spending rights are granted through approveAndCall, which records the allowance and then calls receiveApproval on the spender contract in the same transaction. Each transferFrom accumulates against a separate spentAllowance ledger rather than decrementing the approval. Sending ether to it throws.

Source Verified

Exact bytecode match(1,624 bytes)
Compiler: v0.2.1+

Historian Categories

Token
Heuristic Analysis

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

Detected Type: Token
Has ERC-20-like patterns

Bytecode Overview

Opcodes1,624
Unique Opcodes124
Jump Instructions73
Storage Operations33

External Links

Related contracts