ETH Price: $2,571.54 (-16.69%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim211862822024-11-14 13:38:3581 days ago1731591515IN
0x0BADCFc9...C819A1823
0 ETH0.0019411627.78805913
Claim190792932024-01-24 21:52:23375 days ago1706133143IN
0x0BADCFc9...C819A1823
0 ETH0.0007242310.4923179
Claim185869822023-11-16 20:57:23444 days ago1700168243IN
0x0BADCFc9...C819A1823
0 ETH0.0022087431.62944283
Claim175340252023-06-22 8:37:59592 days ago1687423079IN
0x0BADCFc9...C819A1823
0 ETH0.000871312.776264
Claim166778502023-02-21 15:44:23712 days ago1676994263IN
0x0BADCFc9...C819A1823
0 ETH0.0028040640.13370254
Claim164351492023-01-18 17:21:35746 days ago1674062495IN
0x0BADCFc9...C819A1823
0 ETH0.0046528867.43211908
Claim163883702023-01-12 4:35:11753 days ago1673498111IN
0x0BADCFc9...C819A1823
0 ETH0.0004481915.67837097
Claim163883662023-01-12 4:34:23753 days ago1673498063IN
0x0BADCFc9...C819A1823
0 ETH0.0011468816.41496132
Claim162066912022-12-17 20:05:11778 days ago1671307511IN
0x0BADCFc9...C819A1823
0 ETH0.0008863112.68445674
Claim161498062022-12-09 21:23:47786 days ago1670621027IN
0x0BADCFc9...C819A1823
0 ETH0.0014497927.47908247
Claim161228432022-12-06 2:44:11790 days ago1670294651IN
0x0BADCFc9...C819A1823
0 ETH0.0003405411.9124834
Claim161228432022-12-06 2:44:11790 days ago1670294651IN
0x0BADCFc9...C819A1823
0 ETH0.000784711.23125738
Claim160947682022-12-02 4:35:11794 days ago1669955711IN
0x0BADCFc9...C819A1823
0 ETH0.000655629.73204029
Claim160640632022-11-27 21:40:11798 days ago1669585211IN
0x0BADCFc9...C819A1823
0 ETH0.000479549.08847388
Claim160433472022-11-25 0:13:23801 days ago1669335203IN
0x0BADCFc9...C819A1823
0 ETH0.0006197911.7437891
Claim160366002022-11-24 1:37:23802 days ago1669253843IN
0x0BADCFc9...C819A1823
0 ETH0.000792811.6249414
Claim160181372022-11-21 11:37:47805 days ago1669030667IN
0x0BADCFc9...C819A1823
0 ETH0.000630679.02698546
Claim159927162022-11-17 22:27:11808 days ago1668724031IN
0x0BADCFc9...C819A1823
0 ETH0.0008513512.18766279
Claim159783002022-11-15 22:05:47810 days ago1668549947IN
0x0BADCFc9...C819A1823
0 ETH0.0008879912.70813565
Claim159773102022-11-15 18:46:23810 days ago1668537983IN
0x0BADCFc9...C819A1823
0 ETH0.0021635430.97677687
Claim159765962022-11-15 16:21:23810 days ago1668529283IN
0x0BADCFc9...C819A1823
0 ETH0.0014877221.2976832
Claim159733432022-11-15 5:27:35811 days ago1668490055IN
0x0BADCFc9...C819A1823
0 ETH0.0009543713.65579783
Claim159720142022-11-15 0:59:59811 days ago1668473999IN
0x0BADCFc9...C819A1823
0 ETH0.0005386218.84149973
Claim159720142022-11-15 0:59:59811 days ago1668473999IN
0x0BADCFc9...C819A1823
0 ETH0.0012576218
Claim159716332022-11-14 23:42:35811 days ago1668469355IN
0x0BADCFc9...C819A1823
0 ETH0.0028145798.45631599
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xbEB4031c...7DFf26A65
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MerkleDistributor

Compiler Version
v0.6.11+commit.5ef660b1

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/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_) public {
        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.5.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

pragma solidity ^0.6.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 4 of 4 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
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) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

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

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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80632e7ba6ef146100515780632eb4a7ab146100fe5780639e34070f1461011c578063fc0c546a14610162575b600080fd5b6100fc6004803603608081101561006757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156100b857600080fd5b8201836020820111156100ca57600080fd5b803590602001918460208302840111640100000000831117156100ec57600080fd5b90919293919293905050506101ac565b005b6101066104f1565b6040518082815260200191505060405180910390f35b6101486004803603602081101561013257600080fd5b8101908080359060200190929190505050610515565b604051808215151515815260200191505060405180910390f35b61016a610566565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101b585610515565b1561020b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806106976028913960400191505060405180910390fd5b6000858585604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140182815260200193505050506040516020818303038152906040528051906020012090506102e1838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f98357f62b5fe6892a23c2f3da065e728870ea1e5de4a7b6999e61f53a45a79fc8361058a565b610336576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806106bf6021913960400191505060405180910390fd5b61033f86610642565b7f000000000000000000000000fcfcb729e45f7037362ba61f6dfbcdaefacfd55e73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156103e657600080fd5b505af11580156103fa573d6000803e3d6000fd5b505050506040513d602081101561041057600080fd5b8101908080519060200190929190505050610476576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806106e06023913960400191505060405180910390fd5b7f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026868686604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1505050505050565b7f98357f62b5fe6892a23c2f3da065e728870ea1e5de4a7b6999e61f53a45a79fc81565b600080610100838161052357fe5b0490506000610100848161053357fe5b06905060008060008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b7f000000000000000000000000fcfcb729e45f7037362ba61f6dfbcdaefacfd55e81565b60008082905060008090505b85518110156106345760008682815181106105ad57fe5b602002602001015190508083116105f45782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610626565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b508080600101915050610596565b508381149150509392505050565b6000610100828161064f57fe5b0490506000610100838161065f57fe5b069050806001901b60008084815260200190815260200160002054176000808481526020019081526020016000208190555050505056fe4d65726b6c654469737472696275746f723a2044726f7020616c726561647920636c61696d65642e4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f662e4d65726b6c654469737472696275746f723a205472616e73666572206661696c65642ea264697066735822122019ca81d7c3793b4b6c3fc75c08b772ba50c998a822f03453cdf92844d856a7bf64736f6c634300060b0033

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.