Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 63 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 14836195 | 959 days ago | IN | 0 ETH | 0.00401326 | ||||
Claim | 14788005 | 966 days ago | IN | 0 ETH | 0.00604815 | ||||
Claim | 14787536 | 966 days ago | IN | 0 ETH | 0.00381854 | ||||
Claim | 14786771 | 967 days ago | IN | 0 ETH | 0.00887691 | ||||
Claim | 14785441 | 967 days ago | IN | 0 ETH | 0.0029462 | ||||
Claim | 14771372 | 969 days ago | IN | 0 ETH | 0.00473364 | ||||
Claim | 14750330 | 972 days ago | IN | 0 ETH | 0.00502732 | ||||
Claim | 14666675 | 986 days ago | IN | 0 ETH | 0.01066255 | ||||
Claim | 14656340 | 987 days ago | IN | 0 ETH | 0.01093954 | ||||
Claim | 14641554 | 990 days ago | IN | 0 ETH | 0.00186386 | ||||
Claim | 14637713 | 990 days ago | IN | 0 ETH | 0.00727897 | ||||
Claim | 14554438 | 1003 days ago | IN | 0 ETH | 0.00531291 | ||||
Claim | 14548364 | 1004 days ago | IN | 0 ETH | 0.00538764 | ||||
Claim | 14540622 | 1005 days ago | IN | 0 ETH | 0.00969562 | ||||
Claim | 14540027 | 1005 days ago | IN | 0 ETH | 0.01037145 | ||||
Claim | 14520555 | 1009 days ago | IN | 0 ETH | 0.01562767 | ||||
Claim | 14516953 | 1009 days ago | IN | 0 ETH | 0.01057967 | ||||
Claim | 14514980 | 1009 days ago | IN | 0 ETH | 0.01030776 | ||||
Claim | 14511750 | 1010 days ago | IN | 0 ETH | 0.00567562 | ||||
Claim | 14510091 | 1010 days ago | IN | 0 ETH | 0.00604409 | ||||
Claim | 14507654 | 1011 days ago | IN | 0 ETH | 0.00922483 | ||||
Claim | 14505801 | 1011 days ago | IN | 0 ETH | 0.00563981 | ||||
Claim | 14504103 | 1011 days ago | IN | 0 ETH | 0.00878699 | ||||
Claim | 14502387 | 1011 days ago | IN | 0 ETH | 0.01005617 | ||||
Claim | 14501480 | 1012 days ago | IN | 0 ETH | 0.00933939 |
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
Contract Source Code (Solidity Standard Json-Input format)
// 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; } }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.