More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,853 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 18349583 | 301 days ago | IN | 0 ETH | 0.00064301 | ||||
Claim | 17847581 | 371 days ago | IN | 0 ETH | 0.00181322 | ||||
Claim | 17790410 | 379 days ago | IN | 0 ETH | 0.00305264 | ||||
Claim | 17786682 | 380 days ago | IN | 0 ETH | 0.00506966 | ||||
Claim | 17758581 | 384 days ago | IN | 0 ETH | 0.00214553 | ||||
Claim | 17755775 | 384 days ago | IN | 0 ETH | 0.00174635 | ||||
Claim | 17751081 | 385 days ago | IN | 0 ETH | 0.00162215 | ||||
Claim | 17741502 | 386 days ago | IN | 0 ETH | 0.00230666 | ||||
Claim | 17728428 | 388 days ago | IN | 0 ETH | 0.00425852 | ||||
Claim | 17718130 | 389 days ago | IN | 0 ETH | 0.00177926 | ||||
Claim | 17677193 | 395 days ago | IN | 0 ETH | 0.00180314 | ||||
Claim | 17667918 | 396 days ago | IN | 0 ETH | 0.00177764 | ||||
Claim | 17665855 | 397 days ago | IN | 0 ETH | 0.00283424 | ||||
Claim | 17646252 | 399 days ago | IN | 0 ETH | 0.00180455 | ||||
Claim | 17645487 | 400 days ago | IN | 0 ETH | 0.00271565 | ||||
Claim | 17635101 | 401 days ago | IN | 0 ETH | 0.00304872 | ||||
Claim | 17624016 | 403 days ago | IN | 0 ETH | 0.00484003 | ||||
Claim | 17619798 | 403 days ago | IN | 0 ETH | 0.00162488 | ||||
Claim | 17609392 | 405 days ago | IN | 0 ETH | 0.00149263 | ||||
Claim | 17608074 | 405 days ago | IN | 0 ETH | 0.00145592 | ||||
Claim | 17585573 | 408 days ago | IN | 0 ETH | 0.00560719 | ||||
Claim | 17574174 | 410 days ago | IN | 0 ETH | 0.00156002 | ||||
Claim | 17572926 | 410 days ago | IN | 0 ETH | 0.00358006 | ||||
Claim | 17572080 | 410 days ago | IN | 0 ETH | 0.00281771 | ||||
Claim | 17566559 | 411 days ago | IN | 0 ETH | 0.00136142 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
NetworkTokenClaim
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; contract NetworkTokenClaim is Ownable, Pausable { bytes32 public root; IERC20 public tokenAsset; mapping(address => bool) public claimed; event TokensClaimed(uint256 indexed amount, address indexed claimer); event RootUpdated(bytes32 indexed newRoot); event AssetAddressUpdated(address indexed newAddress); constructor(bytes32 _root) { root = _root; _pause(); } function claim(bytes32[] memory proof, uint256 amount) public whenNotPaused() { require(tokenAsset != IERC20(address(0)), "Asset address not set"); require(!claimed[_msgSender()], "Already claimed"); require( tokenAsset.balanceOf(address(this)) >= amount, "Not enough tokens" ); bytes32 leaf = keccak256( bytes.concat(keccak256(abi.encode(_msgSender(), amount))) ); require(MerkleProof.verify(proof, root, leaf), "Invalid proof"); claimed[_msgSender()] = true; tokenAsset.transfer(_msgSender(), amount); emit TokensClaimed(amount, _msgSender()); } function updateRoot(bytes32 _root) public onlyOwner { require(root != bytes32(0), "Root can not be null"); root = _root; emit RootUpdated(_root); } /** * @dev Pause the contract. */ function pause() public onlyOwner { _pause(); } /** * @dev Unpause the contract. */ function unpause() public onlyOwner { _unpause(); } function setAssetAddress(address _assetAddress) public onlyOwner { tokenAsset = IERC20(_assetAddress); emit AssetAddressUpdated(_assetAddress); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"AssetAddressUpdated","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"RootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"claimer","type":"address"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_assetAddress","type":"address"}],"name":"setAssetAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenAsset","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"updateRoot","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620019243803806200192483398181016040528101906200003791906200027b565b620000576200004b6200008f60201b60201c565b6200009760201b60201c565b60008060146101000a81548160ff02191690831515021790555080600181905550620000886200015b60201b60201c565b5062000392565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200016b620001d060201b60201c565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001b76200008f60201b60201c565b604051620001c69190620002f2565b60405180910390a1565b620001e06200022560201b60201c565b1562000223576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200021a9062000370565b60405180910390fd5b565b60008060149054906101000a900460ff16905090565b600080fd5b6000819050919050565b620002558162000240565b81146200026157600080fd5b50565b60008151905062000275816200024a565b92915050565b6000602082840312156200029457620002936200023b565b5b6000620002a48482850162000264565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002da82620002ad565b9050919050565b620002ec81620002cd565b82525050565b6000602082019050620003096000830184620002e1565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000620003586010836200030f565b9150620003658262000320565b602082019050919050565b600060208201905081810360008301526200038b8162000349565b9050919050565b61158280620003a26000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063770e09fd11610071578063770e09fd146101415780638456cb591461015d5780638da5cb5b14610167578063c884ef8314610185578063ebf0c717146101b5578063f2fde38b146101d3576100b4565b806321ff9970146100b957806328da4472146100d55780633b439351146100f35780633f4ba83a1461010f5780635c975abb14610119578063715018a614610137575b600080fd5b6100d360048036038101906100ce9190610bed565b6101ef565b005b6100dd610275565b6040516100ea9190610c99565b60405180910390f35b61010d60048036038101906101089190610e43565b61029b565b005b6101176106a3565b005b6101216106b5565b60405161012e9190610eba565b60405180910390f35b61013f6106cb565b005b61015b60048036038101906101569190610f13565b6106df565b005b61016561076e565b005b61016f610780565b60405161017c9190610f4f565b60405180910390f35b61019f600480360381019061019a9190610f13565b6107a9565b6040516101ac9190610eba565b60405180910390f35b6101bd6107c9565b6040516101ca9190610f79565b60405180910390f35b6101ed60048036038101906101e89190610f13565b6107cf565b005b6101f7610852565b6000801b6001540361023e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161023590610ff1565b60405180910390fd5b80600181905550807f2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa460405160405180910390a250565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102a36108d0565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032b9061105d565b60405180910390fd5b6003600061034061091a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156103c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bf906110c9565b60405180910390fd5b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104249190610f4f565b602060405180830381865afa158015610441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046591906110fe565b10156104a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049d90611177565b60405180910390fd5b60006104b061091a565b826040516020016104c29291906111a6565b604051602081830303815290604052805190602001206040516020016104e891906111f0565b60405160208183030381529060405280519060200120905061050d8360015483610922565b61054c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054390611257565b60405180910390fd5b60016003600061055a61091a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6105f161091a565b846040518363ffffffff1660e01b815260040161060f9291906111a6565b6020604051808303816000875af115801561062e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065291906112a3565b5061065b61091a565b73ffffffffffffffffffffffffffffffffffffffff16827f83017964d41e2eb3369a74f93ce7024dc09d85d2bfa35ca86268234733b9659060405160405180910390a3505050565b6106ab610852565b6106b3610939565b565b60008060149054906101000a900460ff16905090565b6106d3610852565b6106dd600061099b565b565b6106e7610852565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fe812f40f658f46bde2982e0b84a12ce092335c76f8ed0ad54840576bb6d8e56160405160405180910390a250565b610776610852565b61077e610a5f565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60036020528060005260406000206000915054906101000a900460ff1681565b60015481565b6107d7610852565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083d90611342565b60405180910390fd5b61084f8161099b565b50565b61085a61091a565b73ffffffffffffffffffffffffffffffffffffffff16610878610780565b73ffffffffffffffffffffffffffffffffffffffff16146108ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c5906113ae565b60405180910390fd5b565b6108d86106b5565b15610918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090f9061141a565b60405180910390fd5b565b600033905090565b60008261092f8584610ac2565b1490509392505050565b610941610b18565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61098461091a565b6040516109919190610f4f565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610a676108d0565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610aab61091a565b604051610ab89190610f4f565b60405180910390a1565b60008082905060005b8451811015610b0d57610af882868381518110610aeb57610aea61143a565b5b6020026020010151610b61565b91508080610b0590611498565b915050610acb565b508091505092915050565b610b206106b5565b610b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b569061152c565b60405180910390fd5b565b6000818310610b7957610b748284610b8c565b610b84565b610b838383610b8c565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610bca81610bb7565b8114610bd557600080fd5b50565b600081359050610be781610bc1565b92915050565b600060208284031215610c0357610c02610bad565b5b6000610c1184828501610bd8565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610c5f610c5a610c5584610c1a565b610c3a565b610c1a565b9050919050565b6000610c7182610c44565b9050919050565b6000610c8382610c66565b9050919050565b610c9381610c78565b82525050565b6000602082019050610cae6000830184610c8a565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d0282610cb9565b810181811067ffffffffffffffff82111715610d2157610d20610cca565b5b80604052505050565b6000610d34610ba3565b9050610d408282610cf9565b919050565b600067ffffffffffffffff821115610d6057610d5f610cca565b5b602082029050602081019050919050565b600080fd5b6000610d89610d8484610d45565b610d2a565b90508083825260208201905060208402830185811115610dac57610dab610d71565b5b835b81811015610dd55780610dc18882610bd8565b845260208401935050602081019050610dae565b5050509392505050565b600082601f830112610df457610df3610cb4565b5b8135610e04848260208601610d76565b91505092915050565b6000819050919050565b610e2081610e0d565b8114610e2b57600080fd5b50565b600081359050610e3d81610e17565b92915050565b60008060408385031215610e5a57610e59610bad565b5b600083013567ffffffffffffffff811115610e7857610e77610bb2565b5b610e8485828601610ddf565b9250506020610e9585828601610e2e565b9150509250929050565b60008115159050919050565b610eb481610e9f565b82525050565b6000602082019050610ecf6000830184610eab565b92915050565b6000610ee082610c1a565b9050919050565b610ef081610ed5565b8114610efb57600080fd5b50565b600081359050610f0d81610ee7565b92915050565b600060208284031215610f2957610f28610bad565b5b6000610f3784828501610efe565b91505092915050565b610f4981610ed5565b82525050565b6000602082019050610f646000830184610f40565b92915050565b610f7381610bb7565b82525050565b6000602082019050610f8e6000830184610f6a565b92915050565b600082825260208201905092915050565b7f526f6f742063616e206e6f74206265206e756c6c000000000000000000000000600082015250565b6000610fdb601483610f94565b9150610fe682610fa5565b602082019050919050565b6000602082019050818103600083015261100a81610fce565b9050919050565b7f41737365742061646472657373206e6f74207365740000000000000000000000600082015250565b6000611047601583610f94565b915061105282611011565b602082019050919050565b600060208201905081810360008301526110768161103a565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b60006110b3600f83610f94565b91506110be8261107d565b602082019050919050565b600060208201905081810360008301526110e2816110a6565b9050919050565b6000815190506110f881610e17565b92915050565b60006020828403121561111457611113610bad565b5b6000611122848285016110e9565b91505092915050565b7f4e6f7420656e6f75676820746f6b656e73000000000000000000000000000000600082015250565b6000611161601183610f94565b915061116c8261112b565b602082019050919050565b6000602082019050818103600083015261119081611154565b9050919050565b6111a081610e0d565b82525050565b60006040820190506111bb6000830185610f40565b6111c86020830184611197565b9392505050565b6000819050919050565b6111ea6111e582610bb7565b6111cf565b82525050565b60006111fc82846111d9565b60208201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000611241600d83610f94565b915061124c8261120b565b602082019050919050565b6000602082019050818103600083015261127081611234565b9050919050565b61128081610e9f565b811461128b57600080fd5b50565b60008151905061129d81611277565b92915050565b6000602082840312156112b9576112b8610bad565b5b60006112c78482850161128e565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061132c602683610f94565b9150611337826112d0565b604082019050919050565b6000602082019050818103600083015261135b8161131f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611398602083610f94565b91506113a382611362565b602082019050919050565b600060208201905081810360008301526113c78161138b565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611404601083610f94565b915061140f826113ce565b602082019050919050565b60006020820190508181036000830152611433816113f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006114a382610e0d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114d5576114d4611469565b5b600182019050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611516601483610f94565b9150611521826114e0565b602082019050919050565b6000602082019050818103600083015261154581611509565b905091905056fea26469706673582212203bda88d279b3eabe20c5f80971efedd340d264714da0a9a8457244bd4273b1e564736f6c63430008120033642a234cd69068407d2456015322035fcb9963b2eb724a1dc503ed3bb6f0ea76
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063770e09fd11610071578063770e09fd146101415780638456cb591461015d5780638da5cb5b14610167578063c884ef8314610185578063ebf0c717146101b5578063f2fde38b146101d3576100b4565b806321ff9970146100b957806328da4472146100d55780633b439351146100f35780633f4ba83a1461010f5780635c975abb14610119578063715018a614610137575b600080fd5b6100d360048036038101906100ce9190610bed565b6101ef565b005b6100dd610275565b6040516100ea9190610c99565b60405180910390f35b61010d60048036038101906101089190610e43565b61029b565b005b6101176106a3565b005b6101216106b5565b60405161012e9190610eba565b60405180910390f35b61013f6106cb565b005b61015b60048036038101906101569190610f13565b6106df565b005b61016561076e565b005b61016f610780565b60405161017c9190610f4f565b60405180910390f35b61019f600480360381019061019a9190610f13565b6107a9565b6040516101ac9190610eba565b60405180910390f35b6101bd6107c9565b6040516101ca9190610f79565b60405180910390f35b6101ed60048036038101906101e89190610f13565b6107cf565b005b6101f7610852565b6000801b6001540361023e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161023590610ff1565b60405180910390fd5b80600181905550807f2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa460405160405180910390a250565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102a36108d0565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032b9061105d565b60405180910390fd5b6003600061034061091a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156103c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bf906110c9565b60405180910390fd5b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104249190610f4f565b602060405180830381865afa158015610441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046591906110fe565b10156104a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049d90611177565b60405180910390fd5b60006104b061091a565b826040516020016104c29291906111a6565b604051602081830303815290604052805190602001206040516020016104e891906111f0565b60405160208183030381529060405280519060200120905061050d8360015483610922565b61054c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054390611257565b60405180910390fd5b60016003600061055a61091a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6105f161091a565b846040518363ffffffff1660e01b815260040161060f9291906111a6565b6020604051808303816000875af115801561062e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065291906112a3565b5061065b61091a565b73ffffffffffffffffffffffffffffffffffffffff16827f83017964d41e2eb3369a74f93ce7024dc09d85d2bfa35ca86268234733b9659060405160405180910390a3505050565b6106ab610852565b6106b3610939565b565b60008060149054906101000a900460ff16905090565b6106d3610852565b6106dd600061099b565b565b6106e7610852565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fe812f40f658f46bde2982e0b84a12ce092335c76f8ed0ad54840576bb6d8e56160405160405180910390a250565b610776610852565b61077e610a5f565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60036020528060005260406000206000915054906101000a900460ff1681565b60015481565b6107d7610852565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083d90611342565b60405180910390fd5b61084f8161099b565b50565b61085a61091a565b73ffffffffffffffffffffffffffffffffffffffff16610878610780565b73ffffffffffffffffffffffffffffffffffffffff16146108ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c5906113ae565b60405180910390fd5b565b6108d86106b5565b15610918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090f9061141a565b60405180910390fd5b565b600033905090565b60008261092f8584610ac2565b1490509392505050565b610941610b18565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61098461091a565b6040516109919190610f4f565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610a676108d0565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610aab61091a565b604051610ab89190610f4f565b60405180910390a1565b60008082905060005b8451811015610b0d57610af882868381518110610aeb57610aea61143a565b5b6020026020010151610b61565b91508080610b0590611498565b915050610acb565b508091505092915050565b610b206106b5565b610b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b569061152c565b60405180910390fd5b565b6000818310610b7957610b748284610b8c565b610b84565b610b838383610b8c565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610bca81610bb7565b8114610bd557600080fd5b50565b600081359050610be781610bc1565b92915050565b600060208284031215610c0357610c02610bad565b5b6000610c1184828501610bd8565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610c5f610c5a610c5584610c1a565b610c3a565b610c1a565b9050919050565b6000610c7182610c44565b9050919050565b6000610c8382610c66565b9050919050565b610c9381610c78565b82525050565b6000602082019050610cae6000830184610c8a565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d0282610cb9565b810181811067ffffffffffffffff82111715610d2157610d20610cca565b5b80604052505050565b6000610d34610ba3565b9050610d408282610cf9565b919050565b600067ffffffffffffffff821115610d6057610d5f610cca565b5b602082029050602081019050919050565b600080fd5b6000610d89610d8484610d45565b610d2a565b90508083825260208201905060208402830185811115610dac57610dab610d71565b5b835b81811015610dd55780610dc18882610bd8565b845260208401935050602081019050610dae565b5050509392505050565b600082601f830112610df457610df3610cb4565b5b8135610e04848260208601610d76565b91505092915050565b6000819050919050565b610e2081610e0d565b8114610e2b57600080fd5b50565b600081359050610e3d81610e17565b92915050565b60008060408385031215610e5a57610e59610bad565b5b600083013567ffffffffffffffff811115610e7857610e77610bb2565b5b610e8485828601610ddf565b9250506020610e9585828601610e2e565b9150509250929050565b60008115159050919050565b610eb481610e9f565b82525050565b6000602082019050610ecf6000830184610eab565b92915050565b6000610ee082610c1a565b9050919050565b610ef081610ed5565b8114610efb57600080fd5b50565b600081359050610f0d81610ee7565b92915050565b600060208284031215610f2957610f28610bad565b5b6000610f3784828501610efe565b91505092915050565b610f4981610ed5565b82525050565b6000602082019050610f646000830184610f40565b92915050565b610f7381610bb7565b82525050565b6000602082019050610f8e6000830184610f6a565b92915050565b600082825260208201905092915050565b7f526f6f742063616e206e6f74206265206e756c6c000000000000000000000000600082015250565b6000610fdb601483610f94565b9150610fe682610fa5565b602082019050919050565b6000602082019050818103600083015261100a81610fce565b9050919050565b7f41737365742061646472657373206e6f74207365740000000000000000000000600082015250565b6000611047601583610f94565b915061105282611011565b602082019050919050565b600060208201905081810360008301526110768161103a565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b60006110b3600f83610f94565b91506110be8261107d565b602082019050919050565b600060208201905081810360008301526110e2816110a6565b9050919050565b6000815190506110f881610e17565b92915050565b60006020828403121561111457611113610bad565b5b6000611122848285016110e9565b91505092915050565b7f4e6f7420656e6f75676820746f6b656e73000000000000000000000000000000600082015250565b6000611161601183610f94565b915061116c8261112b565b602082019050919050565b6000602082019050818103600083015261119081611154565b9050919050565b6111a081610e0d565b82525050565b60006040820190506111bb6000830185610f40565b6111c86020830184611197565b9392505050565b6000819050919050565b6111ea6111e582610bb7565b6111cf565b82525050565b60006111fc82846111d9565b60208201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000611241600d83610f94565b915061124c8261120b565b602082019050919050565b6000602082019050818103600083015261127081611234565b9050919050565b61128081610e9f565b811461128b57600080fd5b50565b60008151905061129d81611277565b92915050565b6000602082840312156112b9576112b8610bad565b5b60006112c78482850161128e565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061132c602683610f94565b9150611337826112d0565b604082019050919050565b6000602082019050818103600083015261135b8161131f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611398602083610f94565b91506113a382611362565b602082019050919050565b600060208201905081810360008301526113c78161138b565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611404601083610f94565b915061140f826113ce565b602082019050919050565b60006020820190508181036000830152611433816113f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006114a382610e0d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114d5576114d4611469565b5b600182019050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611516601483610f94565b9150611521826114e0565b602082019050919050565b6000602082019050818103600083015261154581611509565b905091905056fea26469706673582212203bda88d279b3eabe20c5f80971efedd340d264714da0a9a8457244bd4273b1e564736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
642a234cd69068407d2456015322035fcb9963b2eb724a1dc503ed3bb6f0ea76
-----Decoded View---------------
Arg [0] : _root (bytes32): 0x642a234cd69068407d2456015322035fcb9963b2eb724a1dc503ed3bb6f0ea76
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 642a234cd69068407d2456015322035fcb9963b2eb724a1dc503ed3bb6f0ea76
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.