ETH Price: $2,430.37 (+1.40%)
 
Transaction Hash
Method
Block
From
To
Claim208005202024-09-21 17:43:3545 days ago1726940615IN
0x34590960...29ad89C9c
0 ETH0.001097587.68466618
Claim207898532024-09-20 5:56:2346 days ago1726811783IN
0x34590960...29ad89C9c
0 ETH0.0008105911.01675
Claim207898292024-09-20 5:51:3546 days ago1726811495IN
0x34590960...29ad89C9c
0 ETH0.0009099914.65187613
Claim201515272024-06-23 2:50:35135 days ago1719111035IN
0x34590960...29ad89C9c
0 ETH0.000153952.47690754
Claim186038432023-11-19 5:42:47352 days ago1700372567IN
0x34590960...29ad89C9c
0 ETH0.0008583613.82139134
Claim184547662023-10-29 8:51:35373 days ago1698569495IN
0x34590960...29ad89C9c
0 ETH0.0013324916.82564943
Claim184328022023-10-26 7:07:47376 days ago1698304067IN
0x34590960...29ad89C9c
0 ETH0.0011888415.00798924
Claim183815462023-10-19 2:56:35383 days ago1697684195IN
0x34590960...29ad89C9c
0 ETH0.000896396.27572088
Claim183815452023-10-19 2:56:23383 days ago1697684183IN
0x34590960...29ad89C9c
0 ETH0.000467636.09160098
Claim183625712023-10-16 11:15:11386 days ago1697454911IN
0x34590960...29ad89C9c
0 ETH0.000681928.97467641
Claim183388272023-10-13 3:34:11389 days ago1697168051IN
0x34590960...29ad89C9c
0 ETH0.000351665.65960787
Claim182083622023-09-24 21:33:35408 days ago1695591215IN
0x34590960...29ad89C9c
0 ETH0.0006511710.48355613
Claim181542042023-09-17 7:10:47415 days ago1694934647IN
0x34590960...29ad89C9c
0 ETH0.000691348.72515847
Claim181510602023-09-16 20:27:35416 days ago1694896055IN
0x34590960...29ad89C9c
0 ETH0.000600859.66663046
Claim181254022023-09-13 5:48:35419 days ago1694584115IN
0x34590960...29ad89C9c
0 ETH0.0020869426.3516298
Claim181185072023-09-12 6:36:35420 days ago1694500595IN
0x34590960...29ad89C9c
0 ETH0.000659648.32805514
Claim180060622023-08-27 12:40:23436 days ago1693140023IN
0x34590960...29ad89C9c
0 ETH0.0009909112.51093835
Claim179825392023-08-24 5:40:47439 days ago1692855647IN
0x34590960...29ad89C9c
0 ETH0.0010916113.77843613
Claim179283012023-08-16 15:31:59447 days ago1692199919IN
0x34590960...29ad89C9c
0 ETH0.0023689131.84842198
Claim179066422023-08-13 14:50:23450 days ago1691938223IN
0x34590960...29ad89C9c
0 ETH0.0014310418.68914833
Claim178981252023-08-12 10:14:47451 days ago1691835287IN
0x34590960...29ad89C9c
0 ETH0.0009904512.5
Claim176914202023-07-14 11:31:47480 days ago1689334307IN
0x34590960...29ad89C9c
0 ETH0.0012296216.18805777
Claim176540272023-07-09 5:18:35485 days ago1688879915IN
0x34590960...29ad89C9c
0 ETH0.000807513
Claim176449192023-07-07 22:33:47487 days ago1688769227IN
0x34590960...29ad89C9c
0 ETH0.0013656621.6902905
Claim175564982023-06-25 12:28:47499 days ago1687696127IN
0x34590960...29ad89C9c
0 ETH0.0011969515.1142657
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:
MultiMerkleStash

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : MultiMerkleStash.sol
// SPDX-License-Identifier: MIT
// Votium Merkle Stash

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";


contract MultiMerkleStash is Ownable {
  using SafeERC20 for IERC20;

  struct claimParam {
      address token;
      uint256 index;
      uint256 amount;
      bytes32[] merkleProof;
  }

  // environment variables for updateable merkle
  mapping(address => bytes32) public merkleRoot;
  mapping(address => uint256) public update;
  // This is a packed array of booleans.
  mapping(address => mapping(uint256 => mapping(uint256 => uint256))) private claimedBitMap;


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

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

  function claim(address token, uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) public {
    require(merkleRoot[token] != 0, 'frozen');
    require(!isClaimed(token, index), 'Drop already claimed.');

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

    _setClaimed(token, index);
    IERC20(token).safeTransfer(account, amount);

    emit Claimed(token, index, amount, account, update[token]);
  }

  function claimMulti(address account, claimParam[] calldata claims) external {
    for(uint256 i=0;i<claims.length;++i) {
      claim(claims[i].token, claims[i].index, account, claims[i].amount, claims[i].merkleProof);
    }
  }

  // MULTI SIG FUNCTIONS //

  function updateMerkleRoot(address token, bytes32 _merkleRoot) public onlyOwner {

    // Increment the update (simulates the clearing of the claimedBitMap)
    update[token] += 1;
    // Set the new merkle root
    merkleRoot[token] = _merkleRoot;

    emit MerkleRootUpdated(token, _merkleRoot, update[token]);
  }


  // EVENTS //

  event Claimed(address indexed token, uint256 index, uint256 amount, address indexed account, uint256 indexed update);
  event MerkleRootUpdated(address indexed token, bytes32 indexed merkleRoot, uint256 indexed update);
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {

	  address private _owner = 0xe39b8617D571CEe5e75e1EC6B2bb40DdC8CF6Fa3;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }
    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
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 Returns the rebuilt hash obtained by traversing a Merklee 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 5 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 6 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @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 7 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 `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);

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"update","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"update","type":"uint256"}],"name":"MerkleRootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"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":"address","name":"account","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct MultiMerkleStash.claimParam[]","name":"claims","type":"tuple[]"}],"name":"claimMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"update","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600080546001600160a01b03191673e39b8617d571cee5e75e1ec6b2bb40ddc8cf6fa317905534801561003657600080fd5b50610d87806100466000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b1461010b578063e211158614610126578063e786818e14610146578063f2fde38b1461015957600080fd5b806312d18ed61461008d5780631c1b8772146100a257806320ce64de146100d5578063562beba8146100e8575b600080fd5b6100a061009b366004610b3f565b61016c565b005b6100c26100b0366004610aa7565b60026020526000908152604090205481565b6040519081526020015b60405180910390f35b6100a06100e3366004610ac2565b61036a565b6100fb6100f6366004610b15565b610443565b60405190151581526020016100cc565b6000546040516001600160a01b0390911681526020016100cc565b6100c2610134366004610aa7565b60016020526000908152604090205481565b6100a0610154366004610b15565b6104ab565b6100a0610167366004610aa7565b61058a565b6001600160a01b0386166000908152600160205260409020546101bf5760405162461bcd60e51b8152602060048201526006602482015265333937bd32b760d11b60448201526064015b60405180910390fd5b6101c98686610443565b1561020e5760405162461bcd60e51b8152602060048201526015602482015274223937b81030b63932b0b23c9031b630b4b6b2b21760591b60448201526064016101b6565b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506102ad83838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506001600160a01b038d1681526001602052604090205492508591506106a49050565b6102ea5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b60448201526064016101b6565b6102f487876106bc565b6103086001600160a01b0388168686610721565b6001600160a01b038781166000818152600260209081526040918290205482518b815291820189905293891692917f4766921f5c59646d22d7d266a29164c8e9623684d8dfdbd931731dfdca025238910160405180910390a450505050505050565b60005b8181101561043d5761042d83838381811061038a5761038a610d3b565b905060200281019061039c9190610c72565b6103aa906020810190610aa7565b8484848181106103bc576103bc610d3b565b90506020028101906103ce9190610c72565b60200135868686868181106103e5576103e5610d3b565b90506020028101906103f79190610c72565b6040013587878781811061040d5761040d610d3b565b905060200281019061041f9190610c72565b61009b906060810190610c28565b61043681610ce0565b905061036d565b50505050565b60008061045261010084610ca0565b9050600061046261010085610cfb565b6001600160a01b03861660009081526003602090815260408083206002835281842054845282528083209583529490529290922054600190921b91821690911491505092915050565b6000546001600160a01b031633146105055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b6565b6001600160a01b038216600090815260026020526040812080546001929061052e908490610c88565b90915550506001600160a01b038216600081815260016020908152604080832085905560029091528082205490519092849290917fbdc375de8a677af383c6ee6f8b2027dbd231c3c47453ce81d1ce8f1bcdb722dc9190a45050565b6000546001600160a01b031633146105e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b6565b6001600160a01b0381166106495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b6565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826106b18584610778565b1490505b9392505050565b60006106ca61010083610ca0565b905060006106da61010084610cfb565b6001600160a01b03949094166000908152600360209081526040808320600283528184205484528252808320948352939052919091208054600190941b9093179092555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107739084906107ec565b505050565b600081815b84518110156107e457600085828151811061079a5761079a610d3b565b602002602001015190508083116107c057600083815260208290526040902092506107d1565b600081815260208490526040902092505b50806107dc81610ce0565b91505061077d565b509392505050565b6000610841826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108be9092919063ffffffff16565b805190915015610773578080602001905181019061085f9190610bb7565b6107735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101b6565b60606108cd84846000856108d5565b949350505050565b6060824710156109365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101b6565b6001600160a01b0385163b61098d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b6565b600080866001600160a01b031685876040516109a99190610bd9565b60006040518083038185875af1925050503d80600081146109e6576040519150601f19603f3d011682016040523d82523d6000602084013e6109eb565b606091505b50915091506109fb828286610a06565b979650505050505050565b60608315610a155750816106b5565b825115610a255782518084602001fd5b8160405162461bcd60e51b81526004016101b69190610bf5565b80356001600160a01b0381168114610a5657600080fd5b919050565b60008083601f840112610a6d57600080fd5b50813567ffffffffffffffff811115610a8557600080fd5b6020830191508360208260051b8501011115610aa057600080fd5b9250929050565b600060208284031215610ab957600080fd5b6106b582610a3f565b600080600060408486031215610ad757600080fd5b610ae084610a3f565b9250602084013567ffffffffffffffff811115610afc57600080fd5b610b0886828701610a5b565b9497909650939450505050565b60008060408385031215610b2857600080fd5b610b3183610a3f565b946020939093013593505050565b60008060008060008060a08789031215610b5857600080fd5b610b6187610a3f565b955060208701359450610b7660408801610a3f565b935060608701359250608087013567ffffffffffffffff811115610b9957600080fd5b610ba589828a01610a5b565b979a9699509497509295939492505050565b600060208284031215610bc957600080fd5b815180151581146106b557600080fd5b60008251610beb818460208701610cb4565b9190910192915050565b6020815260008251806020840152610c14816040850160208701610cb4565b601f01601f19169190910160400192915050565b6000808335601e19843603018112610c3f57600080fd5b83018035915067ffffffffffffffff821115610c5a57600080fd5b6020019150600581901b3603821315610aa057600080fd5b60008235607e19833603018112610beb57600080fd5b60008219821115610c9b57610c9b610d0f565b500190565b600082610caf57610caf610d25565b500490565b60005b83811015610ccf578181015183820152602001610cb7565b8381111561043d5750506000910152565b6000600019821415610cf457610cf4610d0f565b5060010190565b600082610d0a57610d0a610d25565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a1f01700f112bf7df57ba6533d2d516324acc24ab420a4ba55c1de2511515baf64736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b1461010b578063e211158614610126578063e786818e14610146578063f2fde38b1461015957600080fd5b806312d18ed61461008d5780631c1b8772146100a257806320ce64de146100d5578063562beba8146100e8575b600080fd5b6100a061009b366004610b3f565b61016c565b005b6100c26100b0366004610aa7565b60026020526000908152604090205481565b6040519081526020015b60405180910390f35b6100a06100e3366004610ac2565b61036a565b6100fb6100f6366004610b15565b610443565b60405190151581526020016100cc565b6000546040516001600160a01b0390911681526020016100cc565b6100c2610134366004610aa7565b60016020526000908152604090205481565b6100a0610154366004610b15565b6104ab565b6100a0610167366004610aa7565b61058a565b6001600160a01b0386166000908152600160205260409020546101bf5760405162461bcd60e51b8152602060048201526006602482015265333937bd32b760d11b60448201526064015b60405180910390fd5b6101c98686610443565b1561020e5760405162461bcd60e51b8152602060048201526015602482015274223937b81030b63932b0b23c9031b630b4b6b2b21760591b60448201526064016101b6565b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506102ad83838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506001600160a01b038d1681526001602052604090205492508591506106a49050565b6102ea5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b60448201526064016101b6565b6102f487876106bc565b6103086001600160a01b0388168686610721565b6001600160a01b038781166000818152600260209081526040918290205482518b815291820189905293891692917f4766921f5c59646d22d7d266a29164c8e9623684d8dfdbd931731dfdca025238910160405180910390a450505050505050565b60005b8181101561043d5761042d83838381811061038a5761038a610d3b565b905060200281019061039c9190610c72565b6103aa906020810190610aa7565b8484848181106103bc576103bc610d3b565b90506020028101906103ce9190610c72565b60200135868686868181106103e5576103e5610d3b565b90506020028101906103f79190610c72565b6040013587878781811061040d5761040d610d3b565b905060200281019061041f9190610c72565b61009b906060810190610c28565b61043681610ce0565b905061036d565b50505050565b60008061045261010084610ca0565b9050600061046261010085610cfb565b6001600160a01b03861660009081526003602090815260408083206002835281842054845282528083209583529490529290922054600190921b91821690911491505092915050565b6000546001600160a01b031633146105055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b6565b6001600160a01b038216600090815260026020526040812080546001929061052e908490610c88565b90915550506001600160a01b038216600081815260016020908152604080832085905560029091528082205490519092849290917fbdc375de8a677af383c6ee6f8b2027dbd231c3c47453ce81d1ce8f1bcdb722dc9190a45050565b6000546001600160a01b031633146105e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b6565b6001600160a01b0381166106495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b6565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826106b18584610778565b1490505b9392505050565b60006106ca61010083610ca0565b905060006106da61010084610cfb565b6001600160a01b03949094166000908152600360209081526040808320600283528184205484528252808320948352939052919091208054600190941b9093179092555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107739084906107ec565b505050565b600081815b84518110156107e457600085828151811061079a5761079a610d3b565b602002602001015190508083116107c057600083815260208290526040902092506107d1565b600081815260208490526040902092505b50806107dc81610ce0565b91505061077d565b509392505050565b6000610841826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108be9092919063ffffffff16565b805190915015610773578080602001905181019061085f9190610bb7565b6107735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101b6565b60606108cd84846000856108d5565b949350505050565b6060824710156109365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101b6565b6001600160a01b0385163b61098d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b6565b600080866001600160a01b031685876040516109a99190610bd9565b60006040518083038185875af1925050503d80600081146109e6576040519150601f19603f3d011682016040523d82523d6000602084013e6109eb565b606091505b50915091506109fb828286610a06565b979650505050505050565b60608315610a155750816106b5565b825115610a255782518084602001fd5b8160405162461bcd60e51b81526004016101b69190610bf5565b80356001600160a01b0381168114610a5657600080fd5b919050565b60008083601f840112610a6d57600080fd5b50813567ffffffffffffffff811115610a8557600080fd5b6020830191508360208260051b8501011115610aa057600080fd5b9250929050565b600060208284031215610ab957600080fd5b6106b582610a3f565b600080600060408486031215610ad757600080fd5b610ae084610a3f565b9250602084013567ffffffffffffffff811115610afc57600080fd5b610b0886828701610a5b565b9497909650939450505050565b60008060408385031215610b2857600080fd5b610b3183610a3f565b946020939093013593505050565b60008060008060008060a08789031215610b5857600080fd5b610b6187610a3f565b955060208701359450610b7660408801610a3f565b935060608701359250608087013567ffffffffffffffff811115610b9957600080fd5b610ba589828a01610a5b565b979a9699509497509295939492505050565b600060208284031215610bc957600080fd5b815180151581146106b557600080fd5b60008251610beb818460208701610cb4565b9190910192915050565b6020815260008251806020840152610c14816040850160208701610cb4565b601f01601f19169190910160400192915050565b6000808335601e19843603018112610c3f57600080fd5b83018035915067ffffffffffffffff821115610c5a57600080fd5b6020019150600581901b3603821315610aa057600080fd5b60008235607e19833603018112610beb57600080fd5b60008219821115610c9b57610c9b610d0f565b500190565b600082610caf57610caf610d25565b500490565b60005b83811015610ccf578181015183820152602001610cb7565b8381111561043d5750506000910152565b6000600019821415610cf457610cf4610d0f565b5060010190565b600082610d0a57610d0a610d25565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a1f01700f112bf7df57ba6533d2d516324acc24ab420a4ba55c1de2511515baf64736f6c63430008070033

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.