Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 144 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer From | 21879109 | 5 days ago | IN | 0 ETH | 0.00010342 | ||||
Transfer From | 21879098 | 5 days ago | IN | 0 ETH | 0.00010735 | ||||
Transfer From | 21879087 | 5 days ago | IN | 0 ETH | 0.0001067 | ||||
Transfer From | 21879055 | 5 days ago | IN | 0 ETH | 0.00010175 | ||||
Transfer From | 21879015 | 5 days ago | IN | 0 ETH | 0.00009816 | ||||
Set Approval For... | 21827878 | 12 days ago | IN | 0 ETH | 0.00004155 | ||||
Set Approval For... | 21815086 | 14 days ago | IN | 0 ETH | 0.00006379 | ||||
Safe Transfer Fr... | 21802762 | 16 days ago | IN | 0 ETH | 0.00011749 | ||||
Safe Transfer Fr... | 21802761 | 16 days ago | IN | 0 ETH | 0.00013295 | ||||
Safe Transfer Fr... | 21802760 | 16 days ago | IN | 0 ETH | 0.00010169 | ||||
Safe Transfer Fr... | 21802759 | 16 days ago | IN | 0 ETH | 0.00011363 | ||||
Safe Transfer Fr... | 21802758 | 16 days ago | IN | 0 ETH | 0.00012484 | ||||
Safe Transfer Fr... | 21793719 | 17 days ago | IN | 0 ETH | 0.00009227 | ||||
Safe Transfer Fr... | 21793718 | 17 days ago | IN | 0 ETH | 0.00010295 | ||||
Safe Transfer Fr... | 21793717 | 17 days ago | IN | 0 ETH | 0.0000803 | ||||
Safe Transfer Fr... | 21793716 | 17 days ago | IN | 0 ETH | 0.00010294 | ||||
Safe Transfer Fr... | 21793715 | 17 days ago | IN | 0 ETH | 0.00010871 | ||||
Transfer From | 21786099 | 18 days ago | IN | 0 ETH | 0.00013542 | ||||
Transfer From | 21786096 | 18 days ago | IN | 0 ETH | 0.00013351 | ||||
Transfer From | 21786082 | 18 days ago | IN | 0 ETH | 0.00013634 | ||||
Transfer From | 21786072 | 18 days ago | IN | 0 ETH | 0.00012303 | ||||
Transfer From | 21782712 | 18 days ago | IN | 0 ETH | 0.00014781 | ||||
Safe Transfer Fr... | 21774994 | 19 days ago | IN | 0 ETH | 0.00015625 | ||||
Set Approval For... | 21761639 | 21 days ago | IN | 0 ETH | 0.00040785 | ||||
Safe Transfer Fr... | 21759613 | 22 days ago | IN | 0 ETH | 0.00060998 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DGCNFT
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 800 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; abstract contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor(address owner_) { _transferOwnership(owner_); } modifier onlyOwner() { _checkOwner(); _; } function owner() public view virtual returns (address) { return _owner; } function _checkOwner() internal view virtual { require(owner() == msg.sender, "Ownable: caller is not the owner"); } function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } abstract contract ReentrancyGuard { uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @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); } /** * @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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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); } /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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; } } /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } } interface IERC20 { function balanceOf(address owner) external view returns (uint); function transferFrom(address from, address to, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); } contract DGCNFT is ERC721Enumerable, ERC721Holder, Ownable, ReentrancyGuard { string public _internalBaseURI; uint256 public lastETHBalance; uint256 public totalRewards; // token ID => claimed rewards mapping(uint256 => uint256) public rewardsClaimed; address public DGC_ADDRESS = address(0xf9784980A84bCA67964c9560d576d6BF6Ea41D87); address public DEAD_ADDRESS = address(0x000000000000000000000000000000000000dEaD); uint256 public DGC_COST = 450 * 10 ** 18; uint256 public mintOpened; mapping(address => bool) public whitelist; event BaseURISet(string oldURI, string newURI); event RewardsClaimed(uint256 indexed tokenId, address indexed receipient, uint256 amount); constructor() ERC721("Mr D NFT", "MrD") Ownable(msg.sender) { mintOpened = block.timestamp; whitelist[0x0705579641949825dB8296f7E1EcB66Ba2C083Dc] = true; whitelist[0xB07f350bD1a4ae42f8483B52cCBA0FFe4Ce89dd1] = true; whitelist[0xB21D80aEf4BE71e4c38933334269AC5862e6D2E8] = true; whitelist[0xDd2Ff567fcE0981682660577Ead219974C6cCD0d] = true; whitelist[0x57cf0507aA8cd406117553eDfc949a01193acEA9] = true; whitelist[0xBea782Db67b528023BEcED384cCa014CaffaA160] = true; whitelist[0x8BF408DD6eFF3143c35EA3F78177be4B454EA0A8] = true; whitelist[0x7cC783c0FBA312fe08ccf48a30373C1112d39Bf6] = true; whitelist[0xFC4927D350176006FB7A910Eefc8dDEB5AD12147] = true; whitelist[0x76CD099B8060d313A391F54F8571A4D9163f67f4] = true; whitelist[0xD10E0C281256EE7cb6a8a30Ff485c3b16Fd46a64] = true; whitelist[0x956B5E91A6BE119300ad1cB144D2c07576C6022b] = true; whitelist[0x2ee0BCa0c57283620271f417040e78Ae9F753A87] = true; whitelist[0x3f8529CFbe1E3aA650Ff6F519F0FdD8e830e621F] = true; whitelist[0x2BA3901928cc1c52941e6E7D13Ba570c09857C33] = true; whitelist[0xa288060386a2C56223829082B6df8fc8210FD518] = true; whitelist[0xB22b2a77642541A07c4764C7E524215CA3f6b63F] = true; whitelist[0xD85912f75099126a3FB6B76ff3F0f59EB2355967] = true; whitelist[0xa8021AEcb8541328Fde1544224da0D526F3dA58D] = true; whitelist[0xDB79CF97d55a1dC820b4CAC494585b7dbEC12e14] = true; whitelist[0xF3bDB37F79A2Dab0B1328De4FE00115195512192] = true; whitelist[0x9Fb76D37De2ED2c1B339fC4451044aFf33049a8a] = true; whitelist[0xd170CDcB5d6d8FbF9E29e4743196c226EEa48239] = true; whitelist[0x9d07A4cFFDf537C8Cd106cD3ef6bC9B95f33b09E] = true; whitelist[0x18fd33CDB9B51663fB430eDBBc0D570e0764357E] = true; whitelist[0xD2F317F8Fc1aca78e20d19d60CC19a3279E675eC] = true; whitelist[0xfDA68F66824Ef2695DF85a5aaAc94097587D2893] = true; whitelist[0xBf2499e4Cda11Eb33eEa341Ae425d85B6e93F028] = true; whitelist[0xc71bABA8a9c40FBFE8B42b282EF3B4EC78Cb0d8F] = true; whitelist[0xc1aEFE146123200975ed882d2b40e2118DdEF913] = true; whitelist[0x3D00C05b44ce565EaeB7F43825d90Eb77662D2c4] = true; whitelist[0x8bf804f1e83b39B0E36c76BA99C3EF6bC0adF478] = true; whitelist[0xC35861074210Bf642706F62eF9f47ef62076ae10] = true; whitelist[0xa4761b295070D94d1B9DebC0516B14318883dA45] = true; whitelist[0xBb1D7ccBA90574024f4fa28243EFa1caFD899356] = true; whitelist[0x9a2050D7D7C0513a705D3EDdCB51E467FC9d890D] = true; whitelist[0x68e0Da3bD7D659c9F65B86c8B4e17196472A458E] = true; whitelist[0xc5474C806D76fbDEaeFC20c716fF6D2e7a41c5c8] = true; whitelist[0xf8B25089FE3cBb5Ec03f5a649379746F22b8b06b] = true; whitelist[0x0a79C3B71f53818D12aD33C54e127Ef3d36fC1b6] = true; whitelist[0x354fdC4ea2d741eb9fFaaCF7eA736D8cF3881327] = true; whitelist[0x66ffE7B56aF92ff2269D98b658D6D04cB481EF2E] = true; whitelist[0x1Aa8Bc352cC3950d6C09D55BeF8121D5727fEbA1] = true; whitelist[0xF344e4c2f64dA3EA5Dd0263DB395aa453Bb4BfF0] = true; whitelist[0x82F3f1c4349250B09023196deCe02bb811d000FF] = true; whitelist[0xF8eFE17661Ba1Fc89f9648aBc948987b5aa121C6] = true; whitelist[0x32570f3884d54E6f42A8309e8d4Daebf81668931] = true; _internalBaseURI = "ipfs://bafybeifjkrpshqj2ko7mqoalscvli6drczaszrzawfnxug4q756i4dku64/"; emit BaseURISet("", _internalBaseURI); } receive () external payable {} function setBaseURI(string memory baseURI_) external onlyOwner { require(keccak256(abi.encodePacked(_internalBaseURI)) != keccak256(abi.encodePacked(baseURI_))); string memory oldBaseURI = _internalBaseURI; _internalBaseURI = baseURI_; emit BaseURISet(oldBaseURI, baseURI_); } function claimRewards(uint256[] memory tokenIds) public nonReentrant { if (lastETHBalance < address(this).balance) { totalRewards += (address(this).balance - lastETHBalance); } uint256 claimable; uint256 tokenClaimable; for (uint i=0; i < tokenIds.length; i++) { require(ownerOf(tokenIds[i]) == msg.sender, "owner"); uint256 tokenTotalRewards = totalRewards / totalSupply(); uint256 tokenClaimedRewards = rewardsClaimed[tokenIds[i]]; if (tokenClaimedRewards < tokenTotalRewards) { rewardsClaimed[tokenIds[i]] = tokenTotalRewards; tokenClaimable = tokenTotalRewards - tokenClaimedRewards; claimable += tokenClaimable; emit RewardsClaimed(tokenIds[i], msg.sender, tokenClaimable); } } if (claimable > 0) { lastETHBalance = address(this).balance - claimable; (bool ok, ) = msg.sender.call{value: claimable}(""); require(ok, "clcall"); } } function unclaimedRewards(uint256 tokenId) public view returns (uint256) { uint256 totalRewards_ = totalRewards; if (lastETHBalance < address(this).balance) { totalRewards_ += (address(this).balance - lastETHBalance); } return (totalRewards / totalSupply()) - rewardsClaimed[tokenId]; } function unclaimedRewards(uint[] memory tokenIds) public view returns (uint256) { uint256 totalRewards_ = totalRewards; if (lastETHBalance < address(this).balance) { totalRewards_ += (address(this).balance - lastETHBalance); } uint256 claimable; uint256 tokenClaimable; for (uint i=0; i < tokenIds.length; i++) { require(ownerOf(tokenIds[i]) == msg.sender); uint256 tokenTotalRewards = totalRewards / totalSupply(); uint256 tokenClaimedRewards = rewardsClaimed[tokenIds[i]]; if (tokenClaimedRewards < tokenTotalRewards) { tokenClaimable = tokenTotalRewards - tokenClaimedRewards; claimable += tokenClaimable; } } return claimable; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override { super._beforeTokenTransfer(from, to, tokenId); } function _baseURI() internal view override returns (string memory) { return _internalBaseURI; } function modifyWhitelist(address user, bool status) external onlyOwner { whitelist[user] = status; } function mintNFT() external { uint256 nextTokenId = ERC721Enumerable.totalSupply(); //75 require(nextTokenId < 75, "mintlim"); require(ERC721.balanceOf(msg.sender) == 0, "w_lim"); //needs approval for contract to spend 450 DGC tokens //transfer 450 DGC from msg.sender to dead address require(IERC20(DGC_ADDRESS).balanceOf(msg.sender) >= DGC_COST, "dgc_bal"); require(IERC20(DGC_ADDRESS).transferFrom(msg.sender, DEAD_ADDRESS, DGC_COST), "dgctf"); //86400 - 93600 if (block.timestamp - mintOpened < 93600) { require(whitelist[msg.sender] == true, "wl"); } super._mint(msg.sender, nextTokenId); } function rescueERC20(address _address) external { bool ret = IERC20(_address).transfer(owner(), IERC20(_address).balanceOf(address(this))); require(ret); } }
{ "optimizer": { "enabled": true, "runs": 800 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldURI","type":"string"},{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"BaseURISet","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEAD_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DGC_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DGC_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_internalBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastETHBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintOpened","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"modifyWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardsClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unclaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unclaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052601080546001600160a01b031990811673f9784980a84bca67964c9560d576d6bf6ea41d87179091556011805490911661dead1790556818650127cc3dc8000060125534801561005357600080fd5b503360405180604001604052806008815260200167135c88110813919560c21b81525060405180604001604052806003815260200162135c9160ea1b81525081600090816100a191906109d1565b5060016100ae82826109d1565b5050506100c0816108de60201b60201c565b506001600b81905542601355601460209081527ffed4e5e170f8eaa9da88b533a939b71099a2d5c91932ede95250f2c7e6f8ca2b805460ff1990811684179091557f6d64e4f0440af10e7f3503997bd0bd1085659cac3486d07bb857b17c857ef8e480548216841790557f90cbd20d952c06c8021cfb67d71f31a7df29da20ac75a90390fe5b51aa23245b80548216841790557fa8e264339691a08f9320eaf21c66c75265c7642044a41a70d5941841a0ea973480548216841790557f4db9808f67ca3dc621bdfcec1edc3e1e9a3edde6d4e40f99afdfa66c36e89dd080548216841790557f4c59ce29e723352d15fafbc598e029df1abfe8267922f7234ed721954fcd3b9e80548216841790557fa4cfa27c1f6571da2d6dcbb5d820e8a3b30635660f00b0553443a37698865f1380548216841790557f12bd4d54c1b2f6fc685faf89a028db5b1fffd0001572d7e06b7918aaa0eee46680548216841790557fcd1656ae90b16e36bf546b750780afacb944d61d0c4f239dfc9d9d347dc600b280548216841790557f26302dffdf74dd9c911fbceae7ccb6ed6e6fe6e6d3d9c75048752ff64ef5feb580548216841790557fa4e5769c92b49aaf416f1aba4268a5ddd548dfc5fb47f946cd5cb85af027819d80548216841790557f2ef3ce1ed49ff4e45d8a6a182622c5decaee5070edb97f8d9001ab7fb788318b80548216841790557f7d8139573e179701084d4313f38046c0254a7d4d07db2d213735cfe4db192b8580548216841790557feebea0cf0db47065337d7a55e3fd1e81004d24d3f5e7d200047a9a6d36b2332780548216841790557fe0cd58d5ae678d7a1ff9564078a1a03a2c4f256779c85dd6f659af7c07cfe9e980548216841790557ffa60b488b7689281fbc25b723b6efd35f406c79a7e5bd565dd13a47dddd663c180548216841790557f20b1ca6e3d0b4b6cd250a8e9503a569638087b49612cb37aa7b577de5985174080548216841790557f274555cfe6bd51d4110295ed1e65ba240b8b306ba656d848fa7b4829863f16f480548216841790557f9220ac438fd1b41380dc98f9e0a841c7d3355a75f788a616e49aecc94337b80480548216841790557f3c34c17ea4a2d7ddfcafa193e11042524e639507850508b9457fc8374793bea480548216841790557f8cea63435cf4746c225ca9def6bbf515345c4f3507f3bb4b007c9a27b07db82180548216841790557f71700271e8706124c126b4c706a49164be7476af8d171cdfb955e1a94501053480548216841790557f3741d198937c981b3b411804983e01cf7f19e98ec6512157a3fc1df7937289db80548216841790557f8cecbebbb1515a576323fcbcf8675fc726102bc06116a9ce0c69ec8c4e2a7e3080548216841790557fe36e5d43cf6477a00c031d189b90c3c00e7b54046ad1bbaf2c713818c1aefcd480548216841790557faed01617a7edd219fee6c64d1e601b2f79ba90fcc9507091ed15cce0f562ae6580548216841790557f50d8e93e8fca6b4a81fcc0e89b2ec4696a397f1466cfbd571580c17e855b723580548216841790557f59b8ae170aa3e2aef0f7ec44970971fb6c3dac861070969f1df06eae0393e0d380548216841790557ff5cb183c49bfb4b3e6966979dbd3d0a891f23f405ed867fcf2a8ee8d4d36887580548216841790557fca779fe107544ed93b933d86cfb0269c25e358598a1098bcedfb57d0d7dd728280548216841790557f56d9cab583d718ad2488edb186f704dfcacaca3bd7b3c754ad947b949210811080548216841790557f7e3444f21f2bca3591619136c0924233231dcd8500e2aea7b51b673d6782dfc280548216841790557fbb49ba5525238b08cc9f9f98f13e178ea66ebba84dfea96ad128db1ba81d7f0780548216841790557fa8dec01607ba7f417b0dbdfde890ad59c2ed356ca93597987c136d8db6002ce380548216841790557fa99fd2b62e270ba3592208815659a0da2e6424560be927e6464473d553a3fea280548216841790557fbe1e46d0fa8322dff6c25e6c79b89156364f02aae6e2b4e592ae25bd60e9fee780548216841790557f36df14d209b3f2cd15f22e5098b29fb1904353cff66854ce5aa6fd37fec71d3d80548216841790557f7d7581a0a8d76ab4d4278f7eb5c079f595c3497496fa0a3445592373088dc7be80548216841790557f87c4aa835d4525af28a0099b4b4e5e2b4efd8e3c192e219d0359ceb59a5fe24880548216841790557f43cc82ca0278b250f47802f30cf625dfcb443351ac9e4eb895516f4c2f6b8ea080548216841790557f92522e9a1a9455ea4e5f3320b4e8b5f5550026bbc86aed5620d7dc9e7e48ab2f80548216841790557f10b9e7d637ad1f73412e4760921a7223f5c464c1fd4be45a73d36f12005bec4d80548216841790557f475566d2ec63b70c47398157921ca2d9b65c596b0a5b9298f6a6906a2b4b4ff480548216841790557f0f4fa906fd2d35962fc6ff88a2b2a64d8f71d7395e083bd504084bc472ead10480548216841790557f133848e23624b077f6dcba8f602850e14d8a76fcab3f3466a4899be09257e89380548216841790557fdf26f483b7c885e5c31d4abee5a78c9edda57d06e503eaee233ebea30521c30380548216841790557332570f3884d54e6f42a8309e8d4daebf816689316000527f13e301cef5164bf0fd0fb2e71edd1dbcee0880c85947ebec3c78d8253289908580549091169092179091556040805160808101909152604380825290916135ae90830139600c906108a090826109d1565b507f2e0a5b969d96a99aee0b35787d9a60516a02ca6f528a5f66d3f936468d8f0382600c6040516108d19190610a90565b60405180910390a1610b2f565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061095a57607f821691505b60208210810361097a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109cc576000816000526020600020601f850160051c810160208610156109a95750805b601f850160051c820191505b818110156109c8578281556001016109b5565b5050505b505050565b81516001600160401b038111156109ea576109ea610930565b6109fe816109f88454610946565b84610980565b602080601f831160018114610a335760008415610a1b5750858301515b600019600386901b1c1916600185901b1785556109c8565b600085815260208120601f198616915b82811015610a6257888601518255948401946001909101908401610a43565b5085821015610a805787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6040815260006040820152600060206060602084015260008454610ab381610946565b8060608701526080600180841660008114610ad55760018114610af157610b21565b60ff19851660808a0152608084151560051b8a01019550610b21565b89600052602060002060005b85811015610b185781548b8201860152908301908801610afd565b8a016080019650505b509398975050505050505050565b612a7080610b3e6000396000f3fe6080604052600436106102535760003560e01c80635eac6239116101385780639dd95abe116100b0578063ccec37161161007f578063e985e9c511610064578063e985e9c51461069d578063e9bafb9f146106e6578063f2fde38b146106fc57600080fd5b8063ccec371614610668578063e45ec8ac1461068857600080fd5b80639dd95abe146105e8578063a22cb46514610608578063b88d4fde14610628578063c87b56dd1461064857600080fd5b8063881adeff1161010757806395d89b41116100ec57806395d89b411461058d5780639b19251a146105a25780639b70a340146105d257600080fd5b8063881adeff146105595780638da5cb5b1461056f57600080fd5b80635eac6239146104e45780636352211e1461050457806370a0823114610524578063715018a61461054457600080fd5b806318160ddd116101cb57806342842e0e1161019a5780634f6ccce71161017f5780634f6ccce71461047757806355f804b3146104975780635685c466146104b757600080fd5b806342842e0e146104375780634e6fd6c41461045757600080fd5b806318160ddd146103c257806323b872dd146103d75780632f745c59146103f75780633ce510a71461041757600080fd5b8063095ea7b31161022257806314f710fe1161020757806314f710fe14610354578063150b7a02146103695780631772188e146103a257600080fd5b8063095ea7b3146103105780630e15561a1461033057600080fd5b806301ffc9a71461025f578063060d206e1461029457806306fdde03146102b6578063081812fc146102d857600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027f61027a3660046122fb565b61071c565b60405190151581526020015b60405180910390f35b3480156102a057600080fd5b506102b46102af366004612342565b610747565b005b3480156102c257600080fd5b506102cb61077a565b60405161028b91906123c9565b3480156102e457600080fd5b506102f86102f33660046123dc565b61080c565b6040516001600160a01b03909116815260200161028b565b34801561031c57600080fd5b506102b461032b3660046123f5565b610833565b34801561033c57600080fd5b50610346600e5481565b60405190815260200161028b565b34801561036057600080fd5b506102b461094d565b34801561037557600080fd5b506103896103843660046124be565b610bfa565b6040516001600160e01b0319909116815260200161028b565b3480156103ae57600080fd5b506103466103bd3660046123dc565b610c0b565b3480156103ce57600080fd5b50600854610346565b3480156103e357600080fd5b506102b46103f236600461253a565b610c67565b34801561040357600080fd5b506103466104123660046123f5565b610cdf565b34801561042357600080fd5b50610346610432366004612576565b610d87565b34801561044357600080fd5b506102b461045236600461253a565b610e81565b34801561046357600080fd5b506011546102f8906001600160a01b031681565b34801561048357600080fd5b506103466104923660046123dc565b610e9c565b3480156104a357600080fd5b506102b46104b236600461261c565b610f40565b3480156104c357600080fd5b506103466104d23660046123dc565b600f6020526000908152604090205481565b3480156104f057600080fd5b506102b46104ff366004612576565b61107d565b34801561051057600080fd5b506102f861051f3660046123dc565b6112df565b34801561053057600080fd5b5061034661053f366004612665565b611344565b34801561055057600080fd5b506102b46113de565b34801561056557600080fd5b50610346600d5481565b34801561057b57600080fd5b50600a546001600160a01b03166102f8565b34801561059957600080fd5b506102cb6113f2565b3480156105ae57600080fd5b5061027f6105bd366004612665565b60146020526000908152604090205460ff1681565b3480156105de57600080fd5b5061034660135481565b3480156105f457600080fd5b506010546102f8906001600160a01b031681565b34801561061457600080fd5b506102b4610623366004612342565b611401565b34801561063457600080fd5b506102b46106433660046124be565b611410565b34801561065457600080fd5b506102cb6106633660046123dc565b61148f565b34801561067457600080fd5b506102b4610683366004612665565b6114f5565b34801561069457600080fd5b506102cb6115fb565b3480156106a957600080fd5b5061027f6106b8366004612680565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106f257600080fd5b5061034660125481565b34801561070857600080fd5b506102b4610717366004612665565b611689565b60006001600160e01b0319821663780e9d6360e01b1480610741575061074182611716565b92915050565b61074f611766565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b606060008054610789906126b3565b80601f01602080910402602001604051908101604052809291908181526020018280546107b5906126b3565b80156108025780601f106107d757610100808354040283529160200191610802565b820191906000526020600020905b8154815290600101906020018083116107e557829003601f168201915b5050505050905090565b6000610817826117cf565b506000908152600460205260409020546001600160a01b031690565b600061083e826112df565b9050806001600160a01b0316836001600160a01b0316036108b05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108cc57506108cc81336106b8565b61093e5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108a7565b6109488383611833565b505050565b600061095860085490565b9050604b81106109aa5760405162461bcd60e51b815260206004820152600760248201527f6d696e746c696d0000000000000000000000000000000000000000000000000060448201526064016108a7565b6109b333611344565b15610a005760405162461bcd60e51b815260206004820152600560248201527f775f6c696d00000000000000000000000000000000000000000000000000000060448201526064016108a7565b6012546010546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610a4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f91906126ed565b1015610abd5760405162461bcd60e51b815260206004820152600760248201527f6467635f62616c0000000000000000000000000000000000000000000000000060448201526064016108a7565b6010546011546012546040516323b872dd60e01b81523360048201526001600160a01b03928316602482015260448101919091529116906323b872dd906064016020604051808303816000875af1158015610b1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b409190612706565b610b8c5760405162461bcd60e51b815260206004820152600560248201527f646763746600000000000000000000000000000000000000000000000000000060448201526064016108a7565b62016da060135442610b9e9190612739565b1015610bed573360009081526014602052604090205460ff161515600114610bed5760405162461bcd60e51b81526020600482015260026024820152611ddb60f21b60448201526064016108a7565b610bf733826118a1565b50565b630a85bd0160e11b5b949350505050565b600080600e54905047600d541015610c3757600d54610c2a9047612739565b610c34908261274c565b90505b6000838152600f6020526040902054600854600e54610c569190612775565b610c609190612739565b9392505050565b610c7133826119ef565b610cd45760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b60648201526084016108a7565b610948838383611a6d565b6000610cea83611344565b8210610d5e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016108a7565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600080600e54905047600d541015610db357600d54610da69047612739565b610db0908261274c565b90505b60008060005b8551811015610e7757336001600160a01b0316610dee878381518110610de157610de1612789565b60200260200101516112df565b6001600160a01b031614610e0157600080fd5b6000610e0c60085490565b600e54610e199190612775565b90506000600f6000898581518110610e3357610e33612789565b6020026020010151815260200190815260200160002054905081811015610e6d57610e5e8183612739565b9350610e6a848661274c565b94505b5050600101610db9565b5090949350505050565b61094883838360405180602001604052806000815250611410565b6000610ea760085490565b8210610f1b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016108a7565b60088281548110610f2e57610f2e612789565b90600052602060002001549050919050565b610f48611766565b80604051602001610f59919061279f565b60405160208183030381529060405280519060200120600c604051602001610f8191906127bb565b6040516020818303038152906040528051906020012003610fa157600080fd5b6000600c8054610fb0906126b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdc906126b3565b80156110295780601f10610ffe57610100808354040283529160200191611029565b820191906000526020600020905b81548152906001019060200180831161100c57829003601f168201915b5050505050905081600c908161103f9190612881565b507f2e0a5b969d96a99aee0b35787d9a60516a02ca6f528a5f66d3f936468d8f03828183604051611071929190612941565b60405180910390a15050565b611085611c14565b47600d5410156110b357600d5461109c9047612739565b600e60008282546110ad919061274c565b90915550505b60008060005b835181101561122557336001600160a01b03166110e1858381518110610de157610de1612789565b6001600160a01b03161461111f5760405162461bcd60e51b815260206004820152600560248201526437bbb732b960d91b60448201526064016108a7565b600061112a60085490565b600e546111379190612775565b90506000600f600087858151811061115157611151612789565b602002602001015181526020019081526020016000205490508181101561121b5781600f600088868151811061118957611189612789565b602002602001015181526020019081526020016000208190555080826111af9190612739565b93506111bb848661274c565b9450336001600160a01b03168684815181106111d9576111d9612789565b60200260200101517f3300bdb359cfb956935bca32e9db727413eab1ca84341f2e36caea85bb7969688660405161121291815260200190565b60405180910390a35b50506001016110b9565b5081156112d3576112368247612739565b600d55604051600090339084908381818185875af1925050503d806000811461127b576040519150601f19603f3d011682016040523d82523d6000602084013e611280565b606091505b50509050806112d15760405162461bcd60e51b815260206004820152600660248201527f636c63616c6c000000000000000000000000000000000000000000000000000060448201526064016108a7565b505b5050610bf76001600b55565b6000818152600260205260408120546001600160a01b0316806107415760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108a7565b60006001600160a01b0382166113c25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016108a7565b506001600160a01b031660009081526003602052604090205490565b6113e6611766565b6113f06000611c6d565b565b606060018054610789906126b3565b61140c338383611cbf565b5050565b61141a33836119ef565b61147d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b60648201526084016108a7565b61148984848484611d8d565b50505050565b606061149a826117cf565b60006114a4611e16565b905060008151116114c45760405180602001604052806000815250610c60565b806114ce84611e25565b6040516020016114df92919061296f565b6040516020818303038152906040529392505050565b6000816001600160a01b031663a9059cbb611518600a546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa15801561155c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158091906126ed565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156115cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ef9190612706565b90508061140c57600080fd5b600c8054611608906126b3565b80601f0160208091040260200160405190810160405280929190818152602001828054611634906126b3565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b505050505081565b611691611766565b6001600160a01b03811661170d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108a7565b610bf781611c6d565b60006001600160e01b031982166380ac58cd60e01b148061174757506001600160e01b03198216635b5e139f60e01b145b8061074157506301ffc9a760e01b6001600160e01b0319831614610741565b33611779600a546001600160a01b031690565b6001600160a01b0316146113f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a7565b6000818152600260205260409020546001600160a01b0316610bf75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108a7565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611868826112df565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166118f75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108a7565b6000818152600260205260409020546001600160a01b03161561195c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108a7565b61196860008383611f3e565b6001600160a01b038216600090815260036020526040812080546001929061199190849061274c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806119fb836112df565b9050806001600160a01b0316846001600160a01b03161480611a4257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610c035750836001600160a01b0316611a5b8461080c565b6001600160a01b031614949350505050565b826001600160a01b0316611a80826112df565b6001600160a01b031614611ae45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108a7565b6001600160a01b038216611b465760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108a7565b611b51838383611f3e565b611b5c600082611833565b6001600160a01b0383166000908152600360205260408120805460019290611b85908490612739565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bb390849061274c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6002600b5403611c665760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a7565b6002600b55565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611d205760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108a7565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d98848484611a6d565b611da484848484611f49565b6114895760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108a7565b6060600c8054610789906126b3565b606081600003611e4c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e765780611e608161299e565b9150611e6f9050600a83612775565b9150611e50565b60008167ffffffffffffffff811115611e9157611e9161241f565b6040519080825280601f01601f191660200182016040528015611ebb576020820181803683370190505b5090505b8415610c0357611ed0600183612739565b9150611edd600a866129b7565b611ee890603061274c565b60f81b818381518110611efd57611efd612789565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f37600a86612775565b9450611ebf565b61094883838361209d565b60006001600160a01b0384163b1561209557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f8d9033908990889088906004016129cb565b6020604051808303816000875af1925050508015611fc8575060408051601f3d908101601f19168201909252611fc591810190612a07565b60015b61207b573d808015611ff6576040519150601f19603f3d011682016040523d82523d6000602084013e611ffb565b606091505b5080516000036120735760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108a7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c03565b506001610c03565b6001600160a01b0383166120f8576120f381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61211b565b816001600160a01b0316836001600160a01b03161461211b5761211b8382612155565b6001600160a01b03821661213257610948816121f2565b826001600160a01b0316826001600160a01b0316146109485761094882826122a1565b6000600161216284611344565b61216c9190612739565b6000838152600760205260409020549091508082146121bf576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061220490600190612739565b6000838152600960205260408120546008805493945090928490811061222c5761222c612789565b90600052602060002001549050806008838154811061224d5761224d612789565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061228557612285612a24565b6001900381819060005260206000200160009055905550505050565b60006122ac83611344565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610bf757600080fd5b60006020828403121561230d57600080fd5b8135610c60816122e5565b80356001600160a01b038116811461232f57600080fd5b919050565b8015158114610bf757600080fd5b6000806040838503121561235557600080fd5b61235e83612318565b9150602083013561236e81612334565b809150509250929050565b60005b8381101561239457818101518382015260200161237c565b50506000910152565b600081518084526123b5816020860160208601612379565b601f01601f19169290920160200192915050565b602081526000610c60602083018461239d565b6000602082840312156123ee57600080fd5b5035919050565b6000806040838503121561240857600080fd5b61241183612318565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561245e5761245e61241f565b604052919050565b600067ffffffffffffffff8311156124805761248061241f565b612493601f8401601f1916602001612435565b90508281528383830111156124a757600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156124d457600080fd5b6124dd85612318565b93506124eb60208601612318565b925060408501359150606085013567ffffffffffffffff81111561250e57600080fd5b8501601f8101871361251f57600080fd5b61252e87823560208401612466565b91505092959194509250565b60008060006060848603121561254f57600080fd5b61255884612318565b925061256660208501612318565b9150604084013590509250925092565b6000602080838503121561258957600080fd5b823567ffffffffffffffff808211156125a157600080fd5b818501915085601f8301126125b557600080fd5b8135818111156125c7576125c761241f565b8060051b91506125d8848301612435565b81815291830184019184810190888411156125f257600080fd5b938501935b83851015612610578435825293850193908501906125f7565b98975050505050505050565b60006020828403121561262e57600080fd5b813567ffffffffffffffff81111561264557600080fd5b8201601f8101841361265657600080fd5b610c0384823560208401612466565b60006020828403121561267757600080fd5b610c6082612318565b6000806040838503121561269357600080fd5b61269c83612318565b91506126aa60208401612318565b90509250929050565b600181811c908216806126c757607f821691505b6020821081036126e757634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156126ff57600080fd5b5051919050565b60006020828403121561271857600080fd5b8151610c6081612334565b634e487b7160e01b600052601160045260246000fd5b8181038181111561074157610741612723565b8082018082111561074157610741612723565b634e487b7160e01b600052601260045260246000fd5b6000826127845761278461275f565b500490565b634e487b7160e01b600052603260045260246000fd5b600082516127b1818460208701612379565b9190910192915050565b60008083546127c9816126b3565b600182811680156127e157600181146127f657612825565b60ff1984168752821515830287019450612825565b8760005260208060002060005b8581101561281c5781548a820152908401908201612803565b50505082870194505b50929695505050505050565b601f821115610948576000816000526020600020601f850160051c8101602086101561285a5750805b601f850160051c820191505b8181101561287957828155600101612866565b505050505050565b815167ffffffffffffffff81111561289b5761289b61241f565b6128af816128a984546126b3565b84612831565b602080601f8311600181146128e457600084156128cc5750858301515b600019600386901b1c1916600185901b178555612879565b600085815260208120601f198616915b82811015612913578886015182559484019460019091019084016128f4565b50858210156129315787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000612954604083018561239d565b8281036020840152612966818561239d565b95945050505050565b60008351612981818460208801612379565b835190830190612995818360208801612379565b01949350505050565b6000600182016129b0576129b0612723565b5060010190565b6000826129c6576129c661275f565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526129fd608083018461239d565b9695505050505050565b600060208284031215612a1957600080fd5b8151610c60816122e5565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e7aec068a2ef2379ec2fabc7ad5df1aa5092bc765c181da0cf48a7727d23531064736f6c63430008190033697066733a2f2f62616679626569666a6b72707368716a326b6f376d716f616c7363766c69366472637a61737a727a6177666e78756734713735366934646b7536342f
Deployed Bytecode
0x6080604052600436106102535760003560e01c80635eac6239116101385780639dd95abe116100b0578063ccec37161161007f578063e985e9c511610064578063e985e9c51461069d578063e9bafb9f146106e6578063f2fde38b146106fc57600080fd5b8063ccec371614610668578063e45ec8ac1461068857600080fd5b80639dd95abe146105e8578063a22cb46514610608578063b88d4fde14610628578063c87b56dd1461064857600080fd5b8063881adeff1161010757806395d89b41116100ec57806395d89b411461058d5780639b19251a146105a25780639b70a340146105d257600080fd5b8063881adeff146105595780638da5cb5b1461056f57600080fd5b80635eac6239146104e45780636352211e1461050457806370a0823114610524578063715018a61461054457600080fd5b806318160ddd116101cb57806342842e0e1161019a5780634f6ccce71161017f5780634f6ccce71461047757806355f804b3146104975780635685c466146104b757600080fd5b806342842e0e146104375780634e6fd6c41461045757600080fd5b806318160ddd146103c257806323b872dd146103d75780632f745c59146103f75780633ce510a71461041757600080fd5b8063095ea7b31161022257806314f710fe1161020757806314f710fe14610354578063150b7a02146103695780631772188e146103a257600080fd5b8063095ea7b3146103105780630e15561a1461033057600080fd5b806301ffc9a71461025f578063060d206e1461029457806306fdde03146102b6578063081812fc146102d857600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027f61027a3660046122fb565b61071c565b60405190151581526020015b60405180910390f35b3480156102a057600080fd5b506102b46102af366004612342565b610747565b005b3480156102c257600080fd5b506102cb61077a565b60405161028b91906123c9565b3480156102e457600080fd5b506102f86102f33660046123dc565b61080c565b6040516001600160a01b03909116815260200161028b565b34801561031c57600080fd5b506102b461032b3660046123f5565b610833565b34801561033c57600080fd5b50610346600e5481565b60405190815260200161028b565b34801561036057600080fd5b506102b461094d565b34801561037557600080fd5b506103896103843660046124be565b610bfa565b6040516001600160e01b0319909116815260200161028b565b3480156103ae57600080fd5b506103466103bd3660046123dc565b610c0b565b3480156103ce57600080fd5b50600854610346565b3480156103e357600080fd5b506102b46103f236600461253a565b610c67565b34801561040357600080fd5b506103466104123660046123f5565b610cdf565b34801561042357600080fd5b50610346610432366004612576565b610d87565b34801561044357600080fd5b506102b461045236600461253a565b610e81565b34801561046357600080fd5b506011546102f8906001600160a01b031681565b34801561048357600080fd5b506103466104923660046123dc565b610e9c565b3480156104a357600080fd5b506102b46104b236600461261c565b610f40565b3480156104c357600080fd5b506103466104d23660046123dc565b600f6020526000908152604090205481565b3480156104f057600080fd5b506102b46104ff366004612576565b61107d565b34801561051057600080fd5b506102f861051f3660046123dc565b6112df565b34801561053057600080fd5b5061034661053f366004612665565b611344565b34801561055057600080fd5b506102b46113de565b34801561056557600080fd5b50610346600d5481565b34801561057b57600080fd5b50600a546001600160a01b03166102f8565b34801561059957600080fd5b506102cb6113f2565b3480156105ae57600080fd5b5061027f6105bd366004612665565b60146020526000908152604090205460ff1681565b3480156105de57600080fd5b5061034660135481565b3480156105f457600080fd5b506010546102f8906001600160a01b031681565b34801561061457600080fd5b506102b4610623366004612342565b611401565b34801561063457600080fd5b506102b46106433660046124be565b611410565b34801561065457600080fd5b506102cb6106633660046123dc565b61148f565b34801561067457600080fd5b506102b4610683366004612665565b6114f5565b34801561069457600080fd5b506102cb6115fb565b3480156106a957600080fd5b5061027f6106b8366004612680565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106f257600080fd5b5061034660125481565b34801561070857600080fd5b506102b4610717366004612665565b611689565b60006001600160e01b0319821663780e9d6360e01b1480610741575061074182611716565b92915050565b61074f611766565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b606060008054610789906126b3565b80601f01602080910402602001604051908101604052809291908181526020018280546107b5906126b3565b80156108025780601f106107d757610100808354040283529160200191610802565b820191906000526020600020905b8154815290600101906020018083116107e557829003601f168201915b5050505050905090565b6000610817826117cf565b506000908152600460205260409020546001600160a01b031690565b600061083e826112df565b9050806001600160a01b0316836001600160a01b0316036108b05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108cc57506108cc81336106b8565b61093e5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108a7565b6109488383611833565b505050565b600061095860085490565b9050604b81106109aa5760405162461bcd60e51b815260206004820152600760248201527f6d696e746c696d0000000000000000000000000000000000000000000000000060448201526064016108a7565b6109b333611344565b15610a005760405162461bcd60e51b815260206004820152600560248201527f775f6c696d00000000000000000000000000000000000000000000000000000060448201526064016108a7565b6012546010546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610a4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f91906126ed565b1015610abd5760405162461bcd60e51b815260206004820152600760248201527f6467635f62616c0000000000000000000000000000000000000000000000000060448201526064016108a7565b6010546011546012546040516323b872dd60e01b81523360048201526001600160a01b03928316602482015260448101919091529116906323b872dd906064016020604051808303816000875af1158015610b1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b409190612706565b610b8c5760405162461bcd60e51b815260206004820152600560248201527f646763746600000000000000000000000000000000000000000000000000000060448201526064016108a7565b62016da060135442610b9e9190612739565b1015610bed573360009081526014602052604090205460ff161515600114610bed5760405162461bcd60e51b81526020600482015260026024820152611ddb60f21b60448201526064016108a7565b610bf733826118a1565b50565b630a85bd0160e11b5b949350505050565b600080600e54905047600d541015610c3757600d54610c2a9047612739565b610c34908261274c565b90505b6000838152600f6020526040902054600854600e54610c569190612775565b610c609190612739565b9392505050565b610c7133826119ef565b610cd45760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b60648201526084016108a7565b610948838383611a6d565b6000610cea83611344565b8210610d5e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016108a7565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600080600e54905047600d541015610db357600d54610da69047612739565b610db0908261274c565b90505b60008060005b8551811015610e7757336001600160a01b0316610dee878381518110610de157610de1612789565b60200260200101516112df565b6001600160a01b031614610e0157600080fd5b6000610e0c60085490565b600e54610e199190612775565b90506000600f6000898581518110610e3357610e33612789565b6020026020010151815260200190815260200160002054905081811015610e6d57610e5e8183612739565b9350610e6a848661274c565b94505b5050600101610db9565b5090949350505050565b61094883838360405180602001604052806000815250611410565b6000610ea760085490565b8210610f1b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016108a7565b60088281548110610f2e57610f2e612789565b90600052602060002001549050919050565b610f48611766565b80604051602001610f59919061279f565b60405160208183030381529060405280519060200120600c604051602001610f8191906127bb565b6040516020818303038152906040528051906020012003610fa157600080fd5b6000600c8054610fb0906126b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdc906126b3565b80156110295780601f10610ffe57610100808354040283529160200191611029565b820191906000526020600020905b81548152906001019060200180831161100c57829003601f168201915b5050505050905081600c908161103f9190612881565b507f2e0a5b969d96a99aee0b35787d9a60516a02ca6f528a5f66d3f936468d8f03828183604051611071929190612941565b60405180910390a15050565b611085611c14565b47600d5410156110b357600d5461109c9047612739565b600e60008282546110ad919061274c565b90915550505b60008060005b835181101561122557336001600160a01b03166110e1858381518110610de157610de1612789565b6001600160a01b03161461111f5760405162461bcd60e51b815260206004820152600560248201526437bbb732b960d91b60448201526064016108a7565b600061112a60085490565b600e546111379190612775565b90506000600f600087858151811061115157611151612789565b602002602001015181526020019081526020016000205490508181101561121b5781600f600088868151811061118957611189612789565b602002602001015181526020019081526020016000208190555080826111af9190612739565b93506111bb848661274c565b9450336001600160a01b03168684815181106111d9576111d9612789565b60200260200101517f3300bdb359cfb956935bca32e9db727413eab1ca84341f2e36caea85bb7969688660405161121291815260200190565b60405180910390a35b50506001016110b9565b5081156112d3576112368247612739565b600d55604051600090339084908381818185875af1925050503d806000811461127b576040519150601f19603f3d011682016040523d82523d6000602084013e611280565b606091505b50509050806112d15760405162461bcd60e51b815260206004820152600660248201527f636c63616c6c000000000000000000000000000000000000000000000000000060448201526064016108a7565b505b5050610bf76001600b55565b6000818152600260205260408120546001600160a01b0316806107415760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108a7565b60006001600160a01b0382166113c25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016108a7565b506001600160a01b031660009081526003602052604090205490565b6113e6611766565b6113f06000611c6d565b565b606060018054610789906126b3565b61140c338383611cbf565b5050565b61141a33836119ef565b61147d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b60648201526084016108a7565b61148984848484611d8d565b50505050565b606061149a826117cf565b60006114a4611e16565b905060008151116114c45760405180602001604052806000815250610c60565b806114ce84611e25565b6040516020016114df92919061296f565b6040516020818303038152906040529392505050565b6000816001600160a01b031663a9059cbb611518600a546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa15801561155c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158091906126ed565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156115cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ef9190612706565b90508061140c57600080fd5b600c8054611608906126b3565b80601f0160208091040260200160405190810160405280929190818152602001828054611634906126b3565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b505050505081565b611691611766565b6001600160a01b03811661170d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108a7565b610bf781611c6d565b60006001600160e01b031982166380ac58cd60e01b148061174757506001600160e01b03198216635b5e139f60e01b145b8061074157506301ffc9a760e01b6001600160e01b0319831614610741565b33611779600a546001600160a01b031690565b6001600160a01b0316146113f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a7565b6000818152600260205260409020546001600160a01b0316610bf75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108a7565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611868826112df565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166118f75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108a7565b6000818152600260205260409020546001600160a01b03161561195c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108a7565b61196860008383611f3e565b6001600160a01b038216600090815260036020526040812080546001929061199190849061274c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806119fb836112df565b9050806001600160a01b0316846001600160a01b03161480611a4257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610c035750836001600160a01b0316611a5b8461080c565b6001600160a01b031614949350505050565b826001600160a01b0316611a80826112df565b6001600160a01b031614611ae45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108a7565b6001600160a01b038216611b465760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108a7565b611b51838383611f3e565b611b5c600082611833565b6001600160a01b0383166000908152600360205260408120805460019290611b85908490612739565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bb390849061274c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6002600b5403611c665760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a7565b6002600b55565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611d205760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108a7565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d98848484611a6d565b611da484848484611f49565b6114895760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108a7565b6060600c8054610789906126b3565b606081600003611e4c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e765780611e608161299e565b9150611e6f9050600a83612775565b9150611e50565b60008167ffffffffffffffff811115611e9157611e9161241f565b6040519080825280601f01601f191660200182016040528015611ebb576020820181803683370190505b5090505b8415610c0357611ed0600183612739565b9150611edd600a866129b7565b611ee890603061274c565b60f81b818381518110611efd57611efd612789565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f37600a86612775565b9450611ebf565b61094883838361209d565b60006001600160a01b0384163b1561209557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f8d9033908990889088906004016129cb565b6020604051808303816000875af1925050508015611fc8575060408051601f3d908101601f19168201909252611fc591810190612a07565b60015b61207b573d808015611ff6576040519150601f19603f3d011682016040523d82523d6000602084013e611ffb565b606091505b5080516000036120735760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108a7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c03565b506001610c03565b6001600160a01b0383166120f8576120f381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61211b565b816001600160a01b0316836001600160a01b03161461211b5761211b8382612155565b6001600160a01b03821661213257610948816121f2565b826001600160a01b0316826001600160a01b0316146109485761094882826122a1565b6000600161216284611344565b61216c9190612739565b6000838152600760205260409020549091508082146121bf576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061220490600190612739565b6000838152600960205260408120546008805493945090928490811061222c5761222c612789565b90600052602060002001549050806008838154811061224d5761224d612789565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061228557612285612a24565b6001900381819060005260206000200160009055905550505050565b60006122ac83611344565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610bf757600080fd5b60006020828403121561230d57600080fd5b8135610c60816122e5565b80356001600160a01b038116811461232f57600080fd5b919050565b8015158114610bf757600080fd5b6000806040838503121561235557600080fd5b61235e83612318565b9150602083013561236e81612334565b809150509250929050565b60005b8381101561239457818101518382015260200161237c565b50506000910152565b600081518084526123b5816020860160208601612379565b601f01601f19169290920160200192915050565b602081526000610c60602083018461239d565b6000602082840312156123ee57600080fd5b5035919050565b6000806040838503121561240857600080fd5b61241183612318565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561245e5761245e61241f565b604052919050565b600067ffffffffffffffff8311156124805761248061241f565b612493601f8401601f1916602001612435565b90508281528383830111156124a757600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156124d457600080fd5b6124dd85612318565b93506124eb60208601612318565b925060408501359150606085013567ffffffffffffffff81111561250e57600080fd5b8501601f8101871361251f57600080fd5b61252e87823560208401612466565b91505092959194509250565b60008060006060848603121561254f57600080fd5b61255884612318565b925061256660208501612318565b9150604084013590509250925092565b6000602080838503121561258957600080fd5b823567ffffffffffffffff808211156125a157600080fd5b818501915085601f8301126125b557600080fd5b8135818111156125c7576125c761241f565b8060051b91506125d8848301612435565b81815291830184019184810190888411156125f257600080fd5b938501935b83851015612610578435825293850193908501906125f7565b98975050505050505050565b60006020828403121561262e57600080fd5b813567ffffffffffffffff81111561264557600080fd5b8201601f8101841361265657600080fd5b610c0384823560208401612466565b60006020828403121561267757600080fd5b610c6082612318565b6000806040838503121561269357600080fd5b61269c83612318565b91506126aa60208401612318565b90509250929050565b600181811c908216806126c757607f821691505b6020821081036126e757634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156126ff57600080fd5b5051919050565b60006020828403121561271857600080fd5b8151610c6081612334565b634e487b7160e01b600052601160045260246000fd5b8181038181111561074157610741612723565b8082018082111561074157610741612723565b634e487b7160e01b600052601260045260246000fd5b6000826127845761278461275f565b500490565b634e487b7160e01b600052603260045260246000fd5b600082516127b1818460208701612379565b9190910192915050565b60008083546127c9816126b3565b600182811680156127e157600181146127f657612825565b60ff1984168752821515830287019450612825565b8760005260208060002060005b8581101561281c5781548a820152908401908201612803565b50505082870194505b50929695505050505050565b601f821115610948576000816000526020600020601f850160051c8101602086101561285a5750805b601f850160051c820191505b8181101561287957828155600101612866565b505050505050565b815167ffffffffffffffff81111561289b5761289b61241f565b6128af816128a984546126b3565b84612831565b602080601f8311600181146128e457600084156128cc5750858301515b600019600386901b1c1916600185901b178555612879565b600085815260208120601f198616915b82811015612913578886015182559484019460019091019084016128f4565b50858210156129315787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000612954604083018561239d565b8281036020840152612966818561239d565b95945050505050565b60008351612981818460208801612379565b835190830190612995818360208801612379565b01949350505050565b6000600182016129b0576129b0612723565b5060010190565b6000826129c6576129c661275f565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526129fd608083018461239d565b9695505050505050565b600060208284031215612a1957600080fd5b8151610c60816122e5565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e7aec068a2ef2379ec2fabc7ad5df1aa5092bc765c181da0cf48a7727d23531064736f6c63430008190033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.