ETH Price: $3,335.61 (+0.32%)

Contract

0x42b38ca3E09c92CA82FA3659Ca039188A6A076ac
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Redeem Package173359902023-05-25 11:53:59582 days ago1685015639IN
0x42b38ca3...8A6A076ac
0 ETH0.0018074157
Redeem Package126482622021-06-16 22:50:321289 days ago1623883832IN
0x42b38ca3...8A6A076ac
0 ETH0.0014891947
Redeem Package126463992021-06-16 15:50:501290 days ago1623858650IN
0x42b38ca3...8A6A076ac
0 ETH0.0029772735
Redeem Package126463782021-06-16 15:46:051290 days ago1623858365IN
0x42b38ca3...8A6A076ac
0 ETH0.0029776935
Redeem Package126458602021-06-16 13:51:511290 days ago1623851511IN
0x42b38ca3...8A6A076ac
0 ETH0.0017013420
Redeem Package126433442021-06-16 4:18:091290 days ago1623817089IN
0x42b38ca3...8A6A076ac
0 ETH0.0010206812
Redeem Package126432012021-06-16 3:49:171290 days ago1623815357IN
0x42b38ca3...8A6A076ac
0 ETH0.0009358411
Redeem Package126395142021-06-15 14:15:061291 days ago1623766506IN
0x42b38ca3...8A6A076ac
0 ETH0.001191314
Redeem Package126375552021-06-15 6:52:021291 days ago1623739922IN
0x42b38ca3...8A6A076ac
0 ETH0.0008762510.3
Redeem Package126370342021-06-15 4:58:441291 days ago1623733124IN
0x42b38ca3...8A6A076ac
0 ETH0.0013613216
Redeem Package126363912021-06-15 2:38:261291 days ago1623724706IN
0x42b38ca3...8A6A076ac
0 ETH0.0013610716
Redeem Package126360662021-06-15 1:22:541291 days ago1623720174IN
0x42b38ca3...8A6A076ac
0 ETH0.0016155519
Redeem Package126357442021-06-15 0:12:281291 days ago1623715948IN
0x42b38ca3...8A6A076ac
0 ETH0.0013607816
Redeem Package126354092021-06-14 22:56:031291 days ago1623711363IN
0x42b38ca3...8A6A076ac
0 ETH0.0014286617
Redeem Package126348462021-06-14 20:50:381291 days ago1623703838IN
0x42b38ca3...8A6A076ac
0 ETH0.001786421
Redeem Package126341972021-06-14 18:33:351291 days ago1623695615IN
0x42b38ca3...8A6A076ac
0 ETH0.0010215312.01
Redeem Package126341532021-06-14 18:25:391291 days ago1623695139IN
0x42b38ca3...8A6A076ac
0 ETH0.0019558923
Redeem Package126341442021-06-14 18:24:181291 days ago1623695058IN
0x42b38ca3...8A6A076ac
0 ETH0.0021279725
Redeem Package126335132021-06-14 15:59:221292 days ago1623686362IN
0x42b38ca3...8A6A076ac
0 ETH0.0019562123
Redeem Package126334192021-06-14 15:39:421292 days ago1623685182IN
0x42b38ca3...8A6A076ac
0 ETH0.001531618
Redeem Package126334132021-06-14 15:38:181292 days ago1623685098IN
0x42b38ca3...8A6A076ac
0 ETH0.0018709922
Redeem Package126333892021-06-14 15:33:401292 days ago1623684820IN
0x42b38ca3...8A6A076ac
0 ETH0.0017009820
Redeem Package126333692021-06-14 15:29:411292 days ago1623684581IN
0x42b38ca3...8A6A076ac
0 ETH0.0023808128
Redeem Package126332182021-06-14 14:52:481292 days ago1623682368IN
0x42b38ca3...8A6A076ac
0 ETH0.002212126
Redeem Package126331942021-06-14 14:47:191292 days ago1623682039IN
0x42b38ca3...8A6A076ac
0 ETH0.0026201230.8
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 public constant APRIL_28_NOON = 1619625600;
    uint256 private constant SIX_WEEKS = 6 weeks;
    uint256 private constant ONE_WEEK = 1 weeks;

    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 = APRIL_28_NOON
            .add(SIX_WEEKS);
        
        _blockDeadline = APRIL_28_NOON
            .add(SIX_WEEKS)
            .add(ONE_WEEK);
    }

    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(ONE_WEEK);

        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

[{"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":"APRIL_28_NOON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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"}]

61012060405234801561001157600080fd5b5060405161119e38038061119e8339818101604052606081101561003457600080fd5b810190808051906020019092919080519060200190929190805190602001909291905050508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b8152505081608081815250508073ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1660601b815250506100ee62375f00636089868061013b60201b610b831790919060201c565b60e0818152505061012c62093a8061011a62375f00636089868061013b60201b610b831790919060201c565b61013b60201b610b831790919060201c565b60c081815250505050506101c3565b6000808284019050838110156101b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60805160a05160601c60c05160e0516101005160601c610f7361022b6000398061047d5280610b3d52508061058c528061090d5280610a8a52508061034352806106065280610ad25250806109415280610b615250806108735280610aae5250610f736000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80636283188c116100665780636283188c1461025157806372a2cb7d1461026f5780637ed0f1c11461028d578063e319a3d9146102d1578063ecd0c0c3146103055761009e565b806312611d61146100a35780631fb886bb146100c157806323cf1143146101055780633289e004146101475780635212ad3c14610233575b600080fd5b6100ab610339565b6040518082815260200191505060405180910390f35b610103600480360360208110156100d757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610341565b005b6101316004803603602081101561011b57600080fd5b8101908080359060200190929190505050610584565b6040518082815260200191505060405180910390f35b6102316004803603608081101561015d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156101ae57600080fd5b8201836020820111156101c057600080fd5b803590602001918460208302840111640100000000831117156101e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050610604565b005b61023b610a88565b6040518082815260200191505060405180910390f35b610259610aac565b6040518082815260200191505060405180910390f35b610277610ad0565b6040518082815260200191505060405180910390f35b6102b9600480360360208110156102a357600080fd5b8101908080359060200190929190505050610af4565b60405180821515815260200191505060405180910390f35b6102d9610b3b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61030d610b5f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b636089868081565b7f000000000000000000000000000000000000000000000000000000000000000042116103b9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610eac6025913960400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561042257600080fd5b505afa158015610436573d6000803e3d6000fd5b505050506040513d602081101561044c57600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d602081101561051a57600080fd5b8101908080519060200190929190505050610580576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180610ef26028913960400191505060405180910390fd5b5050565b6000806105ba7f000000000000000000000000000000000000000000000000000000000000000042610c0b90919063ffffffff16565b905060006105e662093a806105d88685610c5590919063ffffffff16565b610cdb90919063ffffffff16565b90506105fb8185610c0b90919063ffffffff16565b92505050919050565b7f000000000000000000000000000000000000000000000000000000000000000042111561067d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610f1a6024913960400191505060405180910390fd5b6000806000610100878161068d57fe5b048152602001908152602001600020549050600061010086816106ac57fe5b066001901b905060008183161461072b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f41697264726f703a20616c72656164792072656465656d65640000000000000081525060200191505060405180910390fd5b808217600080610100898161073c57fe5b048152602001908152602001600020819055506000868686604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052805190602001209050600087905060005b85518161ffff161015610870576001808316141561080d57858161ffff16815181106107d057fe5b6020026020010151836040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610856565b82868261ffff168151811061081e57fe5b602002602001015160405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b6002828161086057fe5b04915080806001019150506107a8565b507f00000000000000000000000000000000000000000000000000000000000000008214610906576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f41697264726f703a204d65726b6c6520726f6f74206d69736d6174636800000081525060200191505060405180910390fd5b60008690507f000000000000000000000000000000000000000000000000000000000000000042111561093f5761093c87610584565b90505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb89836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b505050506040513d60208110156109fa57600080fd5b8101908080519060200190929190505050610a7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41697264726f703a20546f6b656e207472616e73666572206661696c0000000081525060200191505060405180910390fd5b505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806000806101008581610b0557fe5b04815260200190815260200160002054905060006101008481610b2457fe5b066001901b90506000818316141592505050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080828401905083811015610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000610c4d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d25565b905092915050565b600080831415610c685760009050610cd5565b6000828402905082848281610c7957fe5b0414610cd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610ed16021913960400191505060405180910390fd5b809150505b92915050565b6000610d1d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610de5565b905092915050565b6000838311158290610dd2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d97578082015181840152602081019050610d7c565b50505050905090810190601f168015610dc45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290610e91576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e56578082015181840152602081019050610e3b565b50505050905090810190601f168015610e835780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610e9d57fe5b04905080915050939250505056fe41697264726f703a20446561646c696e6520686173206e6f7420796574207061737365642e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741697264726f703a20546f6b656e207472616e7366657220746f207472656173757279206661696c41697264726f703a20526564656d7074696f6e20646561646c696e65207061737365642ea2646970667358221220fa6d27230b9a261cc5e7fd8069b35ad0acaf6ad19ea4cbbb9a788bd6d291b74e64736f6c634300070300330000000000000000000000002c31b10ca416b82cec4c5e93c615ca851213d48d35e919443870701668242995e61d3c1d1c2bdcb062b80046eca1a687198ba3830000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e0

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80636283188c116100665780636283188c1461025157806372a2cb7d1461026f5780637ed0f1c11461028d578063e319a3d9146102d1578063ecd0c0c3146103055761009e565b806312611d61146100a35780631fb886bb146100c157806323cf1143146101055780633289e004146101475780635212ad3c14610233575b600080fd5b6100ab610339565b6040518082815260200191505060405180910390f35b610103600480360360208110156100d757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610341565b005b6101316004803603602081101561011b57600080fd5b8101908080359060200190929190505050610584565b6040518082815260200191505060405180910390f35b6102316004803603608081101561015d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156101ae57600080fd5b8201836020820111156101c057600080fd5b803590602001918460208302840111640100000000831117156101e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050610604565b005b61023b610a88565b6040518082815260200191505060405180910390f35b610259610aac565b6040518082815260200191505060405180910390f35b610277610ad0565b6040518082815260200191505060405180910390f35b6102b9600480360360208110156102a357600080fd5b8101908080359060200190929190505050610af4565b60405180821515815260200191505060405180910390f35b6102d9610b3b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61030d610b5f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b636089868081565b7f0000000000000000000000000000000000000000000000000000000060ca200042116103b9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610eac6025913960400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561042257600080fd5b505afa158015610436573d6000803e3d6000fd5b505050506040513d602081101561044c57600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e0836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d602081101561051a57600080fd5b8101908080519060200190929190505050610580576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180610ef26028913960400191505060405180910390fd5b5050565b6000806105ba7f0000000000000000000000000000000000000000000000000000000060c0e58042610c0b90919063ffffffff16565b905060006105e662093a806105d88685610c5590919063ffffffff16565b610cdb90919063ffffffff16565b90506105fb8185610c0b90919063ffffffff16565b92505050919050565b7f0000000000000000000000000000000000000000000000000000000060ca200042111561067d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610f1a6024913960400191505060405180910390fd5b6000806000610100878161068d57fe5b048152602001908152602001600020549050600061010086816106ac57fe5b066001901b905060008183161461072b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f41697264726f703a20616c72656164792072656465656d65640000000000000081525060200191505060405180910390fd5b808217600080610100898161073c57fe5b048152602001908152602001600020819055506000868686604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052805190602001209050600087905060005b85518161ffff161015610870576001808316141561080d57858161ffff16815181106107d057fe5b6020026020010151836040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610856565b82868261ffff168151811061081e57fe5b602002602001015160405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b6002828161086057fe5b04915080806001019150506107a8565b507f35e919443870701668242995e61d3c1d1c2bdcb062b80046eca1a687198ba3838214610906576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f41697264726f703a204d65726b6c6520726f6f74206d69736d6174636800000081525060200191505060405180910390fd5b60008690507f0000000000000000000000000000000000000000000000000000000060c0e58042111561093f5761093c87610584565b90505b7f0000000000000000000000002c31b10ca416b82cec4c5e93c615ca851213d48d73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb89836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b505050506040513d60208110156109fa57600080fd5b8101908080519060200190929190505050610a7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41697264726f703a20546f6b656e207472616e73666572206661696c0000000081525060200191505060405180910390fd5b505050505050505050565b7f0000000000000000000000000000000000000000000000000000000060c0e58081565b7f35e919443870701668242995e61d3c1d1c2bdcb062b80046eca1a687198ba38381565b7f0000000000000000000000000000000000000000000000000000000060ca200081565b6000806000806101008581610b0557fe5b04815260200190815260200160002054905060006101008481610b2457fe5b066001901b90506000818316141592505050919050565b7f0000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e081565b7f0000000000000000000000002c31b10ca416b82cec4c5e93c615ca851213d48d81565b600080828401905083811015610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000610c4d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d25565b905092915050565b600080831415610c685760009050610cd5565b6000828402905082848281610c7957fe5b0414610cd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610ed16021913960400191505060405180910390fd5b809150505b92915050565b6000610d1d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610de5565b905092915050565b6000838311158290610dd2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d97578082015181840152602081019050610d7c565b50505050905090810190601f168015610dc45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290610e91576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e56578082015181840152602081019050610e3b565b50505050905090810190601f168015610e835780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610e9d57fe5b04905080915050939250505056fe41697264726f703a20446561646c696e6520686173206e6f7420796574207061737365642e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741697264726f703a20546f6b656e207472616e7366657220746f207472656173757279206661696c41697264726f703a20526564656d7074696f6e20646561646c696e65207061737365642ea2646970667358221220fa6d27230b9a261cc5e7fd8069b35ad0acaf6ad19ea4cbbb9a788bd6d291b74e64736f6c63430007030033

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

0000000000000000000000002c31b10ca416b82cec4c5e93c615ca851213d48d35e919443870701668242995e61d3c1d1c2bdcb062b80046eca1a687198ba3830000000000000000000000000af0625b772472d18825c104b9dae35f76d3f6e0

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

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000002c31b10ca416b82cec4c5e93c615ca851213d48d
Arg [1] : 35e919443870701668242995e61d3c1d1c2bdcb062b80046eca1a687198ba383
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.