MNT Price: $0.86 (+1.02%)

Contract

0x93803455aA62e5b95CDb174cD52b16382967078f
 

Overview

MNT Balance

Mantle Mainnet Network LogoMantle Mainnet Network LogoMantle Mainnet Network Logo0 MNT

MNT Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Claim880054072025-11-26 7:12:0660 days ago1764141126IN
0x93803455...82967078f
0 MNT0.006254330.0209135
Claim879855452025-11-25 20:10:0261 days ago1764101402IN
0x93803455...82967078f
0 MNT0.00599890.0201
Claim879712032025-11-25 12:11:5861 days ago1764072718IN
0x93803455...82967078f
0 MNT0.005955230.0201347
Claim879442082025-11-24 21:12:0862 days ago1764018728IN
0x93803455...82967078f
0 MNT0.00723760.02412
Claim879220382025-11-24 8:53:0862 days ago1763974388IN
0x93803455...82967078f
0 MNT0.004760840.02
Claim879199422025-11-24 7:43:1662 days ago1763970196IN
0x93803455...82967078f
0 MNT0.0058070.020301
Claim878908432025-11-23 15:33:1863 days ago1763911998IN
0x93803455...82967078f
0 MNT0.006335750.02205
Claim878862682025-11-23 13:00:4863 days ago1763902848IN
0x93803455...82967078f
0 MNT0.007230350.0249
Claim878847552025-11-23 12:10:2263 days ago1763899822IN
0x93803455...82967078f
0 MNT0.005776060.0201298
Claim878808842025-11-23 10:01:2063 days ago1763892080IN
0x93803455...82967078f
0 MNT0.007114930.02515
Claim878605352025-11-22 22:43:0264 days ago1763851382IN
0x93803455...82967078f
0 MNT0.006975730.02412
Claim878573592025-11-22 20:57:1064 days ago1763845030IN
0x93803455...82967078f
0 MNT0.005694970.02
Claim878493372025-11-22 16:29:4664 days ago1763828986IN
0x93803455...82967078f
0 MNT0.007036050.0243612
Claim878489782025-11-22 16:17:4864 days ago1763828268IN
0x93803455...82967078f
0 MNT0.005841780.020301
Claim878432402025-11-22 13:06:3264 days ago1763816792IN
0x93803455...82967078f
0 MNT0.005923310.02412
Claim878413392025-11-22 12:03:1064 days ago1763812990IN
0x93803455...82967078f
0 MNT0.006474220.021875
Claim878385132025-11-22 10:28:5864 days ago1763807338IN
0x93803455...82967078f
0 MNT0.005939610.0201
Claim878005832025-11-21 13:24:3865 days ago1763731478IN
0x93803455...82967078f
0 MNT0.007853560.02206
Claim877969942025-11-21 11:25:0065 days ago1763724300IN
0x93803455...82967078f
0 MNT0.007598760.02412
Claim877925842025-11-21 8:58:0065 days ago1763715480IN
0x93803455...82967078f
0 MNT0.007554290.02
Claim877914932025-11-21 8:21:3865 days ago1763713298IN
0x93803455...82967078f
0 MNT0.008495990.0249
Claim877761712025-11-20 23:50:5466 days ago1763682654IN
0x93803455...82967078f
0 MNT0.005601590.0201
Claim877704992025-11-20 20:41:5066 days ago1763671310IN
0x93803455...82967078f
0 MNT0.004729040.0201
Claim877633002025-11-20 16:41:5266 days ago1763656912IN
0x93803455...82967078f
0 MNT0.006292010.02
Claim877587132025-11-20 14:08:5866 days ago1763647738IN
0x93803455...82967078f
0 MNT0.00495610.02
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MerkleERC20Distributor

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.7.6;

import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20.sol';
import {SafeERC20} from '../dependencies/openzeppelin/contracts/SafeERC20.sol';
import {Ownable} from '../dependencies/openzeppelin/contracts/Ownable.sol';
import {SafeMath} from '../dependencies/openzeppelin/contracts/SafeMath.sol';

contract MerkleERC20Distributor is Ownable {
  using SafeMath for uint256;
  using SafeERC20 for IERC20;

  struct ClaimRecord {
    bytes32 merkleRoot;
    uint256 validUntil;
    uint256 total;
    uint256 claimed;
  }

  uint256 public constant minDuration = 86400 * 7;
  
  uint256 public claimedTokens;
  uint256 public reservedTokens;
  uint256 public immutable startTime;

  IERC20 public immutable token;

  ClaimRecord[] public claims;

  event Claimed(
    address indexed account,
    uint256 indexed merkleIndex,
    uint256 index,
    uint256 amount,
    address receiver
  );

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

  constructor(IERC20 _token) Ownable() {
    token = _token;
    startTime = block.timestamp;
  }

  function addClaimRecord(
    bytes32 _root,
    uint256 _duration,
    uint256 _total
  ) external onlyOwner {
    require(_duration >= minDuration);
    uint256 balance = token.balanceOf(address(this));
    require(balance.sub(reservedTokens) >= _total, 'MerkleDistributor: Not enough tokens.');

    claims.push(
      ClaimRecord({
        merkleRoot: _root,
        validUntil: block.timestamp + _duration,
        total: _total,
        claimed: 0
      })
    );
    reservedTokens = reservedTokens.add(_total);
  }

  function releaseExpiredClaimReserves(uint256[] calldata _claimIndexes) external {
    for (uint256 i = 0; i < _claimIndexes.length; i++) {
      ClaimRecord storage c = claims[_claimIndexes[i]];
      require(block.timestamp > c.validUntil, 'MerkleDistributor: Drop still active.');
      uint256 amount = c.total.sub(c.claimed);
      reservedTokens = reservedTokens.sub(amount);
      c.total = 0;
      c.claimed = 0;
      token.safeTransfer(owner(), amount);
    }
  }

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

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

  function claim(
    uint256 _claimIndex,
    uint256 _index,
    uint256 _amount,
    address _receiver,
    bytes32[] calldata _merkleProof
  ) external {
    require(_claimIndex < claims.length, 'MerkleDistributor: Invalid merkleIndex');
    require(!isClaimed(_claimIndex, _index), 'MerkleDistributor: Drop already claimed.');

    ClaimRecord storage c = claims[_claimIndex];
    require(c.validUntil > block.timestamp, 'MerkleDistributor: Drop has expired.');

    c.claimed = c.claimed.add(_amount);
    require(c.total >= c.claimed, 'MerkleDistributor: Exceeds allocated total for drop.');

    reservedTokens = reservedTokens.sub(_amount);
    claimedTokens = claimedTokens.add(_amount);

    // Verify the merkle proof.
    bytes32 node = keccak256(abi.encodePacked(_index, msg.sender, _amount));
    require(verify(_merkleProof, c.merkleRoot, node), 'MerkleDistributor: Invalid proof.');

    // Mark it claimed and send the token.
    _setClaimed(_claimIndex, _index);
    token.safeTransfer(_receiver, _amount);

    emit Claimed(msg.sender, _claimIndex, _index, _amount, _receiver);
  }

  function verify(
    bytes32[] calldata _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;
  }
}

// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

/**
 * @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) {
    // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
    // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
    // for accounts without code, i.e. `keccak256('')`
    bytes32 codehash;
    bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
    // solhint-disable-next-line no-inline-assembly
    assembly {
      codehash := extcodehash(account)
    }
    return (codehash != accountHash && codehash != 0x0);
  }

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

    // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
    (bool success, ) = recipient.call{value: amount}('');
    require(success, 'Address: unable to send value, recipient may have reverted');
  }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;

/*
 * @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 GSN 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 payable) {
    return msg.sender;
  }

  function _msgData() internal view virtual returns (bytes memory) {
    this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
    return msg.data;
  }
}

// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

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

// SPDX-License-Identifier: MIT

pragma solidity 0.7.6;

import './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.
 */
contract Ownable is Context {
  address private _owner;

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

  /**
   * @dev Initializes the contract setting the deployer as the initial owner.
   */
  constructor() {
    address msgSender = _msgSender();
    _owner = msgSender;
    emit OwnershipTransferred(address(0), msgSender);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view 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 Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions anymore. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby removing any functionality that is only available to the owner.
   */
  function renounceOwnership() public virtual onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

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

// SPDX-License-Identifier: MIT

pragma solidity 0.7.6;

import {IERC20} from './IERC20.sol';
import {SafeMath} from './SafeMath.sol';
import {Address} from './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 SafeMath for uint256;
  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));
  }

  function safeApprove(
    IERC20 token,
    address spender,
    uint256 value
  ) internal {
    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 callOptionalReturn(IERC20 token, bytes memory data) private {
    require(address(token).isContract(), 'SafeERC20: call to non-contract');

    // solhint-disable-next-line avoid-low-level-calls
    (bool success, bytes memory returndata) = address(token).call(data);
    require(success, 'SafeERC20: low-level call failed');

    if (returndata.length > 0) {
      // Return data is optional
      // solhint-disable-next-line max-line-length
      require(abi.decode(returndata, (bool)), 'SafeERC20: ERC20 operation did not succeed');
    }
  }
}

// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
  /**
   * @dev Returns the addition of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `+` operator.
   *
   * Requirements:
   * - Addition cannot overflow.
   */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a, 'SafeMath: addition overflow');

    return c;
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    return sub(a, b, 'SafeMath: subtraction overflow');
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(
    uint256 a,
    uint256 b,
    string memory errorMessage
  ) internal pure returns (uint256) {
    require(b <= a, errorMessage);
    uint256 c = a - b;

    return c;
  }

  /**
   * @dev Returns the multiplication of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `*` operator.
   *
   * Requirements:
   * - Multiplication cannot overflow.
   */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b, 'SafeMath: multiplication overflow');

    return c;
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    return div(a, b, 'SafeMath: division by zero');
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(
    uint256 a,
    uint256 b,
    string memory errorMessage
  ) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0, errorMessage);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    return mod(a, b, 'SafeMath: modulo by zero');
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts with custom message when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(
    uint256 a,
    uint256 b,
    string memory errorMessage
  ) internal pure returns (uint256) {
    require(b != 0, errorMessage);
    return a % b;
  }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"merkleIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"Claimed","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":"bytes32","name":"_root","type":"bytes32"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_total","type":"uint256"}],"name":"addClaimRecord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimIndex","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claims","outputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"validUntil","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimIndex","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_claimIndexes","type":"uint256[]"}],"name":"releaseExpiredClaimReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405234801561001057600080fd5b506040516112313803806112318339818101604052602081101561003357600080fd5b5051600061003f6100a2565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060601b6001600160601b03191660a052426080526100a6565b3390565b60805160a05160601c6111566100db60003980610397528061080b528061095a5280610b3a52508061099252506111566000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806378b68d841161008c578063a888c2cd11610066578063a888c2cd1461025e578063f2fde38b146102a1578063f364c90c146102c7578063fc0c546a146102fe576100cf565b806378b68d84146101c257806378e97925146102325780638da5cb5b1461023a576100cf565b80630d92e3e8146100d457806315a55347146100ee57806356715761146100f657806366dfbc56146100fe578063715018a61461012957806373cf8b5314610131575b600080fd5b6100dc610306565b60408051918252519081900360200190f35b6100dc61030c565b6100dc610312565b6101276004803603606081101561011457600080fd5b5080359060208101359060400135610319565b005b610127610563565b610127600480360360a081101561014757600080fd5b8135916020810135916040820135916001600160a01b036060820135169181019060a08101608082013564010000000081111561018357600080fd5b82018360208201111561019557600080fd5b803590602001918460208302840111640100000000831117156101b757600080fd5b509092509050610617565b610127600480360360208110156101d857600080fd5b8101906020810181356401000000008111156101f357600080fd5b82018360208201111561020557600080fd5b8035906020019184602083028401116401000000008311171561022757600080fd5b509092509050610888565b6100dc610990565b6102426109b4565b604080516001600160a01b039092168252519081900360200190f35b61027b6004803603602081101561027457600080fd5b50356109c3565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610127600480360360208110156102b757600080fd5b50356001600160a01b03166109fd565b6102ea600480360360408110156102dd57600080fd5b5080359060200135610b07565b604080519115158252519081900360200190f35b610242610b38565b60015481565b60025481565b62093a8081565b610321610b5c565b6000546001600160a01b03908116911614610383576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b62093a8082101561039357600080fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561040257600080fd5b505afa158015610416573d6000803e3d6000fd5b505050506040513d602081101561042c57600080fd5b50516002549091508290610441908390610b60565b101561047e5760405162461bcd60e51b81526004018080602001828103825260258152602001806110426025913960400191505060405180910390fd5b604080516080810182528581524285016020820190815291810184815260006060830181815260038054600181018255925292517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60049092029182015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c840155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d830155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e9091015560025461055a9083610ba9565b60025550505050565b61056b610b5c565b6000546001600160a01b039081169116146105cd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60035486106106575760405162461bcd60e51b81526004018080602001828103825260268152602001806110fb6026913960400191505060405180910390fd5b6106618686610b07565b1561069d5760405162461bcd60e51b815260040180806020018281038252602881526020018061101a6028913960400191505060405180910390fd5b6000600387815481106106ac57fe5b90600052602060002090600402019050428160010154116106fe5760405162461bcd60e51b81526004018080602001828103825260248152602001806110ad6024913960400191505060405180910390fd5b600381015461070d9086610ba9565b60038201819055600282015410156107565760405162461bcd60e51b8152600401808060200182810382526034815260200180610fc06034913960400191505060405180910390fd5b6002546107639086610b60565b6002556001546107739086610ba9565b6001556040805160208082018990523360601b828401526054808301899052835180840390910181526074909201909252805191012081546107b9908590859084610c03565b6107f45760405162461bcd60e51b815260040180806020018281038252602181526020018061108c6021913960400191505060405180910390fd5b6107fe8888610cab565b6108326001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168688610cdd565b60408051888152602081018890526001600160a01b038716818301529051899133917f98fd277adc04630eb4a4f20f9a1ad2be2b1060312ca017d0f95597bb80ce63f99181900360600190a35050505050505050565b60005b8181101561098b57600060038484848181106108a357fe5b90506020020135815481106108b457fe5b90600052602060002090600402019050806001015442116109065760405162461bcd60e51b81526004018080602001828103825260258152602001806110676025913960400191505060405180910390fd5b600061092382600301548360020154610b6090919063ffffffff16565b6002549091506109339082610b60565b6002908155600090830181905560038301556109816109506109b4565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083610cdd565b505060010161088b565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031690565b600381815481106109d357600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b610a05610b5c565b6000546001600160a01b03908116911614610a67576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610aac5760405162461bcd60e51b8152600401808060200182810382526026815260200180610ff46026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60009182526004602090815260408084206101008404855290915290912054600160ff9092169190911b9081161490565b7f000000000000000000000000000000000000000000000000000000000000000081565b3390565b6000610ba283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d2f565b9392505050565b600082820183811015610ba2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081815b85811015610c9f576000878783818110610c1e57fe5b905060200201359050808311610c645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610c96565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610c08565b50909214949350505050565b6000918252600460209081526040808420610100840485529091529091208054600160ff9093169290921b9091179055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261098b908490610dc6565b60008184841115610dbe5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d83578181015183820152602001610d6b565b50505050905090810190601f168015610db05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610dd8826001600160a01b0316610f83565b610e29576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b600080836001600160a01b0316836040518082805190602001908083835b60208310610e665780518252601f199092019160209182019101610e47565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ec8576040519150601f19603f3d011682016040523d82523d6000602084013e610ecd565b606091505b509150915081610f24576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610f7d57808060200190516020811015610f4057600080fd5b5051610f7d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806110d1602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610fb757508115155b94935050505056fe4d65726b6c654469737472696275746f723a204578636565647320616c6c6f636174656420746f74616c20666f722064726f702e4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d65726b6c654469737472696275746f723a2044726f7020616c726561647920636c61696d65642e4d65726b6c654469737472696275746f723a204e6f7420656e6f75676820746f6b656e732e4d65726b6c654469737472696275746f723a2044726f70207374696c6c206163746976652e4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f662e4d65726b6c654469737472696275746f723a2044726f702068617320657870697265642e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d65726b6c654469737472696275746f723a20496e76616c6964206d65726b6c65496e646578a2646970667358221220790512e3cfc4c609a8e9044ad7244795bfdb688d925ccc51a2301b81e5486cd764736f6c6343000706003300000000000000000000000025356aeca4210ef7553140edb9b8026089e49396

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806378b68d841161008c578063a888c2cd11610066578063a888c2cd1461025e578063f2fde38b146102a1578063f364c90c146102c7578063fc0c546a146102fe576100cf565b806378b68d84146101c257806378e97925146102325780638da5cb5b1461023a576100cf565b80630d92e3e8146100d457806315a55347146100ee57806356715761146100f657806366dfbc56146100fe578063715018a61461012957806373cf8b5314610131575b600080fd5b6100dc610306565b60408051918252519081900360200190f35b6100dc61030c565b6100dc610312565b6101276004803603606081101561011457600080fd5b5080359060208101359060400135610319565b005b610127610563565b610127600480360360a081101561014757600080fd5b8135916020810135916040820135916001600160a01b036060820135169181019060a08101608082013564010000000081111561018357600080fd5b82018360208201111561019557600080fd5b803590602001918460208302840111640100000000831117156101b757600080fd5b509092509050610617565b610127600480360360208110156101d857600080fd5b8101906020810181356401000000008111156101f357600080fd5b82018360208201111561020557600080fd5b8035906020019184602083028401116401000000008311171561022757600080fd5b509092509050610888565b6100dc610990565b6102426109b4565b604080516001600160a01b039092168252519081900360200190f35b61027b6004803603602081101561027457600080fd5b50356109c3565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610127600480360360208110156102b757600080fd5b50356001600160a01b03166109fd565b6102ea600480360360408110156102dd57600080fd5b5080359060200135610b07565b604080519115158252519081900360200190f35b610242610b38565b60015481565b60025481565b62093a8081565b610321610b5c565b6000546001600160a01b03908116911614610383576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b62093a8082101561039357600080fd5b60007f00000000000000000000000025356aeca4210ef7553140edb9b8026089e493966001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561040257600080fd5b505afa158015610416573d6000803e3d6000fd5b505050506040513d602081101561042c57600080fd5b50516002549091508290610441908390610b60565b101561047e5760405162461bcd60e51b81526004018080602001828103825260258152602001806110426025913960400191505060405180910390fd5b604080516080810182528581524285016020820190815291810184815260006060830181815260038054600181018255925292517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60049092029182015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c840155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d830155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e9091015560025461055a9083610ba9565b60025550505050565b61056b610b5c565b6000546001600160a01b039081169116146105cd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60035486106106575760405162461bcd60e51b81526004018080602001828103825260268152602001806110fb6026913960400191505060405180910390fd5b6106618686610b07565b1561069d5760405162461bcd60e51b815260040180806020018281038252602881526020018061101a6028913960400191505060405180910390fd5b6000600387815481106106ac57fe5b90600052602060002090600402019050428160010154116106fe5760405162461bcd60e51b81526004018080602001828103825260248152602001806110ad6024913960400191505060405180910390fd5b600381015461070d9086610ba9565b60038201819055600282015410156107565760405162461bcd60e51b8152600401808060200182810382526034815260200180610fc06034913960400191505060405180910390fd5b6002546107639086610b60565b6002556001546107739086610ba9565b6001556040805160208082018990523360601b828401526054808301899052835180840390910181526074909201909252805191012081546107b9908590859084610c03565b6107f45760405162461bcd60e51b815260040180806020018281038252602181526020018061108c6021913960400191505060405180910390fd5b6107fe8888610cab565b6108326001600160a01b037f00000000000000000000000025356aeca4210ef7553140edb9b8026089e49396168688610cdd565b60408051888152602081018890526001600160a01b038716818301529051899133917f98fd277adc04630eb4a4f20f9a1ad2be2b1060312ca017d0f95597bb80ce63f99181900360600190a35050505050505050565b60005b8181101561098b57600060038484848181106108a357fe5b90506020020135815481106108b457fe5b90600052602060002090600402019050806001015442116109065760405162461bcd60e51b81526004018080602001828103825260258152602001806110676025913960400191505060405180910390fd5b600061092382600301548360020154610b6090919063ffffffff16565b6002549091506109339082610b60565b6002908155600090830181905560038301556109816109506109b4565b6001600160a01b037f00000000000000000000000025356aeca4210ef7553140edb9b8026089e49396169083610cdd565b505060010161088b565b505050565b7f0000000000000000000000000000000000000000000000000000000068ac99cc81565b6000546001600160a01b031690565b600381815481106109d357600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b610a05610b5c565b6000546001600160a01b03908116911614610a67576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610aac5760405162461bcd60e51b8152600401808060200182810382526026815260200180610ff46026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60009182526004602090815260408084206101008404855290915290912054600160ff9092169190911b9081161490565b7f00000000000000000000000025356aeca4210ef7553140edb9b8026089e4939681565b3390565b6000610ba283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d2f565b9392505050565b600082820183811015610ba2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081815b85811015610c9f576000878783818110610c1e57fe5b905060200201359050808311610c645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610c96565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610c08565b50909214949350505050565b6000918252600460209081526040808420610100840485529091529091208054600160ff9093169290921b9091179055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261098b908490610dc6565b60008184841115610dbe5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d83578181015183820152602001610d6b565b50505050905090810190601f168015610db05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610dd8826001600160a01b0316610f83565b610e29576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b600080836001600160a01b0316836040518082805190602001908083835b60208310610e665780518252601f199092019160209182019101610e47565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ec8576040519150601f19603f3d011682016040523d82523d6000602084013e610ecd565b606091505b509150915081610f24576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610f7d57808060200190516020811015610f4057600080fd5b5051610f7d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806110d1602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610fb757508115155b94935050505056fe4d65726b6c654469737472696275746f723a204578636565647320616c6c6f636174656420746f74616c20666f722064726f702e4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d65726b6c654469737472696275746f723a2044726f7020616c726561647920636c61696d65642e4d65726b6c654469737472696275746f723a204e6f7420656e6f75676820746f6b656e732e4d65726b6c654469737472696275746f723a2044726f70207374696c6c206163746976652e4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f662e4d65726b6c654469737472696275746f723a2044726f702068617320657870697265642e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d65726b6c654469737472696275746f723a20496e76616c6964206d65726b6c65496e646578a2646970667358221220790512e3cfc4c609a8e9044ad7244795bfdb688d925ccc51a2301b81e5486cd764736f6c63430007060033

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

00000000000000000000000025356aeca4210ef7553140edb9b8026089e49396

-----Decoded View---------------
Arg [0] : _token (address): 0x25356aeca4210eF7553140edb9b8026089E49396

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000025356aeca4210ef7553140edb9b8026089e49396


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.