Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
MerkleTreeSWPxNFT
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "../interfaces/IAirdropClaim.sol"; import "../interfaces/ISWPxNFT.sol"; contract MerkleTreeSWPxNFT is Ownable { /// ============ Mutable storage ============ /// @notice ERC20-claimee inclusion root bytes32 public merkleRoot; /// @notice airdrop managment address public airdropClaim; address public nft; /// @notice Mapping of addresses who have claimed tokens mapping(uint256 => bool) public hasClaimed; /// ============ Errors ============ /// @notice Thrown if address has already claimed error AlreadyClaimed(address _who); /// @notice Thrown if address/amount are not part of Merkle tree error NotInMerkle(address _who, uint _amnt); /// ============ Constructor ============ /// @notice Creates a new MerkleClaimERC20 contract /// @param _airdropClaim claim manager constructor(address _airdropClaim, address _nft) { airdropClaim = _airdropClaim; nft = _nft; } /// ============ Events ============ /// @notice Emitted after a successful token claim /// @param who has right to claim /// @param to recipient of claim /// @param amount of tokens claimed event ClaimSet( address indexed who, address indexed to, uint256 tokenId, uint256 amount ); /// ============ Functions ============ /// @notice Allows claiming tokens if address is part of merkle tree /// @param tokenId token id which claims /// @param amount of tokens owed to claimee /// @param proof merkle proof to prove address and amount are in tree function claim( uint256 tokenId, uint256 amount, bytes32[] calldata proof ) external { // Throw if address has already claimed tokens if (hasClaimed[tokenId]) revert AlreadyClaimed(msg.sender); require(ISWPxNFT(nft).originalMinterOf(tokenId) == msg.sender, "Not an original minter"); // Verify merkle proof, or revert if not in tree bytes32 leaf = keccak256( abi.encodePacked(keccak256(abi.encodePacked(tokenId, amount))) ); bool isValidLeaf = MerkleProof.verify(proof, merkleRoot, leaf); if (!isValidLeaf) revert NotInMerkle(msg.sender, amount); // Set tokenId to claimed hasClaimed[tokenId] = true; // Mint tokens to address IAirdropClaim(airdropClaim).claim( msg.sender, amount, msg.sender ); // Emit claim event emit ClaimSet(msg.sender, msg.sender, tokenId, amount); } /// @notice Set Merkle Root (before starting the claim!) /// @param _merkleRoot merkle root function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { require(_merkleRoot != bytes32(0), "root 0"); require(merkleRoot == bytes32(0), "Already initialized"); merkleRoot = _merkleRoot; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view 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.8.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 rebuild 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 for 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) { 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 rebuild 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 for 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) { 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) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; interface IAirdropClaim { event Claimed(address indexed who, address indexed to, uint256 amount, uint256 veShareAmount, uint256 vestingShareAmount); function claim(address who, uint amount, address to) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; interface ISWPxNFT { function originalMinterOf(uint256 tokenId) external view returns (address); }
{ "optimizer": { "enabled": true, "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":"address","name":"_airdropClaim","type":"address"},{"internalType":"address","name":"_nft","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_who","type":"address"}],"name":"AlreadyClaimed","type":"error"},{"inputs":[{"internalType":"address","name":"_who","type":"address"},{"internalType":"uint256","name":"_amnt","type":"uint256"}],"name":"NotInMerkle","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"who","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"airdropClaim","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hasClaimed","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":"nft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516108bc3803806108bc83398101604081905261002f916100d5565b61003833610069565b600280546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055610108565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100d057600080fd5b919050565b600080604083850312156100e857600080fd5b6100f1836100b9565b91506100ff602084016100b9565b90509250929050565b6107a5806101176000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b146100fc578063ae0b51df1461010d578063b6d6ed4e14610120578063ce51650714610133578063f2fde38b1461016657600080fd5b80632eb4a7ab1461009857806347ccca02146100b4578063715018a6146100df5780637cb64759146100e9575b600080fd5b6100a160015481565b6040519081526020015b60405180910390f35b6003546100c7906001600160a01b031681565b6040516001600160a01b0390911681526020016100ab565b6100e7610179565b005b6100e76100f7366004610647565b61018d565b6000546001600160a01b03166100c7565b6100e761011b366004610660565b61021b565b6002546100c7906001600160a01b031681565b610156610141366004610647565b60046020526000908152604090205460ff1681565b60405190151581526020016100ab565b6100e76101743660046106f8565b61048f565b610181610508565b61018b6000610562565b565b610195610508565b806101d05760405162461bcd60e51b81526020600482015260066024820152650726f6f7420360d41b60448201526064015b60405180910390fd5b600154156102165760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016101c7565b600155565b60008481526004602052604090205460ff161561024d57604051632058b6db60e01b81523360048201526024016101c7565b6003546040516313bfa05360e11b81526004810186905233916001600160a01b03169063277f40a690602401602060405180830381865afa158015610296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ba9190610715565b6001600160a01b0316146103095760405162461bcd60e51b81526020600482015260166024820152752737ba1030b71037b934b3b4b730b61036b4b73a32b960511b60448201526064016101c7565b604080516020810186905290810184905260009060600160408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120905060006103988484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060015491508590506105b2565b9050806103c15760405163057365dd60e31b8152336004820152602481018690526044016101c7565b600086815260046020819052604091829020805460ff1916600117905560025491516304f4b51360e51b8152339181018290526024810188905260448101919091526001600160a01b0390911690639e96a26090606401600060405180830381600087803b15801561043257600080fd5b505af1158015610446573d6000803e3d6000fd5b505060408051898152602081018990523393508392507f8e826e4e62fa90b4a0df0cfb5760e85e326223c85e7e62ebc677b536cff89b7e910160405180910390a3505050505050565b610497610508565b6001600160a01b0381166104fc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101c7565b61050581610562565b50565b6000546001600160a01b0316331461018b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826105bf85846105c8565b14949350505050565b600081815b845181101561060d576105f9828683815181106105ec576105ec610732565b6020026020010151610615565b91508061060581610748565b9150506105cd565b509392505050565b6000818310610631576000828152602084905260409020610640565b60008381526020839052604090205b9392505050565b60006020828403121561065957600080fd5b5035919050565b6000806000806060858703121561067657600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561069c57600080fd5b818701915087601f8301126106b057600080fd5b8135818111156106bf57600080fd5b8860208260051b85010111156106d457600080fd5b95989497505060200194505050565b6001600160a01b038116811461050557600080fd5b60006020828403121561070a57600080fd5b8135610640816106e3565b60006020828403121561072757600080fd5b8151610640816106e3565b634e487b7160e01b600052603260045260246000fd5b60006001820161076857634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212205ec1cc3e8e67cf3e49f1901172aa9ef2a3bd0fb8cb5c606a66a099336be4f7c264736f6c634300080d0033000000000000000000000000f30ff95be2703b0403e3fb7ce607350fb4019e46000000000000000000000000619057ac4bdd28bbdc216e5a4f221850e4754ba0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b146100fc578063ae0b51df1461010d578063b6d6ed4e14610120578063ce51650714610133578063f2fde38b1461016657600080fd5b80632eb4a7ab1461009857806347ccca02146100b4578063715018a6146100df5780637cb64759146100e9575b600080fd5b6100a160015481565b6040519081526020015b60405180910390f35b6003546100c7906001600160a01b031681565b6040516001600160a01b0390911681526020016100ab565b6100e7610179565b005b6100e76100f7366004610647565b61018d565b6000546001600160a01b03166100c7565b6100e761011b366004610660565b61021b565b6002546100c7906001600160a01b031681565b610156610141366004610647565b60046020526000908152604090205460ff1681565b60405190151581526020016100ab565b6100e76101743660046106f8565b61048f565b610181610508565b61018b6000610562565b565b610195610508565b806101d05760405162461bcd60e51b81526020600482015260066024820152650726f6f7420360d41b60448201526064015b60405180910390fd5b600154156102165760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016101c7565b600155565b60008481526004602052604090205460ff161561024d57604051632058b6db60e01b81523360048201526024016101c7565b6003546040516313bfa05360e11b81526004810186905233916001600160a01b03169063277f40a690602401602060405180830381865afa158015610296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ba9190610715565b6001600160a01b0316146103095760405162461bcd60e51b81526020600482015260166024820152752737ba1030b71037b934b3b4b730b61036b4b73a32b960511b60448201526064016101c7565b604080516020810186905290810184905260009060600160408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120905060006103988484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060015491508590506105b2565b9050806103c15760405163057365dd60e31b8152336004820152602481018690526044016101c7565b600086815260046020819052604091829020805460ff1916600117905560025491516304f4b51360e51b8152339181018290526024810188905260448101919091526001600160a01b0390911690639e96a26090606401600060405180830381600087803b15801561043257600080fd5b505af1158015610446573d6000803e3d6000fd5b505060408051898152602081018990523393508392507f8e826e4e62fa90b4a0df0cfb5760e85e326223c85e7e62ebc677b536cff89b7e910160405180910390a3505050505050565b610497610508565b6001600160a01b0381166104fc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101c7565b61050581610562565b50565b6000546001600160a01b0316331461018b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826105bf85846105c8565b14949350505050565b600081815b845181101561060d576105f9828683815181106105ec576105ec610732565b6020026020010151610615565b91508061060581610748565b9150506105cd565b509392505050565b6000818310610631576000828152602084905260409020610640565b60008381526020839052604090205b9392505050565b60006020828403121561065957600080fd5b5035919050565b6000806000806060858703121561067657600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561069c57600080fd5b818701915087601f8301126106b057600080fd5b8135818111156106bf57600080fd5b8860208260051b85010111156106d457600080fd5b95989497505060200194505050565b6001600160a01b038116811461050557600080fd5b60006020828403121561070a57600080fd5b8135610640816106e3565b60006020828403121561072757600080fd5b8151610640816106e3565b634e487b7160e01b600052603260045260246000fd5b60006001820161076857634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212205ec1cc3e8e67cf3e49f1901172aa9ef2a3bd0fb8cb5c606a66a099336be4f7c264736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f30ff95be2703b0403e3fb7ce607350fb4019e46000000000000000000000000619057ac4bdd28bbdc216e5a4f221850e4754ba0
-----Decoded View---------------
Arg [0] : _airdropClaim (address): 0xF30FF95Be2703B0403e3fb7ce607350fB4019e46
Arg [1] : _nft (address): 0x619057aC4Bdd28BBDC216E5a4f221850E4754Ba0
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f30ff95be2703b0403e3fb7ce607350fb4019e46
Arg [1] : 000000000000000000000000619057ac4bdd28bbdc216e5a4f221850e4754ba0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.