ETH Price: $1,551.15 (-4.00%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Redeem Package123023882021-04-24 10:29:401447 days ago1619260180IN
0x6dc02fC8...02ddb3c63
0 ETH0.004192755
Redeem Package122577512021-04-17 12:59:561454 days ago1618664396IN
0x6dc02fC8...02ddb3c63
0 ETH0.00892721117
Redeem Package122298372021-04-13 5:22:401459 days ago1618291360IN
0x6dc02fC8...02ddb3c63
0 ETH0.0030029792
Redeem Package122288852021-04-13 1:49:111459 days ago1618278551IN
0x6dc02fC8...02ddb3c63
0 ETH0.0108351143.902
Redeem Package122161542021-04-11 3:07:491461 days ago1618110469IN
0x6dc02fC8...02ddb3c63
0 ETH0.0032653100.00000145
Redeem Package122025472021-04-09 0:48:331463 days ago1617929313IN
0x6dc02fC8...02ddb3c63
0 ETH0.006022880
Redeem Package122025412021-04-09 0:47:421463 days ago1617929262IN
0x6dc02fC8...02ddb3c63
0 ETH0.0060253680
Redeem Package122025392021-04-09 0:47:331463 days ago1617929253IN
0x6dc02fC8...02ddb3c63
0 ETH0.0060248880
Redeem Package122025232021-04-09 0:45:051463 days ago1617929105IN
0x6dc02fC8...02ddb3c63
0 ETH0.0060971181
Redeem Package122025232021-04-09 0:45:051463 days ago1617929105IN
0x6dc02fC8...02ddb3c63
0 ETH0.0060987381
Redeem Package121961452021-04-08 1:09:471464 days ago1617844187IN
0x6dc02fC8...02ddb3c63
0 ETH0.0032986101.02000134
Redeem Package121848602021-04-06 7:49:431465 days ago1617695383IN
0x6dc02fC8...02ddb3c63
0 ETH0.00842632112
Redeem Package121846312021-04-06 6:57:121465 days ago1617692232IN
0x6dc02fC8...02ddb3c63
0 ETH0.002872488.00000145
Redeem Package121844872021-04-06 6:24:171466 days ago1617690257IN
0x6dc02fC8...02ddb3c63
0 ETH0.0029376990
Redeem Package121844682021-04-06 6:20:461466 days ago1617690046IN
0x6dc02fC8...02ddb3c63
0 ETH0.0067727790.00000134
Redeem Package121783572021-04-05 7:39:391466 days ago1617608379IN
0x6dc02fC8...02ddb3c63
0 ETH0.0064745186
Redeem Package121783502021-04-05 7:38:141466 days ago1617608294IN
0x6dc02fC8...02ddb3c63
0 ETH0.0066240288
Redeem Package121775132021-04-05 4:22:521467 days ago1617596572IN
0x6dc02fC8...02ddb3c63
0 ETH0.0063956585
Redeem Package121775122021-04-05 4:22:511467 days ago1617596571IN
0x6dc02fC8...02ddb3c63
0 ETH0.0061743582
Redeem Package121774302021-04-05 4:05:551467 days ago1617595555IN
0x6dc02fC8...02ddb3c63
0 ETH0.0062423483
Redeem Package121774292021-04-05 4:05:461467 days ago1617595546IN
0x6dc02fC8...02ddb3c63
0 ETH0.0062469983
Redeem Package121771842021-04-05 3:15:221467 days ago1617592522IN
0x6dc02fC8...02ddb3c63
0 ETH0.0074514399
Redeem Package121770592021-04-05 2:44:191467 days ago1617590659IN
0x6dc02fC8...02ddb3c63
0 ETH0.0063177284
Redeem Package121770512021-04-05 2:43:161467 days ago1617590596IN
0x6dc02fC8...02ddb3c63
0 ETH0.00329552101
Redeem Package121770512021-04-05 2:43:161467 days ago1617590596IN
0x6dc02fC8...02ddb3c63
0 ETH0.00365444112
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Airdrop

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : Airdrop.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

contract Airdrop {
    using SafeMath for uint256;

    uint256 private constant THREE_WEEKS = 22 days;
    uint256 private constant THREE_DAYS = 3 days;

    bytes32 public immutable _rootHash;
    IERC20 public immutable _token;
    uint256 public immutable _blockDeadline;
    uint256 public immutable _blockReductionsBegin;
    address public immutable _treasury;

    mapping (uint256 => uint256) _redeemed;

    constructor(IERC20 token, bytes32 rootHash, address treasury) {
        
        _token = token;
        _rootHash = rootHash;
        _treasury = treasury;

        _blockReductionsBegin = block.timestamp
            .add(THREE_WEEKS);
        
        _blockDeadline = block.timestamp
            .add(THREE_WEEKS)
            .add(THREE_DAYS);
    }

    function redeemed(uint256 index) public view returns (bool) {
        uint256 redeemedBlock = _redeemed[index / 256];
        uint256 redeemedMask = (uint256(1) << uint256(index % 256));
        return ((redeemedBlock & redeemedMask) != 0);
    }

    function redeemPackage(uint256 index, address recipient, uint256 amount, bytes32[] memory merkleProof) public {

        require(block.timestamp <= _blockDeadline, "Airdrop: Redemption deadline passed.");

        // Make sure this package has not already been claimed (and claim it)
        uint256 redeemedBlock = _redeemed[index / 256];
        uint256 redeemedMask = (uint256(1) << uint256(index % 256));
        require((redeemedBlock & redeemedMask) == 0, "Airdrop: already redeemed");
        _redeemed[index / 256] = redeemedBlock | redeemedMask;

        // Compute the merkle root
        bytes32 node = keccak256(abi.encode(index, recipient, amount));

        uint256 path = index;
        for (uint16 i = 0; i < merkleProof.length; i++) {
            if ((path & 0x01) == 1) {
                node = keccak256(abi.encode(merkleProof[i], node));
            } else {
                node = keccak256(abi.encode(node, merkleProof[i]));
            }
            path /= 2;
        }

        // Check the merkle proof
        require(node == _rootHash, "Airdrop: Merkle root mismatch");

        // Redeem!
        uint256 sendAmount = amount;
        if (block.timestamp > _blockReductionsBegin) {
            sendAmount = reducedAmount(amount);
        }

        require(
            IERC20(_token).transfer(recipient, sendAmount),
            "Airdrop: Token transfer fail"
        );

    }

    function reducedAmount(uint256 originalAmount)
        public
        view
        returns (uint256)
    {
        uint256 blocksSinceReductionStarted = block.timestamp
            .sub(_blockReductionsBegin);

        uint256 reduceBy = blocksSinceReductionStarted
            .mul(originalAmount)
            .div(THREE_DAYS);

        return originalAmount.sub(reduceBy);
    }

    function sweepPostDeadline(IERC20 token)
        public
    {
        require(block.timestamp > _blockDeadline, "Airdrop: Deadline has not yet passed.");

        uint256 tokenBalance = IERC20(token).balanceOf(address(this));
        require(
            IERC20(token).transfer(_treasury, tokenBalance),
            "Airdrop: Token transfer to treasury fail"
        );
    }
}

File 2 of 3 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 3 of 3 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bytes32","name":"rootHash","type":"bytes32"},{"internalType":"address","name":"treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"_blockDeadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_blockReductionsBegin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rootHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"redeemPackage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"redeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"originalAmount","type":"uint256"}],"name":"reducedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"sweepPostDeadline","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61012060405234801561001157600080fd5b506040516111653803806111658339818101604052606081101561003457600080fd5b810190808051906020019092919080519060200190929190805190602001909291905050508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b8152505081608081815250508073ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1660601b815250506100ea621d01004261013360201b610b521790919060201c565b60e081815250506101246203f480610112621d01004261013360201b610b521790919060201c565b61013360201b610b521790919060201c565b60c081815250505050506101bb565b6000808284019050838110156101b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60805160a05160601c60c05160e0516101005160601c610f426102236000398061044c5280610b0c52508061055b52806108dc5280610a5952508061031252806105d55280610aa15250806109105280610b305250806108425280610a7d5250610f426000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80636283188c116100665780636283188c1461022857806372a2cb7d146102465780637ed0f1c114610264578063e319a3d9146102a8578063ecd0c0c3146102dc57610093565b80631fb886bb1461009857806323cf1143146100dc5780633289e0041461011e5780635212ad3c1461020a575b600080fd5b6100da600480360360208110156100ae57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610310565b005b610108600480360360208110156100f257600080fd5b8101908080359060200190929190505050610553565b6040518082815260200191505060405180910390f35b6102086004803603608081101561013457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561018557600080fd5b82018360208201111561019757600080fd5b803590602001918460208302840111640100000000831117156101b957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506105d3565b005b610212610a57565b6040518082815260200191505060405180910390f35b610230610a7b565b6040518082815260200191505060405180910390f35b61024e610a9f565b6040518082815260200191505060405180910390f35b6102906004803603602081101561027a57600080fd5b8101908080359060200190929190505050610ac3565b60405180821515815260200191505060405180910390f35b6102b0610b0a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102e4610b2e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000004211610388576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610e7b6025913960400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156103f157600080fd5b505afa158015610405573d6000803e3d6000fd5b505050506040513d602081101561041b57600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156104bf57600080fd5b505af11580156104d3573d6000803e3d6000fd5b505050506040513d60208110156104e957600080fd5b810190808051906020019092919050505061054f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180610ec16028913960400191505060405180910390fd5b5050565b6000806105897f000000000000000000000000000000000000000000000000000000000000000042610bda90919063ffffffff16565b905060006105b56203f4806105a78685610c2490919063ffffffff16565b610caa90919063ffffffff16565b90506105ca8185610bda90919063ffffffff16565b92505050919050565b7f000000000000000000000000000000000000000000000000000000000000000042111561064c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610ee96024913960400191505060405180910390fd5b6000806000610100878161065c57fe5b0481526020019081526020016000205490506000610100868161067b57fe5b066001901b90506000818316146106fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f41697264726f703a20616c72656164792072656465656d65640000000000000081525060200191505060405180910390fd5b808217600080610100898161070b57fe5b048152602001908152602001600020819055506000868686604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052805190602001209050600087905060005b85518161ffff16101561083f57600180831614156107dc57858161ffff168151811061079f57fe5b6020026020010151836040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610825565b82868261ffff16815181106107ed57fe5b602002602001015160405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b6002828161082f57fe5b0491508080600101915050610777565b507f000000000000000000000000000000000000000000000000000000000000000082146108d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f41697264726f703a204d65726b6c6520726f6f74206d69736d6174636800000081525060200191505060405180910390fd5b60008690507f000000000000000000000000000000000000000000000000000000000000000042111561090e5761090b87610553565b90505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb89836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561099f57600080fd5b505af11580156109b3573d6000803e3d6000fd5b505050506040513d60208110156109c957600080fd5b8101908080519060200190929190505050610a4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41697264726f703a20546f6b656e207472616e73666572206661696c0000000081525060200191505060405180910390fd5b505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806000806101008581610ad457fe5b04815260200190815260200160002054905060006101008481610af357fe5b066001901b90506000818316141592505050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080828401905083811015610bd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000610c1c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610cf4565b905092915050565b600080831415610c375760009050610ca4565b6000828402905082848281610c4857fe5b0414610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610ea06021913960400191505060405180910390fd5b809150505b92915050565b6000610cec83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610db4565b905092915050565b6000838311158290610da1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d66578082015181840152602081019050610d4b565b50505050905090810190601f168015610d935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290610e60576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e25578082015181840152602081019050610e0a565b50505050905090810190601f168015610e525780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610e6c57fe5b04905080915050939250505056fe41697264726f703a20446561646c696e6520686173206e6f7420796574207061737365642e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741697264726f703a20546f6b656e207472616e7366657220746f207472656173757279206661696c41697264726f703a20526564656d7074696f6e20646561646c696e65207061737365642ea26469706673582212202431bc31cab1c0c12859fd188e10b14c5b00554ce3aea6bbd624eac80cd6fe6664736f6c63430007030033000000000000000000000000e7f445b93eb9cdabfe76541cc43ff8de930a58e6f2265d6683289ed9d1f32402a106e3e5a7bd6b29c70ba1be08c27e6dc8625fe50000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80636283188c116100665780636283188c1461022857806372a2cb7d146102465780637ed0f1c114610264578063e319a3d9146102a8578063ecd0c0c3146102dc57610093565b80631fb886bb1461009857806323cf1143146100dc5780633289e0041461011e5780635212ad3c1461020a575b600080fd5b6100da600480360360208110156100ae57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610310565b005b610108600480360360208110156100f257600080fd5b8101908080359060200190929190505050610553565b6040518082815260200191505060405180910390f35b6102086004803603608081101561013457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561018557600080fd5b82018360208201111561019757600080fd5b803590602001918460208302840111640100000000831117156101b957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506105d3565b005b610212610a57565b6040518082815260200191505060405180910390f35b610230610a7b565b6040518082815260200191505060405180910390f35b61024e610a9f565b6040518082815260200191505060405180910390f35b6102906004803603602081101561027a57600080fd5b8101908080359060200190929190505050610ac3565b60405180821515815260200191505060405180910390f35b6102b0610b0a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102e4610b2e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f0000000000000000000000000000000000000000000000000000000060894e244211610388576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610e7b6025913960400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156103f157600080fd5b505afa158015610405573d6000803e3d6000fd5b505050506040513d602081101561041b57600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e0836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156104bf57600080fd5b505af11580156104d3573d6000803e3d6000fd5b505050506040513d60208110156104e957600080fd5b810190808051906020019092919050505061054f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180610ec16028913960400191505060405180910390fd5b5050565b6000806105897f00000000000000000000000000000000000000000000000000000000608559a442610bda90919063ffffffff16565b905060006105b56203f4806105a78685610c2490919063ffffffff16565b610caa90919063ffffffff16565b90506105ca8185610bda90919063ffffffff16565b92505050919050565b7f0000000000000000000000000000000000000000000000000000000060894e2442111561064c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610ee96024913960400191505060405180910390fd5b6000806000610100878161065c57fe5b0481526020019081526020016000205490506000610100868161067b57fe5b066001901b90506000818316146106fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f41697264726f703a20616c72656164792072656465656d65640000000000000081525060200191505060405180910390fd5b808217600080610100898161070b57fe5b048152602001908152602001600020819055506000868686604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052805190602001209050600087905060005b85518161ffff16101561083f57600180831614156107dc57858161ffff168151811061079f57fe5b6020026020010151836040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610825565b82868261ffff16815181106107ed57fe5b602002602001015160405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b6002828161082f57fe5b0491508080600101915050610777565b507ff2265d6683289ed9d1f32402a106e3e5a7bd6b29c70ba1be08c27e6dc8625fe582146108d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f41697264726f703a204d65726b6c6520726f6f74206d69736d6174636800000081525060200191505060405180910390fd5b60008690507f00000000000000000000000000000000000000000000000000000000608559a442111561090e5761090b87610553565b90505b7f000000000000000000000000e7f445b93eb9cdabfe76541cc43ff8de930a58e673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb89836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561099f57600080fd5b505af11580156109b3573d6000803e3d6000fd5b505050506040513d60208110156109c957600080fd5b8101908080519060200190929190505050610a4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41697264726f703a20546f6b656e207472616e73666572206661696c0000000081525060200191505060405180910390fd5b505050505050505050565b7f00000000000000000000000000000000000000000000000000000000608559a481565b7ff2265d6683289ed9d1f32402a106e3e5a7bd6b29c70ba1be08c27e6dc8625fe581565b7f0000000000000000000000000000000000000000000000000000000060894e2481565b6000806000806101008581610ad457fe5b04815260200190815260200160002054905060006101008481610af357fe5b066001901b90506000818316141592505050919050565b7f0000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e081565b7f000000000000000000000000e7f445b93eb9cdabfe76541cc43ff8de930a58e681565b600080828401905083811015610bd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000610c1c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610cf4565b905092915050565b600080831415610c375760009050610ca4565b6000828402905082848281610c4857fe5b0414610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610ea06021913960400191505060405180910390fd5b809150505b92915050565b6000610cec83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610db4565b905092915050565b6000838311158290610da1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d66578082015181840152602081019050610d4b565b50505050905090810190601f168015610d935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290610e60576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e25578082015181840152602081019050610e0a565b50505050905090810190601f168015610e525780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610e6c57fe5b04905080915050939250505056fe41697264726f703a20446561646c696e6520686173206e6f7420796574207061737365642e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741697264726f703a20546f6b656e207472616e7366657220746f207472656173757279206661696c41697264726f703a20526564656d7074696f6e20646561646c696e65207061737365642ea26469706673582212202431bc31cab1c0c12859fd188e10b14c5b00554ce3aea6bbd624eac80cd6fe6664736f6c63430007030033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000e7f445b93eb9cdabfe76541cc43ff8de930a58e6f2265d6683289ed9d1f32402a106e3e5a7bd6b29c70ba1be08c27e6dc8625fe50000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e0

-----Decoded View---------------
Arg [0] : token (address): 0xe7f445B93eB9CDaBfe76541Cc43Ff8dE930A58E6
Arg [1] : rootHash (bytes32): 0xf2265d6683289ed9d1f32402a106e3e5a7bd6b29c70ba1be08c27e6dc8625fe5
Arg [2] : treasury (address): 0x0aF0625b772472d18825c104b9daE35f76d3f6E0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e7f445b93eb9cdabfe76541cc43ff8de930a58e6
Arg [1] : f2265d6683289ed9d1f32402a106e3e5a7bd6b29c70ba1be08c27e6dc8625fe5
Arg [2] : 0000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e0


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.