Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x4368Ea2910aD793fD9E47c5861aAE42E2065A53a
Balance 0 ETH
Nonce 1
Code Size 1780 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

1780 bytes
0x608060405234801561000f575f80fd5b506004361061004a575f3560e01c80634022b75e1461004e578063715018a61461006a5780638da5cb5b14610074578063f2fde38b14610092575b5f80fd5b610068600480360381019061006391906104d6565b6100ae565b005b6100726101a0565b005b61007c6101b3565b6040516100899190610576565b60405180910390f35b6100ac60048036038101906100a791906105b9565b6101da565b005b6100b661025e565b5f8484905090505f8690505f5b82811015610196578173ffffffffffffffffffffffffffffffffffffffff166323b872dd338989858181106100fb576100fa6105e4565b5b905060200201602081019061011091906105b9565b888886818110610123576101226105e4565b5b905060200201356040518463ffffffff1660e01b815260040161014893929190610629565b6020604051808303815f875af1158015610164573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101889190610693565b5080806001019150506100c3565b5050505050505050565b6101a861025e565b6101b15f6102e5565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6101e261025e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610252575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016102499190610576565b60405180910390fd5b61025b816102e5565b50565b6102666103a6565b73ffffffffffffffffffffffffffffffffffffffff166102846101b3565b73ffffffffffffffffffffffffffffffffffffffff16146102e3576102a76103a6565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016102da9190610576565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6103de826103b5565b9050919050565b5f6103ef826103d4565b9050919050565b6103ff816103e5565b8114610409575f80fd5b50565b5f8135905061041a816103f6565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261044157610440610420565b5b8235905067ffffffffffffffff81111561045e5761045d610424565b5b60208301915083602082028301111561047a57610479610428565b5b9250929050565b5f8083601f84011261049657610495610420565b5b8235905067ffffffffffffffff8111156104b3576104b2610424565b5b6020830191508360208202830111156104cf576104ce610428565b5b9250929050565b5f805f805f606086880312156104ef576104ee6103ad565b5b5f6104fc8882890161040c565b955050602086013567ffffffffffffffff81111561051d5761051c6103b1565b5b6105298882890161042c565b9450945050604086013567ffffffffffffffff81111561054c5761054b6103b1565b5b61055888828901610481565b92509250509295509295909350565b610570816103d4565b82525050565b5f6020820190506105895f830184610567565b92915050565b610598816103d4565b81146105a2575f80fd5b50565b5f813590506105b38161058f565b92915050565b5f602082840312156105ce576105cd6103ad565b5b5f6105db848285016105a5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b61062381610611565b82525050565b5f60608201905061063c5f830186610567565b6106496020830185610567565b610656604083018461061a565b949350505050565b5f8115159050919050565b6106728161065e565b811461067c575f80fd5b50565b5f8151905061068d81610669565b92915050565b5f602082840312156106a8576106a76103ad565b5b5f6106b58482850161067f565b9150509291505056fea2646970667358221220a4121e9a543323e4cfcfe93712483749316a8442af535a13cf305b990616e78764736f6c63430008190033

Verified Source Code Full Match

Compiler: v0.8.25+commit.b61c2a91 EVM: cancun Optimization: No
AirdropperV2.sol 27 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract AirdropperV2 is Ownable {
    constructor() Ownable(msg.sender) {}

    function airdropTokens(
        IERC20 token,
        address[] calldata recipients,
        uint256[] calldata amounts
    ) external onlyOwner {
        uint256 length = recipients.length;
        IERC20 tokenContract = token;
        unchecked {
            for (uint256 i = 0; i < length; i++) {
                tokenContract.transferFrom(
                    msg.sender,
                    recipients[i],
                    amounts[i]
                );
            }
        }
    }
}
IERC20.sol 79 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}
Ownable.sol 100 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}
Context.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }
}

Read Contract

owner 0x8da5cb5b → address

Write Contract 3 functions

These functions modify contract state and require a wallet transaction to execute.

airdropTokens 0x4022b75e
address token
address[] recipients
uint256[] amounts
renounceOwnership 0x715018a6
No parameters
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address