ETH Price: $3,485.61 (-6.09%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim148361952022-05-24 14:06:13959 days ago1653401173IN
0x227B13B0...582Da4a44
0 ETH0.0040132625.53358535
Claim147880052022-05-16 19:06:35966 days ago1652727995IN
0x227B13B0...582Da4a44
0 ETH0.0060481538.47280724
Claim147875362022-05-16 17:15:11966 days ago1652721311IN
0x227B13B0...582Da4a44
0 ETH0.0038185424.29653693
Claim147867712022-05-16 14:29:49967 days ago1652711389IN
0x227B13B0...582Da4a44
0 ETH0.0088769156.49046128
Claim147854412022-05-16 9:29:27967 days ago1652693367IN
0x227B13B0...582Da4a44
0 ETH0.002946218.74363872
Claim147713722022-05-14 3:38:43969 days ago1652499523IN
0x227B13B0...582Da4a44
0 ETH0.0047336430.1195562
Claim147503302022-05-10 19:15:46972 days ago1652210146IN
0x227B13B0...582Da4a44
0 ETH0.0050273231.98367454
Claim146666752022-04-27 13:11:12986 days ago1651065072IN
0x227B13B0...582Da4a44
0 ETH0.0106625555.00105323
Claim146563402022-04-25 22:07:19987 days ago1650924439IN
0x227B13B0...582Da4a44
0 ETH0.0109395468.52764445
Claim146415542022-04-23 14:17:35990 days ago1650723455IN
0x227B13B0...582Da4a44
0 ETH0.0018638637.36389798
Claim146377132022-04-22 23:47:09990 days ago1650671229IN
0x227B13B0...582Da4a44
0 ETH0.0072789745.82551747
Claim145544382022-04-09 23:18:551003 days ago1649546335IN
0x227B13B0...582Da4a44
0 ETH0.0053129130.06281382
Claim145483642022-04-09 0:42:241004 days ago1649464944IN
0x227B13B0...582Da4a44
0 ETH0.0053876433.91422973
Claim145406222022-04-07 19:27:201005 days ago1649359640IN
0x227B13B0...582Da4a44
0 ETH0.0096956260.72630202
Claim145400272022-04-07 17:18:461005 days ago1649351926IN
0x227B13B0...582Da4a44
0 ETH0.0103714564.97711407
Claim145205552022-04-04 16:22:491009 days ago1649089369IN
0x227B13B0...582Da4a44
0 ETH0.0156276797.9
Claim145169532022-04-04 2:52:331009 days ago1649040753IN
0x227B13B0...582Da4a44
0 ETH0.0105796766.27251208
Claim145149802022-04-03 19:20:261009 days ago1649013626IN
0x227B13B0...582Da4a44
0 ETH0.0103077664.56433565
Claim145117502022-04-03 7:05:071010 days ago1648969507IN
0x227B13B0...582Da4a44
0 ETH0.0056756235.55017542
Claim145100912022-04-03 1:02:101010 days ago1648947730IN
0x227B13B0...582Da4a44
0 ETH0.0060440937.86340689
Claim145076542022-04-02 15:56:201011 days ago1648914980IN
0x227B13B0...582Da4a44
0 ETH0.0092248359.00120263
Claim145058012022-04-02 8:51:081011 days ago1648889468IN
0x227B13B0...582Da4a44
0 ETH0.0056398135.50873889
Claim145041032022-04-02 2:24:171011 days ago1648866257IN
0x227B13B0...582Da4a44
0 ETH0.0087869955.32361141
Claim145023872022-04-01 19:58:361011 days ago1648843116IN
0x227B13B0...582Da4a44
0 ETH0.0100561762.99323247
Claim145014802022-04-01 16:32:371012 days ago1648830757IN
0x227B13B0...582Da4a44
0 ETH0.0093393993.36219487
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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

Contract Name:
shumoClaim

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 1 : shumoClaim.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}



pragma solidity ^0.6.0;

contract shumoClaim{

    address public owner;
    bytes32 public root;

    address public distributionWallet=0x98AadbBd93892bc8e6c47154d9172f9Ad24d2fFE;

    IERC20 public shumo;
    bool public claimIsActive = false;

     constructor() public {
        owner=msg.sender;
        root=0x5a69887c896dd1dac6edf4fda9ba2c381ca78a8d92739e2d794a7dd980f7a605;
        shumo=IERC20(0xEaa2C985abF14Ac850F6614faebd6E4436BeA65f);
    }



    mapping(address => bool) claimedAddresses;
    
     function flipClaimState() public {
        require(msg.sender==owner, "Only Owner can use this function");
        claimIsActive = !claimIsActive;
    }

    function setPurchaseToken(IERC20 token) public  {
        require(msg.sender==owner, "Only Owner can use this function");
        shumo = token; //shumo Token
    }

    function setRoot(bytes32 newRoot) public  {
        require(msg.sender==owner, "Only Owner can use this function");
        root=newRoot; 
    }

     function setDistributionWallet(address newWallet) public {
        require(msg.sender==owner, "Only Owner can use this function");
        distributionWallet=newWallet; //Set Wallet
    }
     function transferOwnership(address newOwner) public {
        require(msg.sender==owner, "Only Owner can use this function");
        owner=newOwner; //Set Owner
    }

    function withdrawStuckShumoBalance() public {
        require(msg.sender==owner, "Only Owner can use this function");
        shumo.transfer(msg.sender,shumo.balanceOf(address(this)));
    }

    function hasClaimed(address claimedAddress) public view returns (bool){
      return claimedAddresses[claimedAddress]; //check if claimed
    }

    function removeFromClaimed(address claimedAddress) public {
      require(msg.sender==owner, "Only Owner can use this function");
      claimedAddresses[claimedAddress]=false; 
    }
 
    
  function verify(
    bytes32 leaf,
    bytes32[] memory proof
  )
    public
    view
    returns (bool)
  {
    bytes32 computedHash = leaf;

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

      if (computedHash < proofElement) {
        computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
      } else {
        computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
      }
    }
    return computedHash == root;
  }
  
function claim(bytes32[] memory proof,address account, uint256 amount) public{

    require(claimIsActive, "Claim is not enabled");
    require(!claimedAddresses[account], "Distributor: Drop already claimed.");
    require(msg.sender==account, "Sender not claimer");

    bytes32 leaf = keccak256(abi.encodePacked(account, amount));
    require(verify(leaf,proof), "Not Eligible");

    shumo.transferFrom(distributionWallet,account,amount*10**9);  //decimals
    claimedAddresses[account]=true;
}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributionWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"claimedAddress","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimedAddress","type":"address"}],"name":"removeFromClaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setDistributionWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"setPurchaseToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shumo","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"},{"inputs":[{"internalType":"bytes32","name":"leaf","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawStuckShumoBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80637f6808ed11610097578063ca21b17711610066578063ca21b1771461029e578063dab5f3401461034f578063ebf0c7171461036c578063f2fde38b14610386576100f5565b80637f6808ed146102425780638456bd2e146102685780638da5cb5b1461028e578063a5e6221f14610296576100f5565b80636d60e6c1116100d35780636d60e6c1146101625780636df4d2411461016a57806373b2e80e14610214578063798d489c1461023a576100f5565b806319ecb166146100fa578063467d0119146101225780635303f68c14610146575b600080fd5b6101206004803603602081101561011057600080fd5b50356001600160a01b03166103ac565b005b61012a61043a565b604080516001600160a01b039092168252519081900360200190f35b61014e610449565b604080519115158252519081900360200190f35b61012061046a565b61014e6004803603604081101561018057600080fd5b813591908101906040810160208201356401000000008111156101a257600080fd5b8201836020820111156101b457600080fd5b803590602001918460208302840111640100000000831117156101d657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610516945050505050565b61014e6004803603602081101561022a57600080fd5b50356001600160a01b03166105c1565b6101206105df565b6101206004803603602081101561025857600080fd5b50356001600160a01b031661076c565b6101206004803603602081101561027e57600080fd5b50356001600160a01b03166107ec565b61012a61087a565b61012a610889565b610120600480360360608110156102b457600080fd5b8101906020810181356401000000008111156102cf57600080fd5b8201836020820111156102e157600080fd5b8035906020019184602083028401116401000000008311171561030357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b038335169350505060200135610898565b6101206004803603602081101561036557600080fd5b5035610b2a565b610374610b8e565b60408051918252519081900360200190f35b6101206004803603602081101561039c57600080fd5b50356001600160a01b0316610b94565b6000546001600160a01b0316331461040b576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79204f776e65722063616e2075736520746869732066756e6374696f6e604482015290519081900360640190fd5b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b60035474010000000000000000000000000000000000000000900460ff1681565b6000546001600160a01b031633146104c9576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79204f776e65722063616e2075736520746869732066756e6374696f6e604482015290519081900360640190fd5b600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b600082815b83518110156105b557600084828151811061053257fe5b602002602001015190508083101561057a57828160405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092506105ac565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b5060010161051b565b50600154149392505050565b6001600160a01b031660009081526004602052604090205460ff1690565b6000546001600160a01b0316331461063e576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79204f776e65722063616e2075736520746869732066756e6374696f6e604482015290519081900360640190fd5b600354604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b039092169163a9059cbb91339184916370a08231916024808301926020929190829003018186803b1580156106ab57600080fd5b505afa1580156106bf573d6000803e3d6000fd5b505050506040513d60208110156106d557600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561073e57600080fd5b505af1158015610752573d6000803e3d6000fd5b505050506040513d602081101561076857600080fd5b5050565b6000546001600160a01b031633146107cb576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79204f776e65722063616e2075736520746869732066756e6374696f6e604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b0316331461084b576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79204f776e65722063616e2075736520746869732066756e6374696f6e604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031681565b6003546001600160a01b031681565b60035474010000000000000000000000000000000000000000900460ff16610907576040805162461bcd60e51b815260206004820152601460248201527f436c61696d206973206e6f7420656e61626c6564000000000000000000000000604482015290519081900360640190fd5b6001600160a01b03821660009081526004602052604090205460ff161561095f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610c236022913960400191505060405180910390fd5b336001600160a01b038316146109bc576040805162461bcd60e51b815260206004820152601260248201527f53656e646572206e6f7420636c61696d65720000000000000000000000000000604482015290519081900360640190fd5b6000828260405160200180836001600160a01b031660601b815260140182815260200192505050604051602081830303815290604052805190602001209050610a058185610516565b610a56576040805162461bcd60e51b815260206004820152600c60248201527f4e6f7420456c696769626c650000000000000000000000000000000000000000604482015290519081900360640190fd5b600354600254604080517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b0392831660048201528683166024820152633b9aca0086026044820152905191909216916323b872dd9160648083019260209291908290030181600087803b158015610ad557600080fd5b505af1158015610ae9573d6000803e3d6000fd5b505050506040513d6020811015610aff57600080fd5b5050506001600160a01b039091166000908152600460205260409020805460ff191660011790555050565b6000546001600160a01b03163314610b89576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79204f776e65722063616e2075736520746869732066756e6374696f6e604482015290519081900360640190fd5b600155565b60015481565b6000546001600160a01b03163314610bf3576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79204f776e65722063616e2075736520746869732066756e6374696f6e604482015290519081900360640190fd5b6000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905556fe4469737472696275746f723a2044726f7020616c726561647920636c61696d65642ea26469706673582212205eb472a770269e9f66bbdee204fb2f602606cdfa765546d21fc6692c46f2784c64736f6c634300060c0033

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.