Back to Home

Play and Guessing Platform Coin(PGPC)

Unclassified
0x231b235a59d6...570749a156f9
ByzantiumSource VerifiedEdit this contract
Deployed March 17, 2018 (8 years ago)Block 5,270,202

Token-generator output that bolts a self-service sale onto an ERC-20: send ether to the contract and it moves tokens out of the creator's balance to you.

Byzantium EraVerified Source

Historical Significance

Contracts like this are why 2018 produced tens of thousands of near-identical tokens. The template turns a launch into a constructor call, and the built-in faucet mode, a free allocation capped at one per address, made an airdrop possible without any off-chain infrastructure at all. The missing approve and transferFrom are the tell that it was written to be deployed and advertised rather than integrated.

Token Information
Token Name
Play and Guessing Platform Coin
Symbol
PGPC
Decimals
5
Key Facts
Deployment Block
5,270,202
Deployment Date
Mar 17, 2018, 07:47 AM
Code Size
4.0 KB
Gas at Deploy
1,379,746
Transactions by Year
20182

Description

Name, symbol, decimals, supply, sale window, rate and free-claim size are all constructor arguments, so one compiled artifact serves any number of launches. The whole supply is credited to the creator at construction; there is no minting.

The payable fallback is the sale. It refuses unless autoSend is on and the clock is inside the start and end window, then prices the buy as value times rate times ten to the decimals, divided by one ether, through SafeMath. A rate of zero switches the contract into giveaway mode: the buyer receives freeCount whole tokens and a per-address counter makes sure they can only claim once. Either way the tokens come out of the creator's balance, and the transfer is booked as an ordinary Transfer event so wallets see it.

transfer is the plain minimum: no allowances, no approve, no transferFrom, and no return value, so this is not a fully conformant ERC-20. getETH lets the creator withdraw the proceeds. Comments in the source are in Chinese.

This variant differs from the more common build of the same template by routing the sale arithmetic through SafeMath rather than doing it inline.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.21
Heuristic Analysis

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

Detected Type: Unclassified

Bytecode Overview

Opcodes4,059
Unique Opcodes176
Jump Instructions157
Storage Operations70

External Links

Related contracts