Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,846 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Rescue Tokens | 19234468 | 314 days ago | IN | 0 ETH | 0.00298621 | ||||
Claim | 19234241 | 314 days ago | IN | 0 ETH | 0.00196268 | ||||
Claim | 19229504 | 315 days ago | IN | 0 ETH | 0.00135946 | ||||
Claim | 19229499 | 315 days ago | IN | 0 ETH | 0.00127852 | ||||
Claim | 19229498 | 315 days ago | IN | 0 ETH | 0.0013382 | ||||
Claim | 19227287 | 315 days ago | IN | 0 ETH | 0.00163568 | ||||
Claim | 19227275 | 315 days ago | IN | 0 ETH | 0.00190278 | ||||
Claim | 19226808 | 315 days ago | IN | 0 ETH | 0.00283837 | ||||
Claim | 19170625 | 323 days ago | IN | 0 ETH | 0.00138733 | ||||
Claim | 19168098 | 323 days ago | IN | 0 ETH | 0.00176303 | ||||
Claim | 19167863 | 324 days ago | IN | 0 ETH | 0.00348317 | ||||
Claim | 19167586 | 324 days ago | IN | 0 ETH | 0.00153208 | ||||
Claim | 19167584 | 324 days ago | IN | 0 ETH | 0.00147251 | ||||
Claim | 19167582 | 324 days ago | IN | 0 ETH | 0.00158586 | ||||
Claim | 19167580 | 324 days ago | IN | 0 ETH | 0.00160132 | ||||
Claim | 19167579 | 324 days ago | IN | 0 ETH | 0.00156309 | ||||
Claim | 19167577 | 324 days ago | IN | 0 ETH | 0.00150257 | ||||
Claim | 19167574 | 324 days ago | IN | 0 ETH | 0.00165059 | ||||
Claim | 19167553 | 324 days ago | IN | 0 ETH | 0.00170303 | ||||
Claim | 19167549 | 324 days ago | IN | 0 ETH | 0.00171714 | ||||
Claim | 19156228 | 325 days ago | IN | 0 ETH | 0.00085011 | ||||
Claim | 19146849 | 326 days ago | IN | 0 ETH | 0.00080827 | ||||
Claim | 19146566 | 327 days ago | IN | 0 ETH | 0.0007824 | ||||
Claim | 19145550 | 327 days ago | IN | 0 ETH | 0.00077964 | ||||
Claim | 19144875 | 327 days ago | IN | 0 ETH | 0.0012622 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Airdrop
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Airdrop.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Airdrop is Ownable { IERC20 public token; mapping(address => uint256) public balances; event Airdropped(address indexed recipient, uint256 amount); event Claimed(address indexed recipient, uint256 amount); event TokensRescued(address indexed token, address indexed recipient, uint256 amount); constructor(IERC20 _token) { token = _token; } function airdrop(address[] calldata recipients, uint256[] calldata values) external onlyOwner { require(recipients.length == values.length, "Mismatched input arrays"); uint256 total = 0; for (uint256 i = 0; i < recipients.length; i++) { balances[recipients[i]] += values[i]; total += values[i]; emit Airdropped(recipients[i], values[i]); } require(token.transferFrom(msg.sender, address(this), total), "Transfer failed"); } function claim() external { uint256 balance = balances[msg.sender]; require(balance > 0, "Nothing to claim"); balances[msg.sender] = 0; require(token.transfer(msg.sender, balance), "Transfer failed"); emit Claimed(msg.sender, balance); } function rescueTokens(IERC20 _token, address _recipient, uint256 _amount) external onlyOwner { require(_token.transfer(_recipient, _amount), "Transfer failed"); emit TokensRescued(address(_token), _recipient, _amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Airdropped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensRescued","type":"event"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a15380380610a1583398101604081905261002f916100ad565b6100383361005d565b600180546001600160a01b0319166001600160a01b03929092169190911790556100dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bf57600080fd5b81516001600160a01b03811681146100d657600080fd5b9392505050565b610929806100ec6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100e5578063cea9d26f1461010a578063f2fde38b1461011d578063fc0c546a1461013057600080fd5b806327e235e31461008d5780634e71d92d146100c057806367243482146100ca578063715018a6146100dd575b600080fd5b6100ad61009b36600461077f565b60026020526000908152604090205481565b6040519081526020015b60405180910390f35b6100c8610143565b005b6100c86100d83660046107ef565b6102a3565b6100c86104f9565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100b7565b6100c861011836600461085b565b61050d565b6100c861012b36600461077f565b610618565b6001546100f2906001600160a01b031681565b33600090815260026020526040902054806101a55760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d0000000000000000000000000000000060448201526064015b60405180910390fd5b3360008181526002602052604080822091909155600154905163a9059cbb60e01b81526004810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610209573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022d919061089c565b61026b5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161019c565b60405181815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a250565b6102ab6106a8565b8281146102fa5760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368656420696e70757420617272617973000000000000000000604482015260640161019c565b6000805b8481101561043857838382818110610318576103186108be565b9050602002013560026000888885818110610335576103356108be565b905060200201602081019061034a919061077f565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461037991906108ea565b909155508490508382818110610391576103916108be565b90506020020135826103a391906108ea565b91508585828181106103b7576103b76108be565b90506020020160208101906103cc919061077f565b6001600160a01b03167f7bd6d4be1decdc27a9ed9c7ccdf5bb7cc38e31b3647b958c6b37162a2296c0fa858584818110610408576104086108be565b9050602002013560405161041e91815260200190565b60405180910390a28061043081610903565b9150506102fe565b506001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610490573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b4919061089c565b6104f25760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161019c565b5050505050565b6105016106a8565b61050b6000610702565b565b6105156106a8565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015610564573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610588919061089c565b6105c65760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161019c565b816001600160a01b0316836001600160a01b03167f77023e19c7343ad491fd706c36335ca0e738340a91f29b1fd81e2673d44896c48360405161060b91815260200190565b60405180910390a3505050565b6106206106a8565b6001600160a01b03811661069c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161019c565b6106a581610702565b50565b6000546001600160a01b0316331461050b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019c565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146106a557600080fd5b60006020828403121561079157600080fd5b813561079c8161076a565b9392505050565b60008083601f8401126107b557600080fd5b50813567ffffffffffffffff8111156107cd57600080fd5b6020830191508360208260051b85010111156107e857600080fd5b9250929050565b6000806000806040858703121561080557600080fd5b843567ffffffffffffffff8082111561081d57600080fd5b610829888389016107a3565b9096509450602087013591508082111561084257600080fd5b5061084f878288016107a3565b95989497509550505050565b60008060006060848603121561087057600080fd5b833561087b8161076a565b9250602084013561088b8161076a565b929592945050506040919091013590565b6000602082840312156108ae57600080fd5b8151801515811461079c57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156108fd576108fd6108d4565b92915050565b600060018201610915576109156108d4565b506001019056fea164736f6c6343000811000a0000000000000000000000005d56b6581d2e7e7574adce2dc593f499a53d7505
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100e5578063cea9d26f1461010a578063f2fde38b1461011d578063fc0c546a1461013057600080fd5b806327e235e31461008d5780634e71d92d146100c057806367243482146100ca578063715018a6146100dd575b600080fd5b6100ad61009b36600461077f565b60026020526000908152604090205481565b6040519081526020015b60405180910390f35b6100c8610143565b005b6100c86100d83660046107ef565b6102a3565b6100c86104f9565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100b7565b6100c861011836600461085b565b61050d565b6100c861012b36600461077f565b610618565b6001546100f2906001600160a01b031681565b33600090815260026020526040902054806101a55760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d0000000000000000000000000000000060448201526064015b60405180910390fd5b3360008181526002602052604080822091909155600154905163a9059cbb60e01b81526004810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610209573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022d919061089c565b61026b5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161019c565b60405181815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a250565b6102ab6106a8565b8281146102fa5760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368656420696e70757420617272617973000000000000000000604482015260640161019c565b6000805b8481101561043857838382818110610318576103186108be565b9050602002013560026000888885818110610335576103356108be565b905060200201602081019061034a919061077f565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461037991906108ea565b909155508490508382818110610391576103916108be565b90506020020135826103a391906108ea565b91508585828181106103b7576103b76108be565b90506020020160208101906103cc919061077f565b6001600160a01b03167f7bd6d4be1decdc27a9ed9c7ccdf5bb7cc38e31b3647b958c6b37162a2296c0fa858584818110610408576104086108be565b9050602002013560405161041e91815260200190565b60405180910390a28061043081610903565b9150506102fe565b506001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610490573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b4919061089c565b6104f25760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161019c565b5050505050565b6105016106a8565b61050b6000610702565b565b6105156106a8565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015610564573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610588919061089c565b6105c65760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161019c565b816001600160a01b0316836001600160a01b03167f77023e19c7343ad491fd706c36335ca0e738340a91f29b1fd81e2673d44896c48360405161060b91815260200190565b60405180910390a3505050565b6106206106a8565b6001600160a01b03811661069c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161019c565b6106a581610702565b50565b6000546001600160a01b0316331461050b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019c565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146106a557600080fd5b60006020828403121561079157600080fd5b813561079c8161076a565b9392505050565b60008083601f8401126107b557600080fd5b50813567ffffffffffffffff8111156107cd57600080fd5b6020830191508360208260051b85010111156107e857600080fd5b9250929050565b6000806000806040858703121561080557600080fd5b843567ffffffffffffffff8082111561081d57600080fd5b610829888389016107a3565b9096509450602087013591508082111561084257600080fd5b5061084f878288016107a3565b95989497509550505050565b60008060006060848603121561087057600080fd5b833561087b8161076a565b9250602084013561088b8161076a565b929592945050506040919091013590565b6000602082840312156108ae57600080fd5b8151801515811461079c57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156108fd576108fd6108d4565b92915050565b600060018201610915576109156108d4565b506001019056fea164736f6c6343000811000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005d56b6581d2e7e7574adce2dc593f499a53d7505
-----Decoded View---------------
Arg [0] : _token (address): 0x5D56B6581D2e7e7574aDce2Dc593f499A53D7505
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005d56b6581d2e7e7574adce2dc593f499a53d7505
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.