Verified contractPartial
ApplAirdrop
Address0xaeee454e41250de272d52730d7c5dffd43cc6052
- Balance
0 ETH
- Transactions
127
- Compiler
solc 0.4.26
- Same code
Only this contract
Details
- Compiler
- solc 0.4.26+commit.4563c3fc
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,032,814
- Creation transaction
- 0xf5a1525dc2…ea0f477683
ApplAirdrop.sol
pragma solidity ^0.4.18;
contract ERC20 {
function transfer(address _to, uint256 _value) public returns (bool);
function balanceOf(address tokenOwner)
public
view
returns (uint256 balance);
function transferFrom(
address from,
address to,
uint256 tokens
) public returns (bool success);
}
contract ApplAirdrop {
ERC20 public token;
mapping(address => bool) public Wallets;
function ApplAirdrop(address _tokenAddr) public {
token = ERC20(_tokenAddr);
}
function getAirdrop() public {
if (!Wallets[msg.sender]) {
token.transfer(msg.sender, 5000000000000000000);
Wallets[msg.sender] = true;
} else {
revert("You have already received ;)");
}
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.