pengpengCoin (Y), an October 2016 token from the ethereum.org template with buy and sell at a fixed 0.00001 ETH per token.
Historical Significance
A snapshot of how newcomers used the ethereum.org advanced token tutorial in late 2016. Source reconstructed from bytecode; exact runtime and creation match with solc v0.3.6 (optimizer on), verified on Etherscan and Sourcify.
Context
Deployed on 9 October 2016 by 0x605f3f591f13cbd1b63083c6b9c49beb4b9954e3. The deployer still holds 99,100 of the 100,000 tokens. The contract holds 0.013 ETH but none of its own tokens, so buy() cannot succeed until tokens are sent to it.
Token Information
Key Facts
Description
pengpengCoin follows the ethereum.org token tutorial of the time: a balanceOf mapping, transfer with overflow checks, and the tutorial's buy() and sell() functions, with buyPrice and sellPrice both set to 10^13 wei (0.00001 ETH) in the constructor and no owner functions to change them. getBalance(address) is an extra helper. It was deployed with 100,000 tokens, 0 decimals, and the symbol Y.
Source Verified
Historian Categories
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
DAO Fork Era
The controversial fork to recover funds from The DAO hack.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
contract MyToken {
mapping (address => uint256) public balanceOf;
string public name;
string public symbol;
uint8 public decimals;
uint256 public sellPrice;
uint256 public buyPrice;
event Transfer(address indexed from, address indexed to, uint256 value);
function MyToken(uint256 initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol) {
balanceOf[msg.sender] = initialSupply;
name = tokenName;
symbol = tokenSymbol;
decimals = decimalUnits;
sellPrice = 10000000000000;
buyPrice = 10000000000000;
}
function transfer(address _to, uint256 _value) {
if (balanceOf[msg.sender] < _value || balanceOf[_to] + _value < balanceOf[_to]) throw;
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
}
function buy() returns (uint amount) {
amount = msg.value / buyPrice;
if (balanceOf[this] < amount) throw;
balanceOf[msg.sender] += amount;
balanceOf[this] -= amount;
Transfer(this, msg.sender, amount);
return amount;
}
function sell(uint amount) returns (uint revenue) {
if (balanceOf[msg.sender] < amount) throw;
balanceOf[this] += amount;
balanceOf[msg.sender] -= amount;
revenue = amount * sellPrice;
if (!msg.sender.send(revenue)) {
throw;
} else {
Transfer(msg.sender, this, amount);
return revenue;
}
}
function getBalance(address addr) returns (uint) {
return balanceOf[addr];
}
}External Links
Related contracts
TT
Same eraA fixed-supply token with direct transfers only, deployed July 2016.
0xf78bdd...f9d225July 20, 2016shares
Same eraAn early on-chain corporation contract by cryptonomica.net, representing company shares as ERC-20 tokens with embedded voting — deployed hours before the DAO ha
0x684282...9a33b5July 20, 2016MyToken
Same eraAn ethereum.org tutorial token deployed with no name and no symbol, that tracks spending against approvals rather than decrementing them.
0x0eb106...9be583July 23, 2016ReplayProtection
Same eraAlex Van de Sande's post-DAO-fork ETH/ETC replay-protection splitter. Routes ether or ERC20 tokens to different recipients depending on which chain it runs on.
0x64668c...456541July 27, 2016BeerCoin
Same eraERC20-style 'I owe you a beer' IOU ledger by Nick Johnson (ENS). Each transfer creates a personal beer debt; obligations are tracked and transferable.
0x74c1e4...48f4acJuly 29, 2016Xi
Same eraDAO-era ERC-20-shaped token, May 2016. Symbol is the Greek capital letter Xi. Fixed cap 15,000; 1 token per 0.001 ETH via buy().
0xbe3dc7...cab9dfJuly 31, 2016