Latest 25 from a total of 305 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 15281947 | 1232 days ago | IN | 0 ETH | 0.00024228 | ||||
| Claim | 15281940 | 1232 days ago | IN | 0 ETH | 0.00023973 | ||||
| Claim | 14345635 | 1382 days ago | IN | 0 ETH | 0.00160861 | ||||
| Claim | 14294225 | 1390 days ago | IN | 0 ETH | 0.00317899 | ||||
| Claim | 14294080 | 1390 days ago | IN | 0 ETH | 0.0025524 | ||||
| Claim | 13835827 | 1460 days ago | IN | 0 ETH | 0.00355113 | ||||
| Claim | 13612335 | 1496 days ago | IN | 0 ETH | 0.00914465 | ||||
| Claim | 13582265 | 1500 days ago | IN | 0 ETH | 0.01149462 | ||||
| Claim | 13451788 | 1521 days ago | IN | 0 ETH | 0.00392367 | ||||
| Claim | 13303672 | 1544 days ago | IN | 0 ETH | 0.00624145 | ||||
| Claim | 13236445 | 1555 days ago | IN | 0 ETH | 0.00364016 | ||||
| Claim | 13126122 | 1572 days ago | IN | 0 ETH | 0.00573083 | ||||
| Claim | 13093000 | 1577 days ago | IN | 0 ETH | 0.00437642 | ||||
| Claim | 12996592 | 1592 days ago | IN | 0 ETH | 0.00395694 | ||||
| Claim | 12990058 | 1593 days ago | IN | 0 ETH | 0.00291362 | ||||
| Claim | 12983984 | 1594 days ago | IN | 0 ETH | 0.00282604 | ||||
| Claim | 12983965 | 1594 days ago | IN | 0 ETH | 0.00347302 | ||||
| Claim | 12978716 | 1594 days ago | IN | 0 ETH | 0.00391303 | ||||
| Claim | 12969711 | 1596 days ago | IN | 0 ETH | 0.00232427 | ||||
| Claim | 12944242 | 1600 days ago | IN | 0 ETH | 0.00209934 | ||||
| Claim | 12924520 | 1603 days ago | IN | 0 ETH | 0.00290707 | ||||
| Claim | 12823702 | 1619 days ago | IN | 0 ETH | 0.00075924 | ||||
| Claim | 12823702 | 1619 days ago | IN | 0 ETH | 0.00075924 | ||||
| Claim | 12823701 | 1619 days ago | IN | 0 ETH | 0.00069597 | ||||
| Claim | 12823701 | 1619 days ago | IN | 0 ETH | 0.00062637 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 12230968 | 1711 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xf52bfA4f...de570327d The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MerkleDistributor
Compiler Version
v0.6.11+commit.5ef660b1
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-04-13
*/
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.6.11;
/**
* @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);
}
/**
* @dev These functions deal with verification of Merkle trees (hash trees),
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
// Hash(current element of the proof + current computed hash)
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
}
}
// Check if the computed hash (root) is equal to the provided root
return computedHash == root;
}
}
contract MerkleDistributor {
address public token;
bytes32 public merkleRoot;
uint256 public startTimestamp;
event Claimed(uint256 index, address account, uint256 amount);
// This is a packed array of booleans.
mapping(uint256 => uint256) private claimedBitMap;
constructor(address token_, bytes32 merkleRoot_, uint256 _startTimestamp) public {
token = token_;
merkleRoot = merkleRoot_;
startTimestamp = _startTimestamp == 0 ? blockTimestamp() : _startTimestamp;
}
function blockTimestamp() public view virtual returns (uint256) {
return block.timestamp;
}
function isClaimed(uint256 index) public view returns (bool) {
uint256 claimedWordIndex = index / 256;
uint256 claimedBitIndex = index % 256;
uint256 claimedWord = claimedBitMap[claimedWordIndex];
uint256 mask = (1 << claimedBitIndex);
return claimedWord & mask == mask;
}
function _setClaimed(uint256 index) private {
uint256 claimedWordIndex = index / 256;
uint256 claimedBitIndex = index % 256;
claimedBitMap[claimedWordIndex] = claimedBitMap[claimedWordIndex] | (1 << claimedBitIndex);
}
function claim(uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) external {
require(!isClaimed(index), 'MerkleDistributor: Drop already claimed.');
require(blockTimestamp()>startTimestamp,'Airdrop not start yet');
// Verify the merkle proof.
bytes32 node = keccak256(abi.encodePacked(index, account, amount));
require(MerkleProof.verify(merkleProof, merkleRoot, node), 'MerkleDistributor: Invalid proof.');
// Mark it claimed and send the token.
_setClaimed(index);
require(IERC20(token).transfer(account, amount), 'MerkleDistributor: Transfer failed.');
emit Claimed(index, account, amount);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"inputs":[],"name":"blockTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x608060405234801561001057600080fd5b506040516108c03803806108c08339818101604052606081101561003357600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600181905550600081146100ad57806100bc565b6100bb6100ca60201b60201c565b5b6002819055505050506100d2565b600042905090565b6107df806100e16000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80632e7ba6ef146100675780632eb4a7ab146101145780639e34070f14610132578063adb6183214610178578063e6fd48bc14610196578063fc0c546a146101b4575b600080fd5b6101126004803603608081101561007d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156100ce57600080fd5b8201836020820111156100e057600080fd5b8035906020019184602083028401116401000000008311171561010257600080fd5b90919293919293905050506101fe565b005b61011c6105a4565b6040518082815260200191505060405180910390f35b61015e6004803603602081101561014857600080fd5b81019080803590602001909291905050506105aa565b604051808215151515815260200191505060405180910390f35b6101806105fc565b6040518082815260200191505060405180910390f35b61019e610604565b6040518082815260200191505060405180910390f35b6101bc61060a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610207856105aa565b1561025d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061073e6028913960400191505060405180910390fd5b6002546102686105fc565b116102db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f41697264726f70206e6f7420737461727420796574000000000000000000000081525060200191505060405180910390fd5b6000858585604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b81526014018281526020019350505050604051602081830303815290604052805190602001209050610393838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506001548361062f565b6103e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806107666021913960400191505060405180910390fd5b6103f1866106e7565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561049957600080fd5b505af11580156104ad573d6000803e3d6000fd5b505050506040513d60208110156104c357600080fd5b8101908080519060200190929190505050610529576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806107876023913960400191505060405180910390fd5b7f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026868686604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1505050505050565b60015481565b60008061010083816105b857fe5b049050600061010084816105c857fe5b0690506000600360008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b600042905090565b60025481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008082905060008090505b85518110156106d957600086828151811061065257fe5b6020026020010151905080831161069957828160405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092506106cb565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50808060010191505061063b565b508381149150509392505050565b600061010082816106f457fe5b0490506000610100838161070457fe5b069050806001901b600360008481526020019081526020016000205417600360008481526020019081526020016000208190555050505056fe4d65726b6c654469737472696275746f723a2044726f7020616c726561647920636c61696d65642e4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f662e4d65726b6c654469737472696275746f723a205472616e73666572206661696c65642ea2646970667358221220ef090b96324bbde280228bb16326587fc254a75c9d569f0e14f5a8aeb7fb270064736f6c634300060b003300000000000000000000000000000000000045166c45af0fc6e4cf31d9e14b9a0463e605da3af13d8bacfadb11d46a6bea994171ef2babe65d56f87c409e79450000000000000000000000000000000000000000000000000000000060a5a680
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c80632e7ba6ef146100675780632eb4a7ab146101145780639e34070f14610132578063adb6183214610178578063e6fd48bc14610196578063fc0c546a146101b4575b600080fd5b6101126004803603608081101561007d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156100ce57600080fd5b8201836020820111156100e057600080fd5b8035906020019184602083028401116401000000008311171561010257600080fd5b90919293919293905050506101fe565b005b61011c6105a4565b6040518082815260200191505060405180910390f35b61015e6004803603602081101561014857600080fd5b81019080803590602001909291905050506105aa565b604051808215151515815260200191505060405180910390f35b6101806105fc565b6040518082815260200191505060405180910390f35b61019e610604565b6040518082815260200191505060405180910390f35b6101bc61060a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610207856105aa565b1561025d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061073e6028913960400191505060405180910390fd5b6002546102686105fc565b116102db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f41697264726f70206e6f7420737461727420796574000000000000000000000081525060200191505060405180910390fd5b6000858585604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b81526014018281526020019350505050604051602081830303815290604052805190602001209050610393838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506001548361062f565b6103e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806107666021913960400191505060405180910390fd5b6103f1866106e7565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561049957600080fd5b505af11580156104ad573d6000803e3d6000fd5b505050506040513d60208110156104c357600080fd5b8101908080519060200190929190505050610529576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806107876023913960400191505060405180910390fd5b7f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026868686604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1505050505050565b60015481565b60008061010083816105b857fe5b049050600061010084816105c857fe5b0690506000600360008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b600042905090565b60025481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008082905060008090505b85518110156106d957600086828151811061065257fe5b6020026020010151905080831161069957828160405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092506106cb565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50808060010191505061063b565b508381149150509392505050565b600061010082816106f457fe5b0490506000610100838161070457fe5b069050806001901b600360008481526020019081526020016000205417600360008481526020019081526020016000208190555050505056fe4d65726b6c654469737472696275746f723a2044726f7020616c726561647920636c61696d65642e4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f662e4d65726b6c654469737472696275746f723a205472616e73666572206661696c65642ea2646970667358221220ef090b96324bbde280228bb16326587fc254a75c9d569f0e14f5a8aeb7fb270064736f6c634300060b0033
Deployed Bytecode Sourcemap
4043:1975:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5298:717;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4105:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4709:323;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;4598:103;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4137:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4078:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;5298:717;5423:16;5433:5;5423:9;:16::i;:::-;5422:17;5414:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5520:14;;5503:16;:14;:16::i;:::-;:31;5495:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5609:12;5651:5;5658:7;5667:6;5634:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5624:51;;;;;;5609:66;;5694:49;5713:11;;5694:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5726:10;;5738:4;5694:18;:49::i;:::-;5686:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5842:18;5854:5;5842:11;:18::i;:::-;5886:5;;;;;;;;;;;5879:22;;;5902:7;5911:6;5879:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5871:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5976:31;5984:5;5991:7;6000:6;5976:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5298:717;;;;;;:::o;4105:25::-;;;;:::o;4709:323::-;4765:4;4782:24;4817:3;4809:5;:11;;;;;;4782:38;;4831:23;4865:3;4857:5;:11;;;;;;4831:37;;4879:19;4901:13;:31;4915:16;4901:31;;;;;;;;;;;;4879:53;;4943:12;4964:15;4959:1;:20;;4943:37;;5020:4;5012;4998:11;:18;:26;4991:33;;;;;;4709:323;;;:::o;4598:103::-;4653:7;4679:15;4672:22;;4598:103;:::o;4137:30::-;;;;:::o;4078:20::-;;;;;;;;;;;;;:::o;3236:796::-;3327:4;3344:20;3367:4;3344:27;;3389:9;3401:1;3389:13;;3384:525;3408:5;:12;3404:1;:16;3384:525;;;3442:20;3465:5;3471:1;3465:8;;;;;;;;;;;;;;3442:31;;3510:12;3494;:28;3490:408;;3664:12;3678;3647:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3637:55;;;;;;3622:70;;3490:408;;;3854:12;3868;3837:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3827:55;;;;;;3812:70;;3490:408;3384:525;3422:3;;;;;;;3384:525;;;;4020:4;4004:12;:20;3997:27;;;3236:796;;;;;:::o;5040:250::-;5095:24;5130:3;5122:5;:11;;;;;;5095:38;;5144:23;5178:3;5170:5;:11;;;;;;5144:37;;5266:15;5261:1;:20;;5226:13;:31;5240:16;5226:31;;;;;;;;;;;;:56;5192:13;:31;5206:16;5192:31;;;;;;;;;;;:90;;;;5040:250;;;:::o
Swarm Source
ipfs://ef090b96324bbde280228bb16326587fc254a75c9d569f0e14f5a8aeb7fb2700
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.