ETH Price: $3,152.66 (+1.05%)
Gas: 2 Gwei

Contract

0x0d93D9d421f40b289c482144dA27e0C43fe837de
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...158200262022-10-24 19:27:35627 days ago1666639655IN
0x0d93D9d4...43fe837de
0 ETH0.0009861421.41738663
Set Approval For...147154542022-05-05 5:36:37800 days ago1651728997IN
0x0d93D9d4...43fe837de
0 ETH0.0007008928.94346897
Set Approval For...142155602022-02-16 6:25:57878 days ago1644992757IN
0x0d93D9d4...43fe837de
0 ETH0.0020183743.75599181
Set Approval For...140443072022-01-20 19:14:31904 days ago1642706071IN
0x0d93D9d4...43fe837de
0 ETH0.01003723217.59519514
Set Approval For...138897712021-12-27 21:44:36928 days ago1640641476IN
0x0d93D9d4...43fe837de
0 ETH0.003975286.17775117
Set Approval For...137813042021-12-11 2:56:57945 days ago1639191417IN
0x0d93D9d4...43fe837de
0 ETH0.0021818547.3
Withdraw137671542021-12-08 21:28:24947 days ago1638998904IN
0x0d93D9d4...43fe837de
0 ETH0.01073432107.02963822
Withdraw137671412021-12-08 21:25:59947 days ago1638998759IN
0x0d93D9d4...43fe837de
0 ETH0.00693915114.52457726
Withdraw137671402021-12-08 21:25:57947 days ago1638998757IN
0x0d93D9d4...43fe837de
0 ETH0.00632854107.82827038
Withdraw137669012021-12-08 20:32:25947 days ago1638995545IN
0x0d93D9d4...43fe837de
0 ETH0.00978664173.85807694
Withdraw137668982021-12-08 20:31:49947 days ago1638995509IN
0x0d93D9d4...43fe837de
0 ETH0.01282355220.37011953
Withdraw137668812021-12-08 20:25:12947 days ago1638995112IN
0x0d93D9d4...43fe837de
0 ETH0.00576469110.87880176
Withdraw137668782021-12-08 20:24:27947 days ago1638995067IN
0x0d93D9d4...43fe837de
0 ETH0.00614182123.60040291
Set Approval For...137667352021-12-08 19:52:04947 days ago1638993124IN
0x0d93D9d4...43fe837de
0 ETH0.0038153382.71196525
Set Nft Price137666412021-12-08 19:30:55947 days ago1638991855IN
0x0d93D9d4...43fe837de
0 ETH0.0020862671.89544037
Mint Presale137666322021-12-08 19:28:49947 days ago1638991729IN
0x0d93D9d4...43fe837de
0.176 ETH0.010067872.6
Set Approval For...137666202021-12-08 19:26:36947 days ago1638991596IN
0x0d93D9d4...43fe837de
0 ETH0.0030616166.37208687
Mint Presale137665982021-12-08 19:22:57947 days ago1638991377IN
0x0d93D9d4...43fe837de
0.264 ETH0.0126625577.33614593
Set Approval For...137665852021-12-08 19:20:50947 days ago1638991250IN
0x0d93D9d4...43fe837de
0 ETH0.0043153393.55121751
Mint Presale137665842021-12-08 19:20:11947 days ago1638991211IN
0x0d93D9d4...43fe837de
0.088 ETH0.0097572285.82158906
Mint Presale137665692021-12-08 19:17:25947 days ago1638991045IN
0x0d93D9d4...43fe837de
0.88 ETH0.0299236388.31485651
Mint Presale137665552021-12-08 19:14:18947 days ago1638990858IN
0x0d93D9d4...43fe837de
0.088 ETH0.0100840488.72115586
Mint Presale137665472021-12-08 19:13:16947 days ago1638990796IN
0x0d93D9d4...43fe837de
0.88 ETH0.0329317897.20211123
Set Approval For...137665472021-12-08 19:13:16947 days ago1638990796IN
0x0d93D9d4...43fe837de
0 ETH0.0044837397.20211123
Mint Presale137665422021-12-08 19:12:31947 days ago1638990751IN
0x0d93D9d4...43fe837de
0.176 ETH0.01514709109.18474619
View all transactions

Latest 18 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
137671542021-12-08 21:28:24947 days ago1638998904
0x0d93D9d4...43fe837de
0.9064 ETH
137671542021-12-08 21:28:24947 days ago1638998904
0x0d93D9d4...43fe837de
2.7192 ETH
137671542021-12-08 21:28:24947 days ago1638998904
0x0d93D9d4...43fe837de
1.3596 ETH
137671542021-12-08 21:28:24947 days ago1638998904
0x0d93D9d4...43fe837de
1.3596 ETH
137671542021-12-08 21:28:24947 days ago1638998904
0x0d93D9d4...43fe837de
2.35664 ETH
137671542021-12-08 21:28:24947 days ago1638998904
0x0d93D9d4...43fe837de
0.36256 ETH
137671412021-12-08 21:25:59947 days ago1638998759
0x0d93D9d4...43fe837de
2.35664 ETH
137671412021-12-08 21:25:59947 days ago1638998759
0x0d93D9d4...43fe837de
0.36256 ETH
137671402021-12-08 21:25:57947 days ago1638998757
0x0d93D9d4...43fe837de
2.35664 ETH
137671402021-12-08 21:25:57947 days ago1638998757
0x0d93D9d4...43fe837de
0.36256 ETH
137669012021-12-08 20:32:25947 days ago1638995545
0x0d93D9d4...43fe837de
2.35664 ETH
137669012021-12-08 20:32:25947 days ago1638995545
0x0d93D9d4...43fe837de
0.36256 ETH
137668982021-12-08 20:31:49947 days ago1638995509
0x0d93D9d4...43fe837de
2.35664 ETH
137668982021-12-08 20:31:49947 days ago1638995509
0x0d93D9d4...43fe837de
0.36256 ETH
137668812021-12-08 20:25:12947 days ago1638995112
0x0d93D9d4...43fe837de
2.35664 ETH
137668812021-12-08 20:25:12947 days ago1638995112
0x0d93D9d4...43fe837de
0.36256 ETH
137668782021-12-08 20:24:27947 days ago1638995067
0x0d93D9d4...43fe837de
2.35664 ETH
137668782021-12-08 20:24:27947 days ago1638995067
0x0d93D9d4...43fe837de
0.36256 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RoyalRabbits

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-12-06
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


// 
/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// 
/**
 * @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`, 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 be 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 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);

    /**
     * @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;
}

// 
/**
 * @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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// 
/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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

                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";

    /**
     * @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 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: balance query for the zero address");
        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: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 overriden 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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: transfer caller is not 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: transfer caller is not 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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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);
    }

    /**
     * @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);
    }

    /**
     * @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 of token that is not own");
        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);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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 {
                    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 Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// 
/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// 
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// 
/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

// 
contract RoyalRabbits is ERC721, Ownable, Pausable {

    using SafeMath for uint256;
    using MerkleProof for bytes32[];

    bytes32 merkleRoot;
    bool merkleSet = false;

    uint256 public constant MAX_PER_CALL = 20;
    uint256 public constant MAX_PER_CALL_PRESALE = 10;
    uint256 public constant MAX_SUPPLY = 10000;
    uint256 public NFT_PRICE = 0.088e18;

    string internal baseURI;
    bool public presaleOngoing;

    uint256 public totalSupply;
    mapping(address => uint256) public presaleMintedAmounts;

    constructor() ERC721("Royal Rabbits", "RoyalRabbits") {
        _pause();
    }

    function mint(uint256 amount) external payable whenNotPaused {
        require(amount <= MAX_PER_CALL, "Amount exceeds max per tx");

        uint256 newSupply = totalSupply + amount;

        require(newSupply <= MAX_SUPPLY, "Amount exceeds max supply");
        require(msg.value == NFT_PRICE * amount, "Wrong eth amount");

        for (uint256 i = 0; i < amount; i++) {
            _mint(msg.sender, totalSupply + i);
        }

        totalSupply = newSupply;
    }

    function mintOwner(uint256 amount) external onlyOwner {
        uint256 newSupply = totalSupply + amount;
        require(newSupply <= MAX_SUPPLY, "Amount exceeds max supply");

        for (uint256 i = 0; i < amount; i++) {
            _mint(msg.sender, totalSupply + i);
        }

        totalSupply = newSupply;
    }

    function mintPresale(uint256 amount, uint256 index, bytes32[] calldata merkleProof) external payable whenPaused {
        require(presaleOngoing, "Presale hasn't started yet");
        require(presaleMintedAmounts[msg.sender] + amount <= MAX_PER_CALL_PRESALE, "Amount exceeds presale max");
        require(msg.value == NFT_PRICE * amount, "Wrong eth amount");

        // Verify merkleProof
        bytes32 node = keccak256(abi.encodePacked(index, msg.sender, uint256(1)));
        require(MerkleProof.verify(merkleProof, merkleRoot, node), "Invalid proof. Not whitelisted");

        for (uint256 i = 0; i < amount; i++) {
            _mint(msg.sender, totalSupply + i);
        }

        totalSupply += amount;
        presaleMintedAmounts[msg.sender] += amount;
    }

    function startPresale() external onlyOwner {
        presaleOngoing = true;
    }

    function setBaseURI(string memory uri) external onlyOwner {
        baseURI = uri;
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;

        // 4%
        payable(0x2b87c010dA8df9E7F406F81E0853fa4aD5a723B2).transfer(balance.mul(40).div(1000));
        // multisig 26%
        payable(0xdCa112816f83B7718d9931A7201a81673F0AF711).transfer(balance.mul(260).div(1000));
        // 15%
        payable(0xFCb729A70E3D7855265a22Ff0341C9962EfAc5D1).transfer(balance.mul(150).div(1000));
        // 15%
        payable(0x8AED4CD149c4E1447e391c61EcCc74A2125328C6).transfer(balance.mul(150).div(1000));
        // 30%
        payable(0x2AAa1F8da3741b1Bb408Aa60725a40695C6b7353).transfer(balance.mul(300).div(1000));
        // approx 10% in case of rounded dust
        payable(0x4d1aD0cB315bd0b3a58530b2f7022b299d0f0451).transfer(address(this).balance);
    }

    function _baseURI() internal override view returns(string memory) {
        return baseURI;
    }

    function setNftPrice(uint256 _nftPrice) external onlyOwner {
        NFT_PRICE = _nftPrice;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    // Specify a merkle root hash from the gathered k/v dictionary of addresses
    // https://github.com/0xKiwi/go-merkle-distributor
    function setMerkleRoot(bytes32 root) external onlyOwner {
        merkleRoot = root;
        merkleSet = true;
    }

    // Return bool on if merkle root hash is set
    function isMerkleSet() public view returns (bool) {
        return merkleSet;
    }
}

Contract Security Audit

Contract ABI

[{"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_PER_CALL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_CALL_PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"isMerkleSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMintedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleOngoing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftPrice","type":"uint256"}],"name":"setNftPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPresale","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805460ff19169055670138a388a43c00006009553480156200002757600080fd5b50604080518082018252600d81526c526f79616c205261626269747360981b60208083019182528351808501909452600c84526b526f79616c5261626269747360a01b9084015281519192916200008191600091620001d9565b50805162000097906001906020840190620001d9565b505050620000b4620000ae620000d160201b60201c565b620000d5565b6006805460ff60a01b19169055620000cb62000127565b620002bc565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200013b600654600160a01b900460ff1690565b15620001805760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001bc3390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620001e7906200027f565b90600052602060002090601f0160209004810192826200020b576000855562000256565b82601f106200022657805160ff191683800117855562000256565b8280016001018555821562000256579182015b828111156200025657825182559160200191906001019062000239565b506200026492915062000268565b5090565b5b8082111562000264576000815560010162000269565b600181811c908216806200029457607f821691505b60208210811415620002b657634e487b7160e01b600052602260045260246000fd5b50919050565b61329580620002cc6000396000f3fe6080604052600436106102345760003560e01c80636352211e11610138578063a0712d68116100b0578063b88d4fde1161007f578063e985e9c511610064578063e985e9c51461061a578063ea156a9b14610670578063f2fde38b1461068557600080fd5b8063b88d4fde146105da578063c87b56dd146105fa57600080fd5b8063a0712d6814610575578063a22cb46514610588578063b1936c24146105a8578063b2e778bc146105c257600080fd5b80637cb64759116101075780638456cb59116100ec5780638456cb59146105205780638da5cb5b1461053557806395d89b411461056057600080fd5b80637cb64759146104e05780637d9a7a4c1461050057600080fd5b80636352211e14610475578063676dd5631461049557806370a08231146104ab578063715018a6146104cb57600080fd5b806332cb6b0c116101cb57806342842e0e1161019a57806355f804b31161017f57806355f804b3146103f85780635c477073146104185780635c975abb1461044557600080fd5b806342842e0e146103c557806351c92d9a146103e557600080fd5b806332cb6b0c1461036557806333f88d221461037b5780633ccfd60b1461039b5780633f4ba83a146103b057600080fd5b8063095ea7b311610207578063095ea7b3146102ec57806316336ee41461030c57806318160ddd1461032f57806323b872dd1461034557600080fd5b806301ffc9a71461023957806304c98b2b1461026e57806306fdde0314610285578063081812fc146102a7575b600080fd5b34801561024557600080fd5b50610259610254366004612e86565b6106a5565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b5061028361078a565b005b34801561029157600080fd5b5061029a61083d565b6040516102659190613044565b3480156102b357600080fd5b506102c76102c2366004612e6e565b6108cf565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610265565b3480156102f857600080fd5b50610283610307366004612e45565b6109a9565b34801561031857600080fd5b50610321600a81565b604051908152602001610265565b34801561033b57600080fd5b50610321600c5481565b34801561035157600080fd5b50610283610360366004612d57565b610b36565b34801561037157600080fd5b5061032161271081565b34801561038757600080fd5b50610283610396366004612e6e565b610bd7565b3480156103a757600080fd5b50610283610d11565b3480156103bc57600080fd5b50610283610f79565b3480156103d157600080fd5b506102836103e0366004612d57565b611004565b6102836103f3366004612f04565b61101f565b34801561040457600080fd5b50610283610413366004612ebe565b611381565b34801561042457600080fd5b50610321610433366004612d0b565b600d6020526000908152604090205481565b34801561045157600080fd5b5060065474010000000000000000000000000000000000000000900460ff16610259565b34801561048157600080fd5b506102c7610490366004612e6e565b611415565b3480156104a157600080fd5b5061032160095481565b3480156104b757600080fd5b506103216104c6366004612d0b565b6114c7565b3480156104d757600080fd5b50610283611595565b3480156104ec57600080fd5b506102836104fb366004612e6e565b611620565b34801561050c57600080fd5b5061028361051b366004612e6e565b6116d1565b34801561052c57600080fd5b50610283611757565b34801561054157600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff166102c7565b34801561056c57600080fd5b5061029a6117e0565b610283610583366004612e6e565b6117ef565b34801561059457600080fd5b506102836105a3366004612e0b565b611a02565b3480156105b457600080fd5b50600b546102599060ff1681565b3480156105ce57600080fd5b5060085460ff16610259565b3480156105e657600080fd5b506102836105f5366004612d92565b611b19565b34801561060657600080fd5b5061029a610615366004612e6e565b611bc1565b34801561062657600080fd5b50610259610635366004612d25565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067c57600080fd5b50610321601481565b34801561069157600080fd5b506102836106a0366004612d0b565b611cd1565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061073857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60606000805461084c90613103565b80601f016020809104026020016040519081016040528092919081815260200182805461087890613103565b80156108c55780601f1061089a576101008083540402835291602001916108c5565b820191906000526020600020905b8154815290600101906020018083116108a857829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610980576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610807565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109b482611415565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610807565b3373ffffffffffffffffffffffffffffffffffffffff82161480610a9b5750610a9b8133610635565b610b27576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610807565b610b318383611e01565b505050565b610b403382611ea1565b610bcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610807565b610b31838383612011565b60065473ffffffffffffffffffffffffffffffffffffffff163314610c58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b600081600c54610c689190613057565b9050612710811115610cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f416d6f756e742065786365656473206d617820737570706c79000000000000006044820152606401610807565b60005b82811015610d0a57610cf83382600c54610cf39190613057565b612278565b80610d0281613157565b915050610cd9565b50600c5550565b60065473ffffffffffffffffffffffffffffffffffffffff163314610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b47732b87c010da8df9e7f406f81e0853fa4ad5a723b26108fc610dc26103e8610dbc85602861243a565b90612446565b6040518115909202916000818181858888f19350505050158015610dea573d6000803e3d6000fd5b5073dca112816f83b7718d9931a7201a81673f0af7116108fc610e156103e8610dbc8561010461243a565b6040518115909202916000818181858888f19350505050158015610e3d573d6000803e3d6000fd5b5073fcb729a70e3d7855265a22ff0341c9962efac5d16108fc610e676103e8610dbc85609661243a565b6040518115909202916000818181858888f19350505050158015610e8f573d6000803e3d6000fd5b50738aed4cd149c4e1447e391c61eccc74a2125328c66108fc610eb96103e8610dbc85609661243a565b6040518115909202916000818181858888f19350505050158015610ee1573d6000803e3d6000fd5b50732aaa1f8da3741b1bb408aa60725a40695c6b73536108fc610f0c6103e8610dbc8561012c61243a565b6040518115909202916000818181858888f19350505050158015610f34573d6000803e3d6000fd5b50604051734d1ad0cb315bd0b3a58530b2f7022b299d0f0451904780156108fc02916000818181858888f19350505050158015610f75573d6000803e3d6000fd5b5050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610ffa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b611002612452565b565b610b3183838360405180602001604052806000815250611b19565b60065474010000000000000000000000000000000000000000900460ff166110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610807565b600b5460ff1661110f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f50726573616c65206861736e27742073746172746564207965740000000000006044820152606401610807565b336000908152600d6020526040902054600a9061112d908690613057565b1115611195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f416d6f756e7420657863656564732070726573616c65206d61780000000000006044820152606401610807565b836009546111a39190613083565b341461120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f57726f6e672065746820616d6f756e74000000000000000000000000000000006044820152606401610807565b60408051602081018590527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1691810191909152600160548201526000906074016040516020818303038152906040528051906020012090506112a983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600754915084905061254b565b61130f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f496e76616c69642070726f6f662e204e6f742077686974656c697374656400006044820152606401610807565b60005b8581101561133e5761132c3382600c54610cf39190613057565b8061133681613157565b915050611312565b5084600c60008282546113519190613057565b9091555050336000908152600d602052604081208054879290611375908490613057565b90915550505050505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611402576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b8051610f7590600a906020840190612bb5565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610807565b600073ffffffffffffffffffffffffffffffffffffffff821661156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610807565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b6110026000612621565b60065473ffffffffffffffffffffffffffffffffffffffff1633146116a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b600755600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60065473ffffffffffffffffffffffffffffffffffffffff163314611752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b600955565b60065473ffffffffffffffffffffffffffffffffffffffff1633146117d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b611002612698565b60606001805461084c90613103565b60065474010000000000000000000000000000000000000000900460ff1615611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610807565b60148111156118df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f416d6f756e742065786365656473206d617820706572207478000000000000006044820152606401610807565b600081600c546118ef9190613057565b905061271081111561195d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f416d6f756e742065786365656473206d617820737570706c79000000000000006044820152606401610807565b8160095461196b9190613083565b34146119d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f57726f6e672065746820616d6f756e74000000000000000000000000000000006044820152606401610807565b60005b82811015610d0a576119f03382600c54610cf39190613057565b806119fa81613157565b9150506119d6565b73ffffffffffffffffffffffffffffffffffffffff8216331415611a82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610807565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b233383611ea1565b611baf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610807565b611bbb84848484612784565b50505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611c75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610807565b6000611c7f612827565b90506000815111611c9f5760405180602001604052806000815250611cca565b80611ca984612836565b604051602001611cba929190612fcc565b6040516020818303038152906040525b9392505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611d52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b73ffffffffffffffffffffffffffffffffffffffff8116611df5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610807565b611dfe81612621565b50565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611e5b82611415565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16611f52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610807565b6000611f5d83611415565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fcc57508373ffffffffffffffffffffffffffffffffffffffff16611fb4846108cf565b73ffffffffffffffffffffffffffffffffffffffff16145b80612009575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661203182611415565b73ffffffffffffffffffffffffffffffffffffffff16146120d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610807565b73ffffffffffffffffffffffffffffffffffffffff8216612176576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610807565b612181600082611e01565b73ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081208054600192906121b79084906130c0565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906121f2908490613057565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b73ffffffffffffffffffffffffffffffffffffffff82166122f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610807565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612381576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610807565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906123b7908490613057565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611cca8284613083565b6000611cca828461306f565b60065474010000000000000000000000000000000000000000900460ff166124d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610807565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600081815b8551811015612616576000868281518110612594577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116125d6576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612603565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061260e81613157565b915050612550565b509092149392505050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065474010000000000000000000000000000000000000000900460ff161561271d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610807565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125213390565b61278f848484612011565b61279b848484846129b6565b611bbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610807565b6060600a805461084c90613103565b60608161287657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156128a0578061288a81613157565b91506128999050600a8361306f565b915061287a565b60008167ffffffffffffffff8111156128e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561290c576020820181803683370190505b5090505b8415612009576129216001836130c0565b915061292e600a86613190565b612939906030613057565b60f81b818381518110612975577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506129af600a8661306f565b9450612910565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612baa576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612a2d903390899088908890600401612ffb565b602060405180830381600087803b158015612a4757600080fd5b505af1925050508015612a95575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612a9291810190612ea2565b60015b612b5f573d808015612ac3576040519150601f19603f3d011682016040523d82523d6000602084013e612ac8565b606091505b508051612b57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610807565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612009565b506001949350505050565b828054612bc190613103565b90600052602060002090601f016020900481019282612be35760008555612c29565b82601f10612bfc57805160ff1916838001178555612c29565b82800160010185558215612c29579182015b82811115612c29578251825591602001919060010190612c0e565b50612c35929150612c39565b5090565b5b80821115612c355760008155600101612c3a565b600067ffffffffffffffff80841115612c6957612c69613202565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612caf57612caf613202565b81604052809350858152868686011115612cc857600080fd5b858560208301376000602087830101525050509392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114612d0657600080fd5b919050565b600060208284031215612d1c578081fd5b611cca82612ce2565b60008060408385031215612d37578081fd5b612d4083612ce2565b9150612d4e60208401612ce2565b90509250929050565b600080600060608486031215612d6b578081fd5b612d7484612ce2565b9250612d8260208501612ce2565b9150604084013590509250925092565b60008060008060808587031215612da7578081fd5b612db085612ce2565b9350612dbe60208601612ce2565b925060408501359150606085013567ffffffffffffffff811115612de0578182fd5b8501601f81018713612df0578182fd5b612dff87823560208401612c4e565b91505092959194509250565b60008060408385031215612e1d578182fd5b612e2683612ce2565b915060208301358015158114612e3a578182fd5b809150509250929050565b60008060408385031215612e57578182fd5b612e6083612ce2565b946020939093013593505050565b600060208284031215612e7f578081fd5b5035919050565b600060208284031215612e97578081fd5b8135611cca81613231565b600060208284031215612eb3578081fd5b8151611cca81613231565b600060208284031215612ecf578081fd5b813567ffffffffffffffff811115612ee5578182fd5b8201601f81018413612ef5578182fd5b61200984823560208401612c4e565b60008060008060608587031215612f19578384fd5b8435935060208501359250604085013567ffffffffffffffff80821115612f3e578384fd5b818701915087601f830112612f51578384fd5b813581811115612f5f578485fd5b8860208260051b8501011115612f73578485fd5b95989497505060200194505050565b60008151808452612f9a8160208601602086016130d7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008351612fde8184602088016130d7565b835190830190612ff28183602088016130d7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261303a6080830184612f82565b9695505050505050565b602081526000611cca6020830184612f82565b6000821982111561306a5761306a6131a4565b500190565b60008261307e5761307e6131d3565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156130bb576130bb6131a4565b500290565b6000828210156130d2576130d26131a4565b500390565b60005b838110156130f25781810151838201526020016130da565b83811115611bbb5750506000910152565b600181811c9082168061311757607f821691505b60208210811415613151577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613189576131896131a4565b5060010190565b60008261319f5761319f6131d3565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611dfe57600080fdfea26469706673582212201a4ae78876eb2019074925b7dceddbaf98fa51e38d415b18566c26e590d7007c64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106102345760003560e01c80636352211e11610138578063a0712d68116100b0578063b88d4fde1161007f578063e985e9c511610064578063e985e9c51461061a578063ea156a9b14610670578063f2fde38b1461068557600080fd5b8063b88d4fde146105da578063c87b56dd146105fa57600080fd5b8063a0712d6814610575578063a22cb46514610588578063b1936c24146105a8578063b2e778bc146105c257600080fd5b80637cb64759116101075780638456cb59116100ec5780638456cb59146105205780638da5cb5b1461053557806395d89b411461056057600080fd5b80637cb64759146104e05780637d9a7a4c1461050057600080fd5b80636352211e14610475578063676dd5631461049557806370a08231146104ab578063715018a6146104cb57600080fd5b806332cb6b0c116101cb57806342842e0e1161019a57806355f804b31161017f57806355f804b3146103f85780635c477073146104185780635c975abb1461044557600080fd5b806342842e0e146103c557806351c92d9a146103e557600080fd5b806332cb6b0c1461036557806333f88d221461037b5780633ccfd60b1461039b5780633f4ba83a146103b057600080fd5b8063095ea7b311610207578063095ea7b3146102ec57806316336ee41461030c57806318160ddd1461032f57806323b872dd1461034557600080fd5b806301ffc9a71461023957806304c98b2b1461026e57806306fdde0314610285578063081812fc146102a7575b600080fd5b34801561024557600080fd5b50610259610254366004612e86565b6106a5565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b5061028361078a565b005b34801561029157600080fd5b5061029a61083d565b6040516102659190613044565b3480156102b357600080fd5b506102c76102c2366004612e6e565b6108cf565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610265565b3480156102f857600080fd5b50610283610307366004612e45565b6109a9565b34801561031857600080fd5b50610321600a81565b604051908152602001610265565b34801561033b57600080fd5b50610321600c5481565b34801561035157600080fd5b50610283610360366004612d57565b610b36565b34801561037157600080fd5b5061032161271081565b34801561038757600080fd5b50610283610396366004612e6e565b610bd7565b3480156103a757600080fd5b50610283610d11565b3480156103bc57600080fd5b50610283610f79565b3480156103d157600080fd5b506102836103e0366004612d57565b611004565b6102836103f3366004612f04565b61101f565b34801561040457600080fd5b50610283610413366004612ebe565b611381565b34801561042457600080fd5b50610321610433366004612d0b565b600d6020526000908152604090205481565b34801561045157600080fd5b5060065474010000000000000000000000000000000000000000900460ff16610259565b34801561048157600080fd5b506102c7610490366004612e6e565b611415565b3480156104a157600080fd5b5061032160095481565b3480156104b757600080fd5b506103216104c6366004612d0b565b6114c7565b3480156104d757600080fd5b50610283611595565b3480156104ec57600080fd5b506102836104fb366004612e6e565b611620565b34801561050c57600080fd5b5061028361051b366004612e6e565b6116d1565b34801561052c57600080fd5b50610283611757565b34801561054157600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff166102c7565b34801561056c57600080fd5b5061029a6117e0565b610283610583366004612e6e565b6117ef565b34801561059457600080fd5b506102836105a3366004612e0b565b611a02565b3480156105b457600080fd5b50600b546102599060ff1681565b3480156105ce57600080fd5b5060085460ff16610259565b3480156105e657600080fd5b506102836105f5366004612d92565b611b19565b34801561060657600080fd5b5061029a610615366004612e6e565b611bc1565b34801561062657600080fd5b50610259610635366004612d25565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067c57600080fd5b50610321601481565b34801561069157600080fd5b506102836106a0366004612d0b565b611cd1565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061073857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60606000805461084c90613103565b80601f016020809104026020016040519081016040528092919081815260200182805461087890613103565b80156108c55780601f1061089a576101008083540402835291602001916108c5565b820191906000526020600020905b8154815290600101906020018083116108a857829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610980576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610807565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109b482611415565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610807565b3373ffffffffffffffffffffffffffffffffffffffff82161480610a9b5750610a9b8133610635565b610b27576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610807565b610b318383611e01565b505050565b610b403382611ea1565b610bcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610807565b610b31838383612011565b60065473ffffffffffffffffffffffffffffffffffffffff163314610c58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b600081600c54610c689190613057565b9050612710811115610cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f416d6f756e742065786365656473206d617820737570706c79000000000000006044820152606401610807565b60005b82811015610d0a57610cf83382600c54610cf39190613057565b612278565b80610d0281613157565b915050610cd9565b50600c5550565b60065473ffffffffffffffffffffffffffffffffffffffff163314610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b47732b87c010da8df9e7f406f81e0853fa4ad5a723b26108fc610dc26103e8610dbc85602861243a565b90612446565b6040518115909202916000818181858888f19350505050158015610dea573d6000803e3d6000fd5b5073dca112816f83b7718d9931a7201a81673f0af7116108fc610e156103e8610dbc8561010461243a565b6040518115909202916000818181858888f19350505050158015610e3d573d6000803e3d6000fd5b5073fcb729a70e3d7855265a22ff0341c9962efac5d16108fc610e676103e8610dbc85609661243a565b6040518115909202916000818181858888f19350505050158015610e8f573d6000803e3d6000fd5b50738aed4cd149c4e1447e391c61eccc74a2125328c66108fc610eb96103e8610dbc85609661243a565b6040518115909202916000818181858888f19350505050158015610ee1573d6000803e3d6000fd5b50732aaa1f8da3741b1bb408aa60725a40695c6b73536108fc610f0c6103e8610dbc8561012c61243a565b6040518115909202916000818181858888f19350505050158015610f34573d6000803e3d6000fd5b50604051734d1ad0cb315bd0b3a58530b2f7022b299d0f0451904780156108fc02916000818181858888f19350505050158015610f75573d6000803e3d6000fd5b5050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610ffa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b611002612452565b565b610b3183838360405180602001604052806000815250611b19565b60065474010000000000000000000000000000000000000000900460ff166110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610807565b600b5460ff1661110f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f50726573616c65206861736e27742073746172746564207965740000000000006044820152606401610807565b336000908152600d6020526040902054600a9061112d908690613057565b1115611195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f416d6f756e7420657863656564732070726573616c65206d61780000000000006044820152606401610807565b836009546111a39190613083565b341461120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f57726f6e672065746820616d6f756e74000000000000000000000000000000006044820152606401610807565b60408051602081018590527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1691810191909152600160548201526000906074016040516020818303038152906040528051906020012090506112a983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600754915084905061254b565b61130f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f496e76616c69642070726f6f662e204e6f742077686974656c697374656400006044820152606401610807565b60005b8581101561133e5761132c3382600c54610cf39190613057565b8061133681613157565b915050611312565b5084600c60008282546113519190613057565b9091555050336000908152600d602052604081208054879290611375908490613057565b90915550505050505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611402576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b8051610f7590600a906020840190612bb5565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610807565b600073ffffffffffffffffffffffffffffffffffffffff821661156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610807565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b6110026000612621565b60065473ffffffffffffffffffffffffffffffffffffffff1633146116a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b600755600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60065473ffffffffffffffffffffffffffffffffffffffff163314611752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b600955565b60065473ffffffffffffffffffffffffffffffffffffffff1633146117d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b611002612698565b60606001805461084c90613103565b60065474010000000000000000000000000000000000000000900460ff1615611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610807565b60148111156118df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f416d6f756e742065786365656473206d617820706572207478000000000000006044820152606401610807565b600081600c546118ef9190613057565b905061271081111561195d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f416d6f756e742065786365656473206d617820737570706c79000000000000006044820152606401610807565b8160095461196b9190613083565b34146119d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f57726f6e672065746820616d6f756e74000000000000000000000000000000006044820152606401610807565b60005b82811015610d0a576119f03382600c54610cf39190613057565b806119fa81613157565b9150506119d6565b73ffffffffffffffffffffffffffffffffffffffff8216331415611a82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610807565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b233383611ea1565b611baf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610807565b611bbb84848484612784565b50505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611c75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610807565b6000611c7f612827565b90506000815111611c9f5760405180602001604052806000815250611cca565b80611ca984612836565b604051602001611cba929190612fcc565b6040516020818303038152906040525b9392505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611d52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610807565b73ffffffffffffffffffffffffffffffffffffffff8116611df5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610807565b611dfe81612621565b50565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611e5b82611415565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16611f52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610807565b6000611f5d83611415565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fcc57508373ffffffffffffffffffffffffffffffffffffffff16611fb4846108cf565b73ffffffffffffffffffffffffffffffffffffffff16145b80612009575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661203182611415565b73ffffffffffffffffffffffffffffffffffffffff16146120d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610807565b73ffffffffffffffffffffffffffffffffffffffff8216612176576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610807565b612181600082611e01565b73ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081208054600192906121b79084906130c0565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906121f2908490613057565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b73ffffffffffffffffffffffffffffffffffffffff82166122f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610807565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612381576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610807565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906123b7908490613057565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611cca8284613083565b6000611cca828461306f565b60065474010000000000000000000000000000000000000000900460ff166124d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610807565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600081815b8551811015612616576000868281518110612594577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116125d6576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612603565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061260e81613157565b915050612550565b509092149392505050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065474010000000000000000000000000000000000000000900460ff161561271d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610807565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125213390565b61278f848484612011565b61279b848484846129b6565b611bbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610807565b6060600a805461084c90613103565b60608161287657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156128a0578061288a81613157565b91506128999050600a8361306f565b915061287a565b60008167ffffffffffffffff8111156128e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561290c576020820181803683370190505b5090505b8415612009576129216001836130c0565b915061292e600a86613190565b612939906030613057565b60f81b818381518110612975577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506129af600a8661306f565b9450612910565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612baa576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612a2d903390899088908890600401612ffb565b602060405180830381600087803b158015612a4757600080fd5b505af1925050508015612a95575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612a9291810190612ea2565b60015b612b5f573d808015612ac3576040519150601f19603f3d011682016040523d82523d6000602084013e612ac8565b606091505b508051612b57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610807565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612009565b506001949350505050565b828054612bc190613103565b90600052602060002090601f016020900481019282612be35760008555612c29565b82601f10612bfc57805160ff1916838001178555612c29565b82800160010185558215612c29579182015b82811115612c29578251825591602001919060010190612c0e565b50612c35929150612c39565b5090565b5b80821115612c355760008155600101612c3a565b600067ffffffffffffffff80841115612c6957612c69613202565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612caf57612caf613202565b81604052809350858152868686011115612cc857600080fd5b858560208301376000602087830101525050509392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114612d0657600080fd5b919050565b600060208284031215612d1c578081fd5b611cca82612ce2565b60008060408385031215612d37578081fd5b612d4083612ce2565b9150612d4e60208401612ce2565b90509250929050565b600080600060608486031215612d6b578081fd5b612d7484612ce2565b9250612d8260208501612ce2565b9150604084013590509250925092565b60008060008060808587031215612da7578081fd5b612db085612ce2565b9350612dbe60208601612ce2565b925060408501359150606085013567ffffffffffffffff811115612de0578182fd5b8501601f81018713612df0578182fd5b612dff87823560208401612c4e565b91505092959194509250565b60008060408385031215612e1d578182fd5b612e2683612ce2565b915060208301358015158114612e3a578182fd5b809150509250929050565b60008060408385031215612e57578182fd5b612e6083612ce2565b946020939093013593505050565b600060208284031215612e7f578081fd5b5035919050565b600060208284031215612e97578081fd5b8135611cca81613231565b600060208284031215612eb3578081fd5b8151611cca81613231565b600060208284031215612ecf578081fd5b813567ffffffffffffffff811115612ee5578182fd5b8201601f81018413612ef5578182fd5b61200984823560208401612c4e565b60008060008060608587031215612f19578384fd5b8435935060208501359250604085013567ffffffffffffffff80821115612f3e578384fd5b818701915087601f830112612f51578384fd5b813581811115612f5f578485fd5b8860208260051b8501011115612f73578485fd5b95989497505060200194505050565b60008151808452612f9a8160208601602086016130d7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008351612fde8184602088016130d7565b835190830190612ff28183602088016130d7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261303a6080830184612f82565b9695505050505050565b602081526000611cca6020830184612f82565b6000821982111561306a5761306a6131a4565b500190565b60008261307e5761307e6131d3565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156130bb576130bb6131a4565b500290565b6000828210156130d2576130d26131a4565b500390565b60005b838110156130f25781810151838201526020016130da565b83811115611bbb5750506000910152565b600181811c9082168061311757607f821691505b60208210811415613151577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613189576131896131a4565b5060010190565b60008261319f5761319f6131d3565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611dfe57600080fdfea26469706673582212201a4ae78876eb2019074925b7dceddbaf98fa51e38d415b18566c26e590d7007c64736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.