ETH Price: $2,378.53 (+0.43%)

Contract

0xD49c1381f54E87e0E69735C103429444a400e575
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim208898952024-10-04 4:54:235 hrs ago1728017663IN
0xD49c1381...4a400e575
0 ETH0.00028093.5
Claim208898752024-10-04 4:50:235 hrs ago1728017423IN
0xD49c1381...4a400e575
0 ETH0.000221033.5
Claim208898472024-10-04 4:44:476 hrs ago1728017087IN
0xD49c1381...4a400e575
0 ETH0.000205353.3
Claim202472362024-07-06 11:42:2389 days ago1720266143IN
0xD49c1381...4a400e575
0 ETH0.000168142.11856537
Claim187760182023-12-13 8:19:35296 days ago1702455575IN
0xD49c1381...4a400e575
0 ETH0.0024461430.4648761
Claim181714262023-09-19 17:24:47380 days ago1695144287IN
0xD49c1381...4a400e575
0 ETH0.0010107816
Claim180663802023-09-04 23:23:59395 days ago1693869839IN
0xD49c1381...4a400e575
0 ETH0.0009492611.82676702
Claim179535212023-08-20 4:16:47411 days ago1692505007IN
0xD49c1381...4a400e575
0 ETH0.0007094711.23620817
Claim178650002023-08-07 19:00:23423 days ago1691434823IN
0xD49c1381...4a400e575
0 ETH0.0022388527.88946849
Claim171363162023-04-27 8:24:35526 days ago1682583875IN
0xD49c1381...4a400e575
0 ETH0.002561831.92837643
Claim170639822023-04-17 3:55:35536 days ago1681703735IN
0xD49c1381...4a400e575
0 ETH0.0019228223.97002469
Claim170639732023-04-17 3:53:47536 days ago1681703627IN
0xD49c1381...4a400e575
0 ETH0.0019598424.42236653
Claim170639602023-04-17 3:51:11536 days ago1681703471IN
0xD49c1381...4a400e575
0 ETH0.0019567224.6575056
Claim170639532023-04-17 3:49:47536 days ago1681703387IN
0xD49c1381...4a400e575
0 ETH0.0020531925.59141103
Claim170639432023-04-17 3:47:47536 days ago1681703267IN
0xD49c1381...4a400e575
0 ETH0.0021587226.90404934
Claim170639262023-04-17 3:43:59536 days ago1681703039IN
0xD49c1381...4a400e575
0 ETH0.0019216923.95291006
Claim170639192023-04-17 3:42:35536 days ago1681702955IN
0xD49c1381...4a400e575
0 ETH0.0022836828.77849937
Claim170639152023-04-17 3:41:47536 days ago1681702907IN
0xD49c1381...4a400e575
0 ETH0.0018870123.51365332
Claim170638982023-04-17 3:38:23536 days ago1681702703IN
0xD49c1381...4a400e575
0 ETH0.0020145225.114441
Claim170638942023-04-17 3:37:35536 days ago1681702655IN
0xD49c1381...4a400e575
0 ETH0.0020823126.24014063
Claim170127732023-04-09 19:23:47543 days ago1681068227IN
0xD49c1381...4a400e575
0 ETH0.0013570521.48192673
Claim169543372023-04-01 12:36:47551 days ago1680352607IN
0xD49c1381...4a400e575
0 ETH0.0011121217.6131134
Claim169532542023-04-01 8:56:47552 days ago1680339407IN
0xD49c1381...4a400e575
0 ETH0.0013408321.23923283
Claim169401582023-03-30 12:47:59553 days ago1680180479IN
0xD49c1381...4a400e575
0 ETH0.0019672731.15742138
Claim168754772023-03-21 10:39:35563 days ago1679395175IN
0xD49c1381...4a400e575
0 ETH0.0007657212.30153326
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:
MerkleDistributor

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-06-24
*/

// File: contracts/MerkleDistributor.sol

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: contracts/MerkleProof.sol

pragma solidity =0.8.4;

/**
 * @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;
    }
}
// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^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: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/MerkleDistributor.sol


pragma solidity =0.8.4;


//import "./MerkleProof.sol";



contract MerkleDistributor is IMerkleDistributor {
    address public immutable override token;
    bytes32 public immutable override merkleRoot;
    using SafeERC20 for IERC20;


    // 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.');
        SafeERC20.safeTransfer(IERC20(token), account, amount);

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

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

60c060405234801561001057600080fd5b5060405161097b38038061097b83398101604081905261002f9161004a565b60609190911b6001600160601b03191660805260a052610082565b6000806040838503121561005c578182fd5b82516001600160a01b0381168114610072578283fd5b6020939093015192949293505050565b60805160601c60a0516108c56100b660003960008181606b01526101ee01526000818160c8015261027d01526108c56000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632e7ba6ef146100515780632eb4a7ab146100665780639e34070f146100a0578063fc0c546a146100c3575b600080fd5b61006461005f36600461070c565b610102565b005b61008d7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6100b36100ae3660046106f4565b6102f4565b6040519015158152602001610097565b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610097565b61010b856102f4565b1561016e5760405162461bcd60e51b815260206004820152602860248201527f4d65726b6c654469737472696275746f723a2044726f7020616c72656164792060448201526731b630b4b6b2b21760c11b60648201526084015b60405180910390fd5b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506102198383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f000000000000000000000000000000000000000000000000000000000000000092508591506103359050565b61026f5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b6064820152608401610165565b610278866103f5565b6102a37f00000000000000000000000000000000000000000000000000000000000000008686610433565b604080518781526001600160a01b03871660208201529081018590527f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060600160405180910390a1505050505050565b600080610303610100846107fa565b9050600061031361010085610865565b60009283526020839052604090922054600190921b9182169091149392505050565b600081815b85518110156103e857600086828151811061036557634e487b7160e01b600052603260045260246000fd5b60200260200101519050808310156103a85760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506103d5565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806103e08161083e565b91505061033a565b50831490505b9392505050565b6000610403610100836107fa565b9050600061041361010084610865565b6000928352602083905260409092208054600190931b9092179091555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261048590849061048a565b505050565b60006104df826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661055c9092919063ffffffff16565b80519091501561048557808060200190518101906104fd91906106d4565b6104855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610165565b606061056b8484600085610573565b949350505050565b6060824710156105d45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610165565b843b6106225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610165565b600080866001600160a01b0316858760405161063e91906107ab565b60006040518083038185875af1925050503d806000811461067b576040519150601f19603f3d011682016040523d82523d6000602084013e610680565b606091505b509150915061069082828661069b565b979650505050505050565b606083156106aa5750816103ee565b8251156106ba5782518084602001fd5b8160405162461bcd60e51b815260040161016591906107c7565b6000602082840312156106e5578081fd5b815180151581146103ee578182fd5b600060208284031215610705578081fd5b5035919050565b600080600080600060808688031215610723578081fd5b8535945060208601356001600160a01b0381168114610740578182fd5b935060408601359250606086013567ffffffffffffffff80821115610763578283fd5b818801915088601f830112610776578283fd5b813581811115610784578384fd5b8960208260051b8501011115610798578384fd5b9699959850939650602001949392505050565b600082516107bd81846020870161080e565b9190910192915050565b60208152600082518060208401526107e681604085016020870161080e565b601f01601f19169190910160400192915050565b60008261080957610809610879565b500490565b60005b83811015610829578181015183820152602001610811565b83811115610838576000848401525b50505050565b600060001982141561085e57634e487b7160e01b81526011600452602481fd5b5060010190565b60008261087457610874610879565b500690565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220adf0c9d15ac347fb5e2e21eb716005087afad3f8c34eb3adf7301d8e1b81a6a264736f6c63430008040033000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccfa73d882e5b38b30b5e55e44df1d284846648255cbfef50557a6b2fdcf212d86c

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80632e7ba6ef146100515780632eb4a7ab146100665780639e34070f146100a0578063fc0c546a146100c3575b600080fd5b61006461005f36600461070c565b610102565b005b61008d7fa73d882e5b38b30b5e55e44df1d284846648255cbfef50557a6b2fdcf212d86c81565b6040519081526020015b60405180910390f35b6100b36100ae3660046106f4565b6102f4565b6040519015158152602001610097565b6100ea7f000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccf81565b6040516001600160a01b039091168152602001610097565b61010b856102f4565b1561016e5760405162461bcd60e51b815260206004820152602860248201527f4d65726b6c654469737472696275746f723a2044726f7020616c72656164792060448201526731b630b4b6b2b21760c11b60648201526084015b60405180910390fd5b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506102198383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507fa73d882e5b38b30b5e55e44df1d284846648255cbfef50557a6b2fdcf212d86c92508591506103359050565b61026f5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b6064820152608401610165565b610278866103f5565b6102a37f000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccf8686610433565b604080518781526001600160a01b03871660208201529081018590527f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060600160405180910390a1505050505050565b600080610303610100846107fa565b9050600061031361010085610865565b60009283526020839052604090922054600190921b9182169091149392505050565b600081815b85518110156103e857600086828151811061036557634e487b7160e01b600052603260045260246000fd5b60200260200101519050808310156103a85760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506103d5565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806103e08161083e565b91505061033a565b50831490505b9392505050565b6000610403610100836107fa565b9050600061041361010084610865565b6000928352602083905260409092208054600190931b9092179091555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261048590849061048a565b505050565b60006104df826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661055c9092919063ffffffff16565b80519091501561048557808060200190518101906104fd91906106d4565b6104855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610165565b606061056b8484600085610573565b949350505050565b6060824710156105d45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610165565b843b6106225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610165565b600080866001600160a01b0316858760405161063e91906107ab565b60006040518083038185875af1925050503d806000811461067b576040519150601f19603f3d011682016040523d82523d6000602084013e610680565b606091505b509150915061069082828661069b565b979650505050505050565b606083156106aa5750816103ee565b8251156106ba5782518084602001fd5b8160405162461bcd60e51b815260040161016591906107c7565b6000602082840312156106e5578081fd5b815180151581146103ee578182fd5b600060208284031215610705578081fd5b5035919050565b600080600080600060808688031215610723578081fd5b8535945060208601356001600160a01b0381168114610740578182fd5b935060408601359250606086013567ffffffffffffffff80821115610763578283fd5b818801915088601f830112610776578283fd5b813581811115610784578384fd5b8960208260051b8501011115610798578384fd5b9699959850939650602001949392505050565b600082516107bd81846020870161080e565b9190910192915050565b60208152600082518060208401526107e681604085016020870161080e565b601f01601f19169190910160400192915050565b60008261080957610809610879565b500490565b60005b83811015610829578181015183820152602001610811565b83811115610838576000848401525b50505050565b600060001982141561085e57634e487b7160e01b81526011600452602481fd5b5060010190565b60008261087457610874610879565b500690565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220adf0c9d15ac347fb5e2e21eb716005087afad3f8c34eb3adf7301d8e1b81a6a264736f6c63430008040033

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

000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccfa73d882e5b38b30b5e55e44df1d284846648255cbfef50557a6b2fdcf212d86c

-----Decoded View---------------
Arg [0] : token_ (address): 0xA5B947687163FE88C3e6af5b17Ae69896F4abccf
Arg [1] : merkleRoot_ (bytes32): 0xa73d882e5b38b30b5e55e44df1d284846648255cbfef50557a6b2fdcf212d86c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccf
Arg [1] : a73d882e5b38b30b5e55e44df1d284846648255cbfef50557a6b2fdcf212d86c


Deployed Bytecode Sourcemap

17402:1741:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18423:717;;;;;;:::i;:::-;;:::i;:::-;;17504:44;;;;;;;;3222:25:1;;;3210:2;3195:18;17504:44:0;;;;;;;;17826:331;;;;;;:::i;:::-;;:::i;:::-;;;3049:14:1;;3042:22;3024:41;;3012:2;2997:18;17826:331:0;2979:92:1;17458:39:0;;;;;;;;-1:-1:-1;;;;;2561:32:1;;;2543:51;;2531:2;2516:18;17458:39:0;2498:102:1;18423:717:0;18556:16;18566:5;18556:9;:16::i;:::-;18555:17;18547:70;;;;-1:-1:-1;;;18547:70:0;;3848:2:1;18547:70:0;;;3830:21:1;3887:2;3867:18;;;3860:30;3926:34;3906:18;;;3899:62;-1:-1:-1;;;3977:18:1;;;3970:38;4025:19;;18547:70:0;;;;;;;;;18692:40;;;;;;2218:19:1;;;-1:-1:-1;;2275:2:1;2271:15;;;2267:53;2253:12;;;2246:75;;;;2337:12;;;2330:28;;;18667:12:0;;2374::1;;18692:40:0;;;;;;;;;;;;18682:51;;;;;;18667:66;;18752:49;18771:11;;18752:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18784:10:0;;-1:-1:-1;18796:4:0;;-1:-1:-1;18752:18:0;;-1:-1:-1;18752:49:0:i;:::-;18744:95;;;;-1:-1:-1;;;18744:95:0;;4664:2:1;18744:95:0;;;4646:21:1;4703:2;4683:18;;;4676:30;4742:34;4722:18;;;4715:62;-1:-1:-1;;;4793:18:1;;;4786:31;4834:19;;18744:95:0;4636:223:1;18744:95:0;18900:18;18912:5;18900:11;:18::i;:::-;19029:54;19059:5;19067:7;19076:6;19029:22;:54::i;:::-;19101:31;;;5835:25:1;;;-1:-1:-1;;;;;5896:32:1;;5891:2;5876:18;;5869:60;5945:18;;;5938:34;;;19101:31:0;;5823:2:1;5808:18;19101:31:0;;;;;;;18423:717;;;;;;:::o;17826:331::-;17890:4;;17934:11;17942:3;17934:5;:11;:::i;:::-;17907:38;-1:-1:-1;17956:23:0;17982:11;17990:3;17982:5;:11;:::i;:::-;18004:19;18026:31;;;;;;;;;;;;18084:1;:20;;;18123:18;;;:26;;;;17826:331;-1:-1:-1;;;17826:331:0:o;1450:795::-;1541:4;1581;1541;1598:524;1622:5;:12;1618:1;:16;1598:524;;;1656:20;1679:5;1685:1;1679:8;;;;;;-1:-1:-1;;;1679:8:0;;;;;;;;;;;;;;;1656:31;;1723:12;1708;:27;1704:407;;;1860:44;;;;;;1659:19:1;;;1694:12;;;1687:28;;;1731:12;;1860:44:0;;;;;;;;;;;;1850:55;;;;;;1835:70;;1704:407;;;2050:44;;;;;;1659:19:1;;;1694:12;;;1687:28;;;1731:12;;2050:44:0;;;;;;;;;;;;2040:55;;;;;;2025:70;;1704:407;-1:-1:-1;1636:3:0;;;;:::i;:::-;;;;1598:524;;;-1:-1:-1;2217:20:0;;;-1:-1:-1;1450:795:0;;;;;;:::o;18165:250::-;18220:24;18247:11;18255:3;18247:5;:11;:::i;:::-;18220:38;-1:-1:-1;18269:23:0;18295:11;18303:3;18295:5;:11;:::i;:::-;18351:13;:31;;;;;;;;;;;;;18386:1;:20;;;18351:56;;;18317:90;;;-1:-1:-1;;18165:250:0:o;13994:211::-;14138:58;;;-1:-1:-1;;;;;2797:32:1;;14138:58:0;;;2779:51:1;2846:18;;;;2839:34;;;14138:58:0;;;;;;;;;;2752:18:1;;;;14138:58:0;;;;;;;;-1:-1:-1;;;;;14138:58:0;-1:-1:-1;;;14138:58:0;;;14111:86;;14131:5;;14111:19;:86::i;:::-;13994:211;;;:::o;16567:716::-;16991:23;17017:69;17045:4;17017:69;;;;;;;;;;;;;;;;;17025:5;-1:-1:-1;;;;;17017:27:0;;;:69;;;;;:::i;:::-;17101:17;;16991:95;;-1:-1:-1;17101:21:0;17097:179;;17198:10;17187:30;;;;;;;;;;;;:::i;:::-;17179:85;;;;-1:-1:-1;;;17179:85:0;;5424:2:1;17179:85:0;;;5406:21:1;5463:2;5443:18;;;5436:30;5502:34;5482:18;;;5475:62;-1:-1:-1;;;5553:18:1;;;5546:40;5603:19;;17179:85:0;5396:232:1;5876:229:0;6013:12;6045:52;6067:6;6075:4;6081:1;6084:12;6045:21;:52::i;:::-;6038:59;5876:229;-1:-1:-1;;;;5876:229:0:o;6996:510::-;7166:12;7224:5;7199:21;:30;;7191:81;;;;-1:-1:-1;;;7191:81:0;;4257:2:1;7191:81:0;;;4239:21:1;4296:2;4276:18;;;4269:30;4335:34;4315:18;;;4308:62;-1:-1:-1;;;4386:18:1;;;4379:36;4432:19;;7191:81:0;4229:228:1;7191:81:0;3393:20;;7283:60;;;;-1:-1:-1;;;7283:60:0;;5066:2:1;7283:60:0;;;5048:21:1;5105:2;5085:18;;;5078:30;5144:31;5124:18;;;5117:59;5193:18;;7283:60:0;5038:179:1;7283:60:0;7357:12;7371:23;7398:6;-1:-1:-1;;;;;7398:11:0;7417:5;7424:4;7398:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7356:73;;;;7447:51;7464:7;7473:10;7485:12;7447:16;:51::i;:::-;7440:58;6996:510;-1:-1:-1;;;;;;;6996:510:0:o;9682:712::-;9832:12;9861:7;9857:530;;;-1:-1:-1;9892:10:0;9885:17;;9857:530;10006:17;;:21;10002:374;;10204:10;10198:17;10265:15;10252:10;10248:2;10244:19;10237:44;10152:148;10347:12;10340:20;;-1:-1:-1;;;10340:20:0;;;;;;;;:::i;14:297:1:-;81:6;134:2;122:9;113:7;109:23;105:32;102:2;;;155:6;147;140:22;102:2;192:9;186:16;245:5;238:13;231:21;224:5;221:32;211:2;;272:6;264;257:22;316:190;375:6;428:2;416:9;407:7;403:23;399:32;396:2;;;449:6;441;434:22;396:2;-1:-1:-1;477:23:1;;386:120;-1:-1:-1;386:120:1:o;511:986::-;624:6;632;640;648;656;709:3;697:9;688:7;684:23;680:33;677:2;;;731:6;723;716:22;677:2;759:23;;;-1:-1:-1;832:2:1;817:18;;804:32;-1:-1:-1;;;;;865:31:1;;855:42;;845:2;;916:6;908;901:22;845:2;944:5;-1:-1:-1;996:2:1;981:18;;968:32;;-1:-1:-1;1051:2:1;1036:18;;1023:32;1074:18;1104:14;;;1101:2;;;1136:6;1128;1121:22;1101:2;1179:6;1168:9;1164:22;1154:32;;1224:7;1217:4;1213:2;1209:13;1205:27;1195:2;;1251:6;1243;1236:22;1195:2;1296;1283:16;1322:2;1314:6;1311:14;1308:2;;;1343:6;1335;1328:22;1308:2;1401:7;1396:2;1386:6;1383:1;1379:14;1375:2;1371:23;1367:32;1364:45;1361:2;;;1427:6;1419;1412:22;1361:2;667:830;;;;-1:-1:-1;667:830:1;;-1:-1:-1;1463:2:1;1455:11;;1485:6;667:830;-1:-1:-1;;;667:830:1:o;1754:274::-;1883:3;1921:6;1915:13;1937:53;1983:6;1978:3;1971:4;1963:6;1959:17;1937:53;:::i;:::-;2006:16;;;;;1891:137;-1:-1:-1;;1891:137:1:o;3258:383::-;3407:2;3396:9;3389:21;3370:4;3439:6;3433:13;3482:6;3477:2;3466:9;3462:18;3455:34;3498:66;3557:6;3552:2;3541:9;3537:18;3532:2;3524:6;3520:15;3498:66;:::i;:::-;3625:2;3604:15;-1:-1:-1;;3600:29:1;3585:45;;;;3632:2;3581:54;;3379:262;-1:-1:-1;;3379:262:1:o;5983:120::-;6023:1;6049;6039:2;;6054:18;;:::i;:::-;-1:-1:-1;6088:9:1;;6029:74::o;6108:258::-;6180:1;6190:113;6204:6;6201:1;6198:13;6190:113;;;6280:11;;;6274:18;6261:11;;;6254:39;6226:2;6219:10;6190:113;;;6321:6;6318:1;6315:13;6312:2;;;6356:1;6347:6;6342:3;6338:16;6331:27;6312:2;;6161:205;;;:::o;6371:236::-;6410:3;-1:-1:-1;;6431:17:1;;6428:2;;;-1:-1:-1;;;6471:33:1;;6527:4;6524:1;6517:15;6557:4;6478:3;6545:17;6428:2;-1:-1:-1;6599:1:1;6588:13;;6418:189::o;6612:112::-;6644:1;6670;6660:2;;6675:18;;:::i;:::-;-1:-1:-1;6709:9:1;;6650:74::o;6729:127::-;6790:10;6785:3;6781:20;6778:1;6771:31;6821:4;6818:1;6811:15;6845:4;6842:1;6835:15

Swarm Source

ipfs://adf0c9d15ac347fb5e2e21eb716005087afad3f8c34eb3adf7301d8e1b81a6a2

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.