This token is claimable
Its 2018 airdrop faucet is still paying out. You can claim free UAT to your own wallet; you only pay gas.
UselessAirdroppedToken (UAT) is a 2018 ERC-20 airdrop faucet: anyone could call getTokens() to receive a share of its 50 million UAT supply.
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)
{{
"sources": {
"UAT.sol": {
"content": "// Submitted by EthereumHistory (ethereumhistory.com)\npragma solidity ^0.4.19;\r\n\r\nlibrary SafeMath {\r\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n uint256 c = a * b;\r\n assert(a == 0 || c / a == b);\r\n return c;\r\n }\r\n\r\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\r\n uint256 c = a / b;\r\n return c;\r\n }\r\n\r\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r\n assert(b <= a);\r\n return a - b;\r\n }\r\n\r\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\r\n uint256 c = a + b;\r\n assert(c >= a);\r\n return c;\r\n }\r\n}\r\n\r\ncontract ForeignToken {\r\n function balanceOf(address _owner) constant public returns (uint256);\r\n function transfer(address _to, uint256 _value) public returns (bool);\r\n}\r\n\r\ncontract ERC20Basic {\r\n uint256 public totalSupply;\r\n function balanceOf(address who) public constant returns (uint256);\r\n function transfer(address to, uint256 value) public returns (bool);\r\n event Transfer(address indexed from, address indexed to, uint256 value);\r\n}\r\n\r\ncontract ERC20 is ERC20Basic {\r\n function allowance(address owner, address spender) public constant returns (uint256);\r\n function transferFrom(address from, address to, uint256 value) public returns (bool);\r\n function approve(address spender, uint256 value) public returns (bool);\r\n event Approval(address indexed owner, address indexed spender, uint256 value);\r\n}\r\n\r\ninterface Token { \r\n function distr(address _to, uint256 _value) public returns (bool);\r\n function totalSupply() constant public returns (uint256 supply);\r\n function balanceOf(address _owner) constant public returns (uint256 balance);\r\n}\r\n\r\ncontract UAT is ERC20 {\r\n \r\n using SafeMath for uint256;\r\n address owner = msg.sender;\r\n\r\n mapping (address => uint256) balances;\r\n mapping (address => mapping (address => uint256)) allowed;\r\n mapping (address => bool) public blacklist;\r\n\r\n string public constant name = \"UselessAirdroppedToken\";\r\n string public constant symbol = \"UAT\";\r\n uint public constant decimals = 8;\r\n \r\n uint256 public totalSupply = 50000000e8;\r\n uint256 private totalReserved = (totalSupply.div(100)).mul(15);\r\n uint256 private totalBounties = (totalSupply.div(100)).mul(5);\r\n uint256 public totalDistributed = totalReserved.add(totalBounties);\r\n uint256 public totalRemaining = totalSupply.sub(totalDistributed);\r\n uint256 public value;\r\n uint256 public minReq;\r\n\r\n event Transfer(address indexed _from, address indexed _to, uint256 _value);\r\n event Approval(address indexed _owner, address indexed _spender, uint256 _value);\r\n \r\n event Distr(address indexed to, uint256 amount);\r\n event DistrFinished();\r\n \r\n event Burn(address indexed burner, uint256 value);\r\n\r\n bool public distributionFinished = false;\r\n \r\n modifier canDistr() {\r\n require(!distributionFinished);\r\n _;\r\n }\r\n \r\n modifier onlyOwner() {\r\n require(msg.sender == owner);\r\n _;\r\n }\r\n \r\n modifier onlyWhitelist() {\r\n require(blacklist[msg.sender] == false);\r\n _;\r\n }\r\n \r\n function UAT (uint256 _value, uint256 _minReq) public {\r\n owner = msg.sender;\r\n value = _value;\r\n minReq = _minReq;\r\n balances[msg.sender] = totalDistributed;\r\n }\r\n \r\n function setParameters (uint256 _value, uint256 _minReq) onlyOwner public {\r\n value = _value;\r\n minReq = _minReq;\r\n }\r\n\r\n function transferOwnership(address newOwner) onlyOwner public {\r\n if (newOwner != address(0)) {\r\n owner = newOwner;\r\n }\r\n }\r\n \r\n function enableWhitelist(address[] addresses) onlyOwner public {\r\n for (uint i = 0; i < addresses.length; i++) {\r\n blacklist[addresses[i]] = false;\r\n }\r\n }\r\n\r\n function disableWhitelist(address[] addresses) onlyOwner public {\r\n for (uint i = 0; i < addresses.length; i++) {\r\n blacklist[addresses[i]] = true;\r\n }\r\n }\r\n\r\n function finishDistribution() onlyOwner canDistr public returns (bool) {\r\n distributionFinished = true;\r\n DistrFinished();\r\n return true;\r\n }\r\n \r\n function distr(address _to, uint256 _amount) canDistr private returns (bool) {\r\n totalDistributed = totalDistributed.add(_amount);\r\n totalRemaining = totalRemaining.sub(_amount);\r\n balances[_to] = balances[_to].add(_amount);\r\n Distr(_to, _amount);\r\n Transfer(address(0), _to, _amount);\r\n return true;\r\n \r\n if (totalDistributed >= totalSupply) {\r\n distributionFinished = true;\r\n }\r\n }\r\n \r\n function airdrop(address[] addresses) onlyOwner canDistr public {\r\n \r\n require(addresses.length <= 255);\r\n require(value <= totalRemaining);\r\n \r\n for (uint i = 0; i < addresses.length; i++) {\r\n require(value <= totalRemaining);\r\n distr(addresses[i], value);\r\n }\r\n\t\r\n if (totalDistributed >= totalSupply) {\r\n distributionFinished = true;\r\n }\r\n }\r\n \r\n function distribution(address[] addresses, uint256 amount) onlyOwner canDistr public {\r\n \r\n require(addresses.length <= 255);\r\n require(amount <= totalRemaining);\r\n \r\n for (uint i = 0; i < addresses.length; i++) {\r\n require(amount <= totalRemaining);\r\n distr(addresses[i], amount);\r\n }\r\n\t\r\n if (totalDistributed >= totalSupply) {\r\n distributionFinished = true;\r\n }\r\n }\r\n \r\n function distributeAmounts(address[] addresses, uint256[] amounts) onlyOwner canDistr public {\r\n\r\n require(addresses.length <= 255);\r\n require(addresses.length == amounts.length);\r\n \r\n for (uint8 i = 0; i < addresses.length; i++) {\r\n require(amounts[i] <= totalRemaining);\r\n distr(addresses[i], amounts[i]);\r\n \r\n if (totalDistributed >= totalSupply) {\r\n distributionFinished = true;\r\n }\r\n }\r\n }\r\n \r\n function () external payable {\r\n getTokens();\r\n }\r\n \r\n function getTokens() payable canDistr onlyWhitelist public {\r\n \r\n require(value <= totalRemaining);\r\n \r\n address investor = msg.sender;\r\n uint256 toGive = value;\r\n \r\n if (msg.value < minReq){\r\n toGive = value.sub(value);\r\n }\r\n \r\n distr(investor, toGive);\r\n \r\n if (toGive > 0) {\r\n blacklist[investor] = true;\r\n }\r\n\r\n if (totalDistributed >= totalSupply) {\r\n distributionFinished = true;\r\n }\r\n }\r\n\r\n function balanceOf(address _owner) constant public returns (uint256) {\r\n\t return balances[_owner];\r\n }\r\n\r\n // mitigates the ERC20 short address attack\r\n modifier onlyPayloadSize(uint size) {\r\n assert(msg.data.length >= size + 4);\r\n _;\r\n }\r\n \r\n function transfer(address _to, uint256 _amount) onlyPayloadSize(2 * 32) public returns (bool success) {\r\n\r\n require(_to != address(0));\r\n require(_amount <= balances[msg.sender]);\r\n \r\n balances[msg.sender] = balances[msg.sender].sub(_amount);\r\n balances[_to] = balances[_to].add(_amount);\r\n Transfer(msg.sender, _to, _amount);\r\n return true;\r\n }\r\n \r\n function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) {\r\n\r\n require(_to != address(0));\r\n require(_amount <= balances[_from]);\r\n require(_amount <= allowed[_from][msg.sender]);\r\n \r\n balances[_from] = balances[_from].sub(_amount);\r\n allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);\r\n balances[_to] = balances[_to].add(_amount);\r\n Transfer(_from, _to, _amount);\r\n return true;\r\n }\r\n \r\n function approve(address _spender, uint256 _value) public returns (bool success) {\r\n // mitigates the ERC20 spend/approval race condition\r\n if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; }\r\n allowed[msg.sender][_spender] = _value;\r\n Approval(msg.sender, _spender, _value);\r\n return true;\r\n }\r\n \r\n function allowance(address _owner, address _spender) constant public returns (uint256) {\r\n return allowed[_owner][_spender];\r\n }\r\n \r\n function getTokenBalance(address tokenAddress, address who) constant public returns (uint){\r\n ForeignToken t = ForeignToken(tokenAddress);\r\n uint bal = t.balanceOf(who);\r\n return bal;\r\n }\r\n \r\n function withdraw() onlyOwner public {\r\n uint256 etherBalance = this.balance;\r\n owner.transfer(etherBalance);\r\n }\r\n \r\n function burn(uint256 _value) onlyOwner public {\r\n require(_value <= balances[msg.sender]);\r\n // no need to require value <= totalSupply, since that would imply the\r\n // sender's balance is greater than the totalSupply, which *should* be an assertion failure\r\n\r\n address burner = msg.sender;\r\n balances[burner] = balances[burner].sub(_value);\r\n totalSupply = totalSupply.sub(_value);\r\n totalDistributed = totalDistributed.sub(_value);\r\n Burn(burner, _value);\r\n }\r\n \r\n function withdrawForeignTokens(address _tokenContract) onlyOwner public returns (bool) {\r\n ForeignToken token = ForeignToken(_tokenContract);\r\n uint256 amount = token.balanceOf(address(this));\r\n return token.transfer(owner, amount);\r\n }\r\n\r\n\r\n}"
}
},
"language": "Solidity",
"settings": {
"optimizer": {
"runs": 200,
"enabled": false
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}
}}External Links
Related contracts
TheBoringToken
Same deployerTheBoringToken (TBT) is an ERC-20 token launched on Ethereum in February 2018 that distributed its 1 billion TBT supply through an open onchain claim function.
0x4006d0...5e62ebFebruary 7, 2018UselessAirdroppedToken
Same deployerUselessAirdroppedToken (UAT) is a 2018 ERC-20 airdrop faucet: anyone could call getTokens() to receive a share of its 1 billion UAT supply.
0x59695f...45f40dFebruary 7, 2018UselessAirdroppedToken
Same deployerUselessAirdroppedToken (UAT) is an ERC-20 airdrop token from February 2018 whose 50 million UAT supply anyone could claim through a public getTokens() function.
0x02d209...c0562cFebruary 7, 2018UselessAirdroppedToken
Same deployerUselessAirdroppedToken (UAT) is an ERC-20 airdrop token from February 2018 whose 1 billion UAT supply anyone could claim through a public getTokens() function.
0x4aa759...69fc07February 7, 2018UselessAirdroppedToken
Same deployerUselessAirdroppedToken (UAT) is a 2018 ERC-20 airdrop faucet: anyone could call getTokens() to receive a share of its 1 billion UAT supply.
0x58a610...b9fd7eFebruary 7, 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, 2018