ETH Price: $2,274.60 (-4.59%)

Contract

0x167829543510c13c792BD8F6a414f74D51E3A6d4
Transaction Hash
Method
Block
From
To
Claim1070482442023-07-18 15:47:45426 days ago1689695265IN
0x16782954...D51E3A6d4
0 ETH0.0002091053640.00000006
Claim1068705392023-07-14 13:04:15430 days ago1689339855IN
0x16782954...D51E3A6d4
0 ETH0.0001772915530.00028625
Claim1064854562023-07-05 15:08:09439 days ago1688569689IN
0x16782954...D51E3A6d4
0 ETH0.0002842677660.00000007
Claim1059548572023-06-23 8:21:31451 days ago1687508491IN
0x16782954...D51E3A6d4
0 ETH0.0000751209310.00000261
Claim1059548522023-06-23 8:21:21451 days ago1687508481IN
0x16782954...D51E3A6d4
0 ETH0.0000766791020.00000269
Claim1058965382023-06-21 23:57:33452 days ago1687391853IN
0x16782954...D51E3A6d4
0 ETH0.0000821680790.00000009
Claim1056977972023-06-17 9:32:51457 days ago1686994371IN
0x16782954...D51E3A6d4
0 ETH0.0000911081570.00000176
Claim1056292732023-06-15 19:28:43458 days ago1686857323IN
0x16782954...D51E3A6d4
0 ETH0.0001031917820.0002
Claim1055833782023-06-14 17:58:53459 days ago1686765533IN
0x16782954...D51E3A6d4
0 ETH0.000130235730.00000845
Claim1054595742023-06-11 21:12:05462 days ago1686517925IN
0x16782954...D51E3A6d4
0 ETH0.0001617451040.0001
Claim1030985552023-05-31 3:13:02474 days ago1685502782IN
0x16782954...D51E3A6d4
0 ETH0.000292380.001
Claim1014338912023-05-25 14:56:12480 days ago1685026572IN
0x16782954...D51E3A6d4
0 ETH0.000459032970.001
Claim1008380802023-05-23 18:24:13481 days ago1684866253IN
0x16782954...D51E3A6d4
0 ETH0.000814848140.001
Claim1001824602023-05-21 10:45:36484 days ago1684665936IN
0x16782954...D51E3A6d4
0 ETH0.0002578836580.001
Claim997282842023-05-19 10:56:21486 days ago1684493781IN
0x16782954...D51E3A6d4
0 ETH0.0004066807420.001
Claim982519852023-05-14 16:19:26491 days ago1684081166IN
0x16782954...D51E3A6d4
0 ETH0.0005764378050.00104815
Claim972713262023-05-10 16:02:37495 days ago1683734557IN
0x16782954...D51E3A6d4
0 ETH0.0022116360350.001
Claim968222212023-05-07 20:29:37497 days ago1683491377IN
0x16782954...D51E3A6d4
0 ETH0.00120020280.00100597
Claim968130432023-05-07 17:56:55497 days ago1683482215IN
0x16782954...D51E3A6d4
0 ETH0.0013146494140.0011
Claim956271792023-05-01 4:01:13504 days ago1682913673IN
0x16782954...D51E3A6d4
0 ETH0.0006708574870.001
Claim951441532023-04-29 3:34:59506 days ago1682739299IN
0x16782954...D51E3A6d4
0 ETH0.0003232828720.001
Claim948191952023-04-27 18:15:42507 days ago1682619342IN
0x16782954...D51E3A6d4
0 ETH0.0003630195580.0011
Claim945113702023-04-26 18:21:21508 days ago1682533281IN
0x16782954...D51E3A6d4
0 ETH0.0005205756450.001
Claim941042312023-04-25 11:13:03510 days ago1682421183IN
0x16782954...D51E3A6d4
0 ETH0.000400758990.0012
Claim934501882023-04-23 7:50:13512 days ago1682236213IN
0x16782954...D51E3A6d4
0 ETH0.0003665556680.00125
View all transactions

Latest 9 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
1070482442023-07-18 15:47:45426 days ago1689695265
0x16782954...D51E3A6d4
0 ETH
1068705392023-07-14 13:04:15430 days ago1689339855
0x16782954...D51E3A6d4
0 ETH
1064854562023-07-05 15:08:09439 days ago1688569689
0x16782954...D51E3A6d4
0 ETH
1059548522023-06-23 8:21:21451 days ago1687508481
0x16782954...D51E3A6d4
0 ETH
1058965382023-06-21 23:57:33452 days ago1687391853
0x16782954...D51E3A6d4
0 ETH
1056977972023-06-17 9:32:51457 days ago1686994371
0x16782954...D51E3A6d4
0 ETH
1056292732023-06-15 19:28:43458 days ago1686857323
0x16782954...D51E3A6d4
0 ETH
1055833782023-06-14 17:58:53459 days ago1686765533
0x16782954...D51E3A6d4
0 ETH
1054595742023-06-11 21:12:05462 days ago1686517925
0x16782954...D51E3A6d4
0 ETH

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MerkleDistributor

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : MerkleDistributor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./interfaces/IMerkleDistributor.sol";

contract MerkleDistributor is IMerkleDistributor {
    address public immutable override token;
    bytes32 public immutable override merkleRoot;

    // This is a packed array of booleans.
    mapping(uint256 => uint256) private claimedBitMap;

    constructor(address token_, bytes32 merkleRoot_) {
        token = token_;
        merkleRoot = merkleRoot_;
    }

    function isClaimed(uint256 index) public view override returns (bool) {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        uint256 claimedWord = claimedBitMap[claimedWordIndex];
        uint256 mask = (1 << claimedBitIndex);
        return claimedWord & mask == mask;
    }

    function _setClaimed(uint256 index) private {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        claimedBitMap[claimedWordIndex] = claimedBitMap[claimedWordIndex] | (1 << claimedBitIndex);
    }

    function claim(uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) external override {
        require(!isClaimed(index), 'MerkleDistributor: Drop already claimed.');

        // Verify the merkle proof.
        bytes32 node = keccak256(abi.encodePacked(index, account, amount));
        require(MerkleProof.verify(merkleProof, merkleRoot, node), 'MerkleDistributor: Invalid proof.');

        // Mark it claimed and send the token.
        _setClaimed(index);
        require(IERC20(token).transfer(account, amount), 'MerkleDistributor: Transfer failed.');

        emit Claimed(index, account, amount);
    }
}

File 2 of 4 : IMerkleDistributor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

// Allows anyone to claim a token if they exist in a merkle root.
interface IMerkleDistributor {
    // Returns the address of the token distributed by this contract.
    function token() external view returns (address);
    // Returns the merkle root of the merkle tree containing account balances available to claim.
    function merkleRoot() external view returns (bytes32);
    // Returns true if the index has been marked claimed.
    function isClaimed(uint256 index) external view returns (bool);
    // Claim the given amount of the token to the given address. Reverts if the inputs are invalid.
    function claim(uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) external;

    // This event is triggered whenever a call to #claim succeeds.
    event Claimed(uint256 index, address account, uint256 amount);
}

File 3 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

File 4 of 4 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/openzeppelin-contracts/lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b5060405161070938038061070983398101604081905261002f91610045565b6001600160a01b0390911660805260a05261007f565b6000806040838503121561005857600080fd5b82516001600160a01b038116811461006f57600080fd5b6020939093015192949293505050565b60805160a0516106596100b060003960008181606b01526101ee01526000818160c8015261029e01526106596000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632e7ba6ef146100515780632eb4a7ab146100665780639e34070f146100a0578063fc0c546a146100c3575b600080fd5b61006461005f3660046104c8565b610102565b005b61008d7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6100b36100ae36600461056d565b6103b4565b6040519015158152602001610097565b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610097565b61010b856103b4565b1561016e5760405162461bcd60e51b815260206004820152602860248201527f4d65726b6c654469737472696275746f723a2044726f7020616c72656164792060448201526731b630b4b6b2b21760c11b60648201526084015b60405180910390fd5b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506102198383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f000000000000000000000000000000000000000000000000000000000000000092508591506103f59050565b61026f5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b6064820152608401610165565b6102788661040b565b60405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156102e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030b9190610586565b6103635760405162461bcd60e51b815260206004820152602360248201527f4d65726b6c654469737472696275746f723a205472616e73666572206661696c60448201526232b21760e91b6064820152608401610165565b604080518781526001600160a01b03871660208201529081018590527f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060600160405180910390a1505050505050565b6000806103c3610100846105be565b905060006103d3610100856105d2565b60009283526020839052604090922054600190921b9182169091149392505050565b6000826104028584610449565b14949350505050565b6000610419610100836105be565b90506000610429610100846105d2565b6000928352602083905260409092208054600190931b9092179091555050565b600081815b845181101561048e5761047a8286838151811061046d5761046d6105e6565b6020026020010151610496565b915080610486816105fc565b91505061044e565b509392505050565b60008183106104b25760008281526020849052604090206104c1565b60008381526020839052604090205b9392505050565b6000806000806000608086880312156104e057600080fd5b8535945060208601356001600160a01b03811681146104fe57600080fd5b935060408601359250606086013567ffffffffffffffff8082111561052257600080fd5b818801915088601f83011261053657600080fd5b81358181111561054557600080fd5b8960208260051b850101111561055a57600080fd5b9699959850939650602001949392505050565b60006020828403121561057f57600080fd5b5035919050565b60006020828403121561059857600080fd5b815180151581146104c157600080fd5b634e487b7160e01b600052601260045260246000fd5b6000826105cd576105cd6105a8565b500490565b6000826105e1576105e16105a8565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001820161061c57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220e1308d9cf958694081a16b061848c5e86e438ceec1c7baadc6d5039fdbca5cd464736f6c6343000810003300000000000000000000000042000000000000000000000000000000000000425fbd67061b8dcccb46fe55af1fdd822642ff7764d1853007647f07f6d9c9db8a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80632e7ba6ef146100515780632eb4a7ab146100665780639e34070f146100a0578063fc0c546a146100c3575b600080fd5b61006461005f3660046104c8565b610102565b005b61008d7f5fbd67061b8dcccb46fe55af1fdd822642ff7764d1853007647f07f6d9c9db8a81565b6040519081526020015b60405180910390f35b6100b36100ae36600461056d565b6103b4565b6040519015158152602001610097565b6100ea7f000000000000000000000000420000000000000000000000000000000000004281565b6040516001600160a01b039091168152602001610097565b61010b856103b4565b1561016e5760405162461bcd60e51b815260206004820152602860248201527f4d65726b6c654469737472696275746f723a2044726f7020616c72656164792060448201526731b630b4b6b2b21760c11b60648201526084015b60405180910390fd5b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506102198383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f5fbd67061b8dcccb46fe55af1fdd822642ff7764d1853007647f07f6d9c9db8a92508591506103f59050565b61026f5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b6064820152608401610165565b6102788661040b565b60405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f0000000000000000000000004200000000000000000000000000000000000042169063a9059cbb906044016020604051808303816000875af11580156102e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030b9190610586565b6103635760405162461bcd60e51b815260206004820152602360248201527f4d65726b6c654469737472696275746f723a205472616e73666572206661696c60448201526232b21760e91b6064820152608401610165565b604080518781526001600160a01b03871660208201529081018590527f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060600160405180910390a1505050505050565b6000806103c3610100846105be565b905060006103d3610100856105d2565b60009283526020839052604090922054600190921b9182169091149392505050565b6000826104028584610449565b14949350505050565b6000610419610100836105be565b90506000610429610100846105d2565b6000928352602083905260409092208054600190931b9092179091555050565b600081815b845181101561048e5761047a8286838151811061046d5761046d6105e6565b6020026020010151610496565b915080610486816105fc565b91505061044e565b509392505050565b60008183106104b25760008281526020849052604090206104c1565b60008381526020839052604090205b9392505050565b6000806000806000608086880312156104e057600080fd5b8535945060208601356001600160a01b03811681146104fe57600080fd5b935060408601359250606086013567ffffffffffffffff8082111561052257600080fd5b818801915088601f83011261053657600080fd5b81358181111561054557600080fd5b8960208260051b850101111561055a57600080fd5b9699959850939650602001949392505050565b60006020828403121561057f57600080fd5b5035919050565b60006020828403121561059857600080fd5b815180151581146104c157600080fd5b634e487b7160e01b600052601260045260246000fd5b6000826105cd576105cd6105a8565b500490565b6000826105e1576105e16105a8565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001820161061c57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220e1308d9cf958694081a16b061848c5e86e438ceec1c7baadc6d5039fdbca5cd464736f6c63430008100033

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

00000000000000000000000042000000000000000000000000000000000000425fbd67061b8dcccb46fe55af1fdd822642ff7764d1853007647f07f6d9c9db8a

-----Decoded View---------------
Arg [0] : token_ (address): 0x4200000000000000000000000000000000000042
Arg [1] : merkleRoot_ (bytes32): 0x5fbd67061b8dcccb46fe55af1fdd822642ff7764d1853007647f07f6d9c9db8a

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000042
Arg [1] : 5fbd67061b8dcccb46fe55af1fdd822642ff7764d1853007647f07f6d9c9db8a


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
[ Download: CSV Export  ]
[ 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.