ETH Price: $3,883.84 (-1.21%)

Contract

0x28F2AB9c46ce434A14eFa257800cb56741947C84
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Do Airdrop169843752023-04-05 18:36:11619 days ago1680719771IN
0x28F2AB9c...741947C84
0 ETH0.0022231430.07952714
Do Airdrop169803592023-04-05 4:53:47620 days ago1680670427IN
0x28F2AB9c...741947C84
0 ETH0.0061893550
Do Airdrop169803272023-04-05 4:47:11620 days ago1680670031IN
0x28F2AB9c...741947C84
0 ETH0.006333650

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
gDexTokenAirdrop

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : MultiSendTokens.sol
/**
 *Submitted for verification at polygonscan.com on 2022-02-02
*/

/**
 *Submitted for verification at polygonscan.com on 2021-10-07
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

contract gDexTokenAirdrop {
    function doAirdrop(address _tokenAddress, address[] calldata recipients, uint[] calldata amounts) external {
        require(recipients.length == amounts.length, "Two lengths have to be the same");

        for (uint i = 0; i < recipients.length; i++) {
            IERC20(_tokenAddress).transferFrom(msg.sender, recipients[i], amounts[i]);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"doAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50610329806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80632f1afbac14610030575b600080fd5b61004361003e3660046101ef565b610045565b005b8281146100985760405162461bcd60e51b815260206004820152601f60248201527f54776f206c656e67746873206861766520746f206265207468652073616d6500604482015260640160405180910390fd5b60005b8381101561017f57856001600160a01b03166323b872dd338787858181106100c5576100c5610270565b90506020020160208101906100da9190610286565b8686868181106100ec576100ec610270565b6040516001600160e01b031960e088901b1681526001600160a01b039586166004820152949093166024850152506020909102013560448201526064016020604051808303816000875af1158015610148573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061016c91906102a8565b5080610177816102ca565b91505061009b565b505050505050565b80356001600160a01b038116811461019e57600080fd5b919050565b60008083601f8401126101b557600080fd5b50813567ffffffffffffffff8111156101cd57600080fd5b6020830191508360208260051b85010111156101e857600080fd5b9250929050565b60008060008060006060868803121561020757600080fd5b61021086610187565b9450602086013567ffffffffffffffff8082111561022d57600080fd5b61023989838a016101a3565b9096509450604088013591508082111561025257600080fd5b5061025f888289016101a3565b969995985093965092949392505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561029857600080fd5b6102a182610187565b9392505050565b6000602082840312156102ba57600080fd5b815180151581146102a157600080fd5b60006000198214156102ec57634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212206bbe6bd403d35c5a23d8d05a0ff0a78715be1995edcb7c85e5c2855e4dd06b3664736f6c634300080b0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80632f1afbac14610030575b600080fd5b61004361003e3660046101ef565b610045565b005b8281146100985760405162461bcd60e51b815260206004820152601f60248201527f54776f206c656e67746873206861766520746f206265207468652073616d6500604482015260640160405180910390fd5b60005b8381101561017f57856001600160a01b03166323b872dd338787858181106100c5576100c5610270565b90506020020160208101906100da9190610286565b8686868181106100ec576100ec610270565b6040516001600160e01b031960e088901b1681526001600160a01b039586166004820152949093166024850152506020909102013560448201526064016020604051808303816000875af1158015610148573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061016c91906102a8565b5080610177816102ca565b91505061009b565b505050505050565b80356001600160a01b038116811461019e57600080fd5b919050565b60008083601f8401126101b557600080fd5b50813567ffffffffffffffff8111156101cd57600080fd5b6020830191508360208260051b85010111156101e857600080fd5b9250929050565b60008060008060006060868803121561020757600080fd5b61021086610187565b9450602086013567ffffffffffffffff8082111561022d57600080fd5b61023989838a016101a3565b9096509450604088013591508082111561025257600080fd5b5061025f888289016101a3565b969995985093965092949392505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561029857600080fd5b6102a182610187565b9392505050565b6000602082840312156102ba57600080fd5b815180151581146102a157600080fd5b60006000198214156102ec57634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212206bbe6bd403d35c5a23d8d05a0ff0a78715be1995edcb7c85e5c2855e4dd06b3664736f6c634300080b0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.