This token is claimable
Its 2018 airdrop faucet is still paying out. You can claim free 雷锋 to your own wallet; you only pay gas.
leifeng (雷锋) is an ERC-20 airdrop token from July 2018 whose 500 million 雷锋 supply anyone could claim through a public getTokens() function.
Token Information
Key Facts
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Byzantium Era
First Metropolis hard fork. Added zk-SNARK precompiles, REVERT opcode, and staticcall.
Bytecode Overview
Verified Source Available
This contract has verified source code on Etherscan.
Show source code (Solidity)
{{
"language": "Solidity",
"sources": {
"leifeng.sol": {
"content": "// Submitted by EthereumHistory (ethereumhistory.com)\npragma solidity ^0.4.19;\n\n\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a / b;\n return c;\n }\n\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n assert(b <= a);\n return a - b;\n }\n\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n assert(c >= a);\n return c;\n }\n}\n\ncontract ForeignToken {\n function balanceOf(address _owner) constant public returns (uint256);\n function transfer(address _to, uint256 _value) public returns (bool);\n}\n\ncontract ERC20Basic {\n uint256 public totalSupply;\n function balanceOf(address who) public constant returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}\n\ncontract ERC20 is ERC20Basic {\n function allowance(address owner, address spender) public constant returns (uint256);\n function transferFrom(address from, address to, uint256 value) public returns (bool);\n function approve(address spender, uint256 value) public returns (bool);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n\ninterface Token { \n function distr(address _to, uint256 _value) public returns (bool);\n function totalSupply() constant public returns (uint256 supply);\n function balanceOf(address _owner) constant public returns (uint256 balance);\n}\n\ncontract\tleifeng is ERC20 {\n \n using SafeMath for uint256;\n address owner = msg.sender;\n\n mapping (address => uint256) balances;\n mapping (address => mapping (address => uint256)) allowed;\n mapping (address => bool) public blacklist;\n\n string public constant name = \"leifeng\";\n string public constant symbol = \"雷锋\";\n uint public constant decimals = 8;\n \n uint256 public totalSupply = 500000000e8;\n uint256 public totalDistributed = 50000000e8;\n uint256 public totalRemaining = totalSupply.sub(totalDistributed);\n uint256 public value;\n\n event Transfer(address indexed _from, address indexed _to, uint256 _value);\n event Approval(address indexed _owner, address indexed _spender, uint256 _value);\n \n event Distr(address indexed to, uint256 amount);\n event DistrFinished();\n \n event Burn(address indexed burner, uint256 value);\n\n bool public distributionFinished = false;\n \n modifier canDistr() {\n require(!distributionFinished);\n _;\n }\n \n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n \n modifier onlyWhitelist() {\n require(blacklist[msg.sender] == false);\n _;\n }\n \n function leifeng () public {\n owner = msg.sender;\n value = 5000e8;\n distr(owner, totalDistributed);\n }\n \n function transferOwnership(address newOwner) onlyOwner public {\n if (newOwner != address(0)) {\n owner = newOwner;\n }\n }\n \n function finishDistribution() onlyOwner canDistr public returns (bool) {\n distributionFinished = true;\n DistrFinished();\n return true;\n }\n \n function distr(address _to, uint256 _amount) canDistr private returns (bool) {\n totalDistributed = totalDistributed.add(_amount);\n totalRemaining = totalRemaining.sub(_amount);\n balances[_to] = balances[_to].add(_amount);\n Distr(_to, _amount);\n Transfer(address(0), _to, _amount);\n return true;\n \n if (totalDistributed >= totalSupply) {\n distributionFinished = true;\n }\n }\n \n function airdrop(address[] addresses) onlyOwner canDistr public {\n \n require(addresses.length <= 255);\n require(value <= totalRemaining);\n \n for (uint i = 0; i < addresses.length; i++) {\n require(value <= totalRemaining);\n distr(addresses[i], value);\n }\n\t\n if (totalDistributed >= totalSupply) {\n distributionFinished = true;\n }\n }\n \n function distribution(address[] addresses, uint256 amount) onlyOwner canDistr public {\n \n require(addresses.length <= 255);\n require(amount <= totalRemaining);\n \n for (uint i = 0; i < addresses.length; i++) {\n require(amount <= totalRemaining);\n distr(addresses[i], amount);\n }\n\t\n if (totalDistributed >= totalSupply) {\n distributionFinished = true;\n }\n }\n \n function distributeAmounts(address[] addresses, uint256[] amounts) onlyOwner canDistr public {\n\n require(addresses.length <= 255);\n require(addresses.length == amounts.length);\n \n for (uint8 i = 0; i < addresses.length; i++) {\n require(amounts[i] <= totalRemaining);\n distr(addresses[i], amounts[i]);\n \n if (totalDistributed >= totalSupply) {\n distributionFinished = true;\n }\n }\n }\n \n function () external payable {\n getTokens();\n }\n \n function getTokens() payable canDistr public {\n \n if (value > totalRemaining) {\n value = totalRemaining;\n }\n \n require(value <= totalRemaining);\n \n address investor = msg.sender;\n uint256 toGive = value;\n \n distr(investor, toGive);\n \n if (toGive > 0) {\n blacklist[investor] = true;\n }\n\n if (totalDistributed >= totalSupply) {\n distributionFinished = true;\n }\n }\n\n function balanceOf(address _owner) constant public returns (uint256) {\n\t return balances[_owner];\n }\n\n // mitigates the ERC20 short address attack\n modifier onlyPayloadSize(uint size) {\n assert(msg.data.length >= size + 4);\n _;\n }\n \n function transfer(address _to, uint256 _amount) onlyPayloadSize(2 * 32) public returns (bool success) {\n\n require(_to != address(0));\n require(_amount <= balances[msg.sender]);\n \n balances[msg.sender] = balances[msg.sender].sub(_amount);\n balances[_to] = balances[_to].add(_amount);\n Transfer(msg.sender, _to, _amount);\n return true;\n }\n \n function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) {\n\n require(_to != address(0));\n require(_amount <= balances[_from]);\n require(_amount <= allowed[_from][msg.sender]);\n \n balances[_from] = balances[_from].sub(_amount);\n allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);\n balances[_to] = balances[_to].add(_amount);\n Transfer(_from, _to, _amount);\n return true;\n }\n \n function approve(address _spender, uint256 _value) public returns (bool success) {\n // mitigates the ERC20 spend/approval race condition\n if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; }\n allowed[msg.sender][_spender] = _value;\n Approval(msg.sender, _spender, _value);\n return true;\n }\n \n function allowance(address _owner, address _spender) constant public returns (uint256) {\n return allowed[_owner][_spender];\n }\n \n function getTokenBalance(address tokenAddress, address who) constant public returns (uint){\n ForeignToken t = ForeignToken(tokenAddress);\n uint bal = t.balanceOf(who);\n return bal;\n }\n \n function withdraw() onlyOwner public {\n uint256 etherBalance = this.balance;\n owner.transfer(etherBalance);\n }\n \n function burn(uint256 _value) onlyOwner public {\n require(_value <= balances[msg.sender]);\n // no need to require value <= totalSupply, since that would imply the\n // sender's balance is greater than the totalSupply, which *should* be an assertion failure\n\n address burner = msg.sender;\n balances[burner] = balances[burner].sub(_value);\n totalSupply = totalSupply.sub(_value);\n totalDistributed = totalDistributed.sub(_value);\n Burn(burner, _value);\n }\n \n function withdrawForeignTokens(address _tokenContract) onlyOwner public returns (bool) {\n ForeignToken token = ForeignToken(_tokenContract);\n uint256 amount = token.balanceOf(address(this));\n return token.transfer(owner, amount);\n }\n\n\n}"
}
},
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}
}}External Links
Related contracts
SuperQX Token
Same deployerSuperQX Token (SQX) is a 2018 ERC-20 airdrop faucet: anyone could call getTokens() to receive a share of its 500 million SQX supply.
0xcd26b0...5385fbJuly 26, 2018Msg
Same eraMinimal contract that stores a single public string in state, exposed via the auto-generated m() getter. First of 281 identical siblings. Source verified by EthereumHistory.
0x2c8f58...37b173January 13, 2018Wallet
Same eraToken collection wallet that moves an entire token balance to a chosen address, without the ERC223 callback handler.
0x002204...531195January 19, 2018Wallet
Same eraOwner wallet that forwards ether to its owner, logs any call from a stranger with the full calldata, and lets the owner execute arbitrary calls.
0x001feb...9e7a4fJanuary 20, 2018Forwarder
Same eraNinety-three bytes with one hardcoded destination: every payment received is transferred straight back out to the same address.
0x458353...a562deJanuary 20, 2018Sweeper
Same eraMinimal ETH sweeper, first of 1,900 identical deployments in a 2-day burst in January 2018. All sweep to a single hardcoded destination. Source verified by EthereumHistory.
0xeb15f6...6cb3e1January 23, 2018