ETH Price: $3,295.25 (-0.64%)

Token

Flip Toadz (FLOADZ)
 

Overview

Max Total Supply

6,969 FLOADZ

Holders

2,184

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 FLOADZ
0x26e729ca643AF2319389BbFE8f25d7768fd24cf4
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Toadz

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-10-09
*/

// SPDX-License-Identifier: <SPDX-License> */

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;



// Part: OpenZeppelin/[email protected]/Address

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// Part: OpenZeppelin/[email protected]/Context

/*
 * @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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// Part: OpenZeppelin/[email protected]/EnumerableMap

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint256(value)));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

// Part: OpenZeppelin/[email protected]/EnumerableSet

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// Part: OpenZeppelin/[email protected]/IERC165

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

// Part: OpenZeppelin/[email protected]/IERC721Receiver

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
abstract contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public virtual returns (bytes4);
}

// Part: OpenZeppelin/[email protected]/SafeMath

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// Part: OpenZeppelin/[email protected]/Strings

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// Part: OpenZeppelin/[email protected]/ERC165

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// Part: OpenZeppelin/[email protected]/IERC721

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of NFTs in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;
    function approve(address to, uint256 tokenId) external;
    function getApproved(uint256 tokenId) external view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) external;
    function isApprovedForAll(address owner, address operator) external view returns (bool);


    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

// Part: OpenZeppelin/[email protected]/IERC721Enumerable

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    function totalSupply() external view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) external view returns (uint256);
}

// Part: OpenZeppelin/[email protected]/IERC721Metadata

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// Part: OpenZeppelin/[email protected]/ERC721

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        return _holderTokens[owner].length();
    }

    /**
     * @dev Gets the owner of the specified token ID.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @dev Gets the token name.
     * @return string representing the token name
     */
    function name() public view override returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol.
     * @return string representing the token symbol
     */
    function symbol() public view override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the URI for a given token ID. May return an empty string.
     *
     * If a base URI is set (via {_setBaseURI}), it is added as a prefix to the
     * token's own URI (via {_setTokenURI}).
     *
     * If there is a base URI but no token URI, the token's ID will be used as
     * its URI when appending it to the base URI. This pattern for autogenerated
     * token URIs can lead to large gas savings.
     *
     * .Examples
     * |===
     * |`_setBaseURI()` |`_setTokenURI()` |`tokenURI()`
     * | ""
     * | ""
     * | ""
     * | ""
     * | "token.uri/123"
     * | "token.uri/123"
     * | "token.uri/"
     * | "123"
     * | "token.uri/123"
     * | "token.uri/"
     * | ""
     * | "token.uri/<tokenId>"
     * |===
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];

        // If there is no base URI, return the token URI.
        if (bytes(_baseURI).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(_baseURI, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(_baseURI, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner.
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens.
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = 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 Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Sets or unsets the approval of a given operator
     * An operator is allowed to transfer all tokens of the sender on their behalf.
     * @param operator operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    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 Tells whether an operator is approved by a given owner.
     * @param owner owner address which you want to query the approval of
     * @param operator operator address which you want to query the approval of
     * @return bool whether the given operator is approved by the given owner
     */
    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address.
     * Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     * Requires the msg.sender to be the owner, approved, or operator.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    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 Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the _msgSender() to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    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 the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    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 the specified token exists.
     * @param tokenId uint256 ID of the token to query the existence of
     * @return bool whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID.
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     * is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     * @param _data bytes data to send along with a safe transfer check
     */
    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 Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(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);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to set the token URI for a given token.
     *
     * Reverts if the token ID does not exist.
     *
     * TIP: If all token IDs share a prefix (for example, if your URIs look like
     * `https://api.myproject.com/token/<id>`), use {_setBaseURI} to store
     * it and save gas.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @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()) {
            return true;
        }
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ));
        if (!success) {
            if (returndata.length > 0) {
                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert("ERC721: transfer to non ERC721Receiver implementer");
            }
        } else {
            bytes4 retval = abi.decode(returndata, (bytes4));
            return (retval == _ERC721_RECEIVED);
        }
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

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

// File: toadz.sol

contract Toadz is ERC721("Flip Toadz", "FLOADZ"){


    address public owner;
    uint256 public maxSupply = 6969;
    uint256 public dropTime;
    uint256 public accLimit = 5;
    uint256 public mintPerTx = 3;
    uint256 public minted = 0;

    constructor(uint256 _dropTime) public {
        require(_dropTime > block.timestamp);
        owner = msg.sender;
        dropTime = _dropTime;
        _setBaseURI("http://108.61.217.200/token/");
    }

    function setURI(string memory _uri) public {
        require(msg.sender == owner);
        _setBaseURI(_uri);
    }

    function mint(uint256 _amount) public payable {
        require(block.timestamp >= dropTime, "Drop not yet available");
        require(_amount <= mintPerTx, "Only 5 mints per tx");
        require(balanceOf(msg.sender) + _amount <= accLimit, "Only 5 toadz per address!");
        require((minted + _amount) <= maxSupply, "Sold out");

        for (uint256 i = 0; i < _amount; i++) {
            minted += 1;
            _mint(msg.sender, minted);
        }
    }

    function reroll(uint256 _token1, uint256 _token2) public {
        require(ownerOf(_token1) == msg.sender && ownerOf(_token2) == msg.sender, "You do not own these tokens!!");
        require(minted + 1 <= maxSupply, "No longer available");
        //burn tokens and mint again
        _burn(_token1);
        _burn(_token2);
        minted += 1;
        _mint(msg.sender, minted);
    }

    function changeOwner(address _owner) public {
        require(msg.sender == owner);
        owner = _owner;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_dropTime","type":"uint256"}],"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"accLimit","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dropTime","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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_token1","type":"uint256"},{"internalType":"uint256","name":"_token2","type":"uint256"}],"name":"reroll","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":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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"}]

6080604052611b39600b556005600d556003600e556000600f553480156200002657600080fd5b506040516200247b3803806200247b833981016040819052620000499162000278565b604080518082018252600a815269233634b8102a37b0b23d60b11b60208083019190915282518084019093526006835265232627a0a22d60d11b90830152906200009a6301ffc9a760e01b62000168565b8151620000af906006906020850190620001dc565b508051620000c5906007906020840190620001dc565b50620000d86380ac58cd60e01b62000168565b620000ea635b5e139f60e01b62000168565b620000fc63780e9d6360e01b62000168565b50504281116200010b57600080fd5b600a80546001600160a01b03191633179055600c81905560408051808201909152601c81527f687474703a2f2f3130382e36312e3231372e3230302f746f6b656e2f0000000060208201526200016190620001c3565b50620002c8565b6001600160e01b031980821614156200019e5760405162461bcd60e51b8152600401620001959062000291565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d8906009906020840190620001dc565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021f57805160ff19168380011785556200024f565b828001600101855582156200024f579182015b828111156200024f57825182559160200191906001019062000232565b506200025d92915062000261565b5090565b5b808211156200025d576000815560010162000262565b6000602082840312156200028a578081fd5b5051919050565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b6121a380620002d86000396000f3fe60806040526004361061019c5760003560e01c80636c0360eb116100ec578063a6f9dae11161008a578063d5abeb0111610064578063d5abeb0114610466578063d78e89bd1461047b578063e3e0c4f814610490578063e985e9c5146104a55761019c565b8063a6f9dae114610406578063b88d4fde14610426578063c87b56dd146104465761019c565b806395d89b41116100c657806395d89b41146103a9578063a0712d68146103be578063a22cb465146103d1578063a6322edb146103f15761019c565b80636c0360eb1461035f57806370a08231146103745780638da5cb5b146103945761019c565b806323b872dd116101595780634f02c420116101335780634f02c420146102ea5780634f6ccce7146102ff5780635bbf68c71461031f5780636352211e1461033f5761019c565b806323b872dd1461028a5780632f745c59146102aa57806342842e0e146102ca5761019c565b806301ffc9a7146101a157806302fe5305146101d757806306fdde03146101f9578063081812fc1461021b578063095ea7b31461024857806318160ddd14610268575b600080fd5b3480156101ad57600080fd5b506101c16101bc3660046119c8565b6104c5565b6040516101ce9190611b86565b60405180910390f35b3480156101e357600080fd5b506101f76101f2366004611a00565b6104e8565b005b34801561020557600080fd5b5061020e61050b565b6040516101ce9190611b91565b34801561022757600080fd5b5061023b610236366004611a33565b6105a1565b6040516101ce9190611b35565b34801561025457600080fd5b506101f761026336600461199e565b6105ed565b34801561027457600080fd5b5061027d610685565b6040516101ce91906120e4565b34801561029657600080fd5b506101f76102a53660046118bb565b610696565b3480156102b657600080fd5b5061027d6102c536600461199e565b6106ce565b3480156102d657600080fd5b506101f76102e53660046118bb565b6106f9565b3480156102f657600080fd5b5061027d610714565b34801561030b57600080fd5b5061027d61031a366004611a33565b61071a565b34801561032b57600080fd5b506101f761033a366004611a4b565b610730565b34801561034b57600080fd5b5061023b61035a366004611a33565b6107cf565b34801561036b57600080fd5b5061020e6107f7565b34801561038057600080fd5b5061027d61038f36600461186c565b610858565b3480156103a057600080fd5b5061023b6108a1565b3480156103b557600080fd5b5061020e6108b0565b6101f76103cc366004611a33565b610911565b3480156103dd57600080fd5b506101f76103ec366004611963565b6109d0565b3480156103fd57600080fd5b5061027d610a9e565b34801561041257600080fd5b506101f761042136600461186c565b610aa4565b34801561043257600080fd5b506101f76104413660046118fb565b610add565b34801561045257600080fd5b5061020e610461366004611a33565b610b1c565b34801561047257600080fd5b5061027d610c66565b34801561048757600080fd5b5061027d610c6c565b34801561049c57600080fd5b5061027d610c72565b3480156104b157600080fd5b506101c16104c0366004611887565b610c78565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b600a546001600160a01b031633146104ff57600080fd5b61050881610ca6565b50565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105975780601f1061056c57610100808354040283529160200191610597565b820191906000526020600020905b81548152906001019060200180831161057a57829003601f168201915b5050505050905090565b60006105ac82610cb9565b6105d15760405162461bcd60e51b81526004016105c890611f1f565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f8826107cf565b9050806001600160a01b0316836001600160a01b0316141561062c5760405162461bcd60e51b81526004016105c890612030565b806001600160a01b031661063e610cc6565b6001600160a01b0316148061065a575061065a816104c0610cc6565b6106765760405162461bcd60e51b81526004016105c890611da4565b6106808383610cca565b505050565b60006106916002610d38565b905090565b6106a76106a1610cc6565b82610d43565b6106c35760405162461bcd60e51b81526004016105c890612071565b610680838383610dc8565b6001600160a01b03821660009081526001602052604081206106f09083610ed6565b90505b92915050565b61068083838360405180602001604052806000815250610add565b600f5481565b600080610728600284610ee2565b509392505050565b3361073a836107cf565b6001600160a01b0316148015610760575033610755826107cf565b6001600160a01b0316145b61077c5760405162461bcd60e51b81526004016105c890611d6d565b600b54600f5460010111156107a35760405162461bcd60e51b81526004016105c890611f6b565b6107ac82610efe565b6107b581610efe565b600f8054600101908190556107cb903390610fcb565b5050565b60006106f382604051806060016040528060298152602001612145602991396002919061108f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105975780601f1061056c57610100808354040283529160200191610597565b60006001600160a01b0382166108805760405162461bcd60e51b81526004016105c890611e31565b6001600160a01b03821660009081526001602052604090206106f390610d38565b600a546001600160a01b031681565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105975780601f1061056c57610100808354040283529160200191610597565b600c544210156109335760405162461bcd60e51b81526004016105c890611e01565b600e548111156109555760405162461bcd60e51b81526004016105c890611ef2565b600d548161096233610858565b0111156109815760405162461bcd60e51b81526004016105c890611cea565b600b5481600f540111156109a75760405162461bcd60e51b81526004016105c8906120c2565b60005b818110156107cb57600f8054600101908190556109c8903390610fcb565b6001016109aa565b6109d8610cc6565b6001600160a01b0316826001600160a01b03161415610a095760405162461bcd60e51b81526004016105c890611cb3565b8060056000610a16610cc6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5a610cc6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610a929190611b86565b60405180910390a35050565b600d5481565b600a546001600160a01b03163314610abb57600080fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610aee610ae8610cc6565b83610d43565b610b0a5760405162461bcd60e51b81526004016105c890612071565b610b16848484846110a6565b50505050565b6060610b2782610cb9565b610b435760405162461bcd60e51b81526004016105c890611fe1565b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bd85780601f10610bad57610100808354040283529160200191610bd8565b820191906000526020600020905b815481529060010190602001808311610bbb57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c015790506104e3565b805115610c3357600981604051602001610c1c929190611ab4565b6040516020818303038152906040529150506104e3565b6009610c3e846110d9565b604051602001610c4f929190611ab4565b604051602081830303815290604052915050919050565b600b5481565b600e5481565b600c5481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b80516107cb906009906020840190611704565b60006106f36002836111b4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610cff826107cf565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006106f3826111c0565b6000610d4e82610cb9565b610d6a5760405162461bcd60e51b81526004016105c890611d21565b6000610d75836107cf565b9050806001600160a01b0316846001600160a01b03161480610db05750836001600160a01b0316610da5846105a1565b6001600160a01b0316145b80610dc05750610dc08185610c78565b949350505050565b826001600160a01b0316610ddb826107cf565b6001600160a01b031614610e015760405162461bcd60e51b81526004016105c890611f98565b6001600160a01b038216610e275760405162461bcd60e51b81526004016105c890611c6f565b610e32838383610680565b610e3d600082610cca565b6001600160a01b0383166000908152600160205260409020610e5f90826111c4565b506001600160a01b0382166000908152600160205260409020610e8290826111d0565b50610e8f600282846111dc565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006106f083836111f2565b6000808080610ef18686611237565b9097909650945050505050565b6000610f09826107cf565b9050610f1781600084610680565b610f22600083610cca565b6000828152600860205260409020546002600019610100600184161502019091160415610f60576000828152600860205260408120610f6091611782565b6001600160a01b0381166000908152600160205260409020610f8290836111c4565b50610f8e600283611293565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216610ff15760405162461bcd60e51b81526004016105c890611ebd565b610ffa81610cb9565b156110175760405162461bcd60e51b81526004016105c890611c38565b61102360008383610680565b6001600160a01b038216600090815260016020526040902061104590826111d0565b50611052600282846111dc565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061109c84848461129f565b90505b9392505050565b6110b1848484610dc8565b6110bd848484846112fe565b610b165760405162461bcd60e51b81526004016105c890611be6565b6060816110fe57506040805180820190915260018152600360fc1b60208201526104e3565b8160005b811561111657600101600a82049150611102565b60608167ffffffffffffffff8111801561112f57600080fd5b506040519080825280601f01601f19166020018201604052801561115a576020820181803683370190505b50859350905060001982015b83156111ab57600a840660300160f81b8282806001900393508151811061118957fe5b60200101906001600160f81b031916908160001a905350600a84049350611166565b50949350505050565b60006106f08383611438565b5490565b60006106f08383611450565b60006106f08383611516565b600061109c84846001600160a01b038516611560565b815460009082106112155760405162461bcd60e51b81526004016105c890611ba4565b82600001828154811061122457fe5b9060005260206000200154905092915050565b81546000908190831061125c5760405162461bcd60e51b81526004016105c890611e7b565b600084600001848154811061126d57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60006106f083836115f7565b600082815260018401602052604081205482816112cf5760405162461bcd60e51b81526004016105c89190611b91565b508460000160018203815481106112e257fe5b9060005260206000209060020201600101549150509392505050565b6000611312846001600160a01b03166116cb565b61131e57506001610dc0565b600060606001600160a01b038616630a85bd0160e11b61133c610cc6565b8988886040516024016113529493929190611b49565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516113909190611a98565b6000604051808303816000865af19150503d80600081146113cd576040519150601f19603f3d011682016040523d82523d6000602084013e6113d2565b606091505b509150915081611404578051156113ec5780518082602001fd5b60405162461bcd60e51b81526004016105c890611be6565b60008180602001905181019061141a91906119e4565b6001600160e01b031916630a85bd0160e11b149350610dc092505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561150c578354600019808301919081019060009087908390811061148357fe5b90600052602060002001549050808760000184815481106114a057fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114d057fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506106f3565b60009150506106f3565b60006115228383611438565b611558575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106f3565b5060006106f3565b6000828152600184016020526040812054806115c557505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561109f565b828560000160018303815481106115d857fe5b906000526020600020906002020160010181905550600091505061109f565b6000818152600183016020526040812054801561150c578354600019808301919081019060009087908390811061162a57fe5b906000526020600020906002020190508087600001848154811061164a57fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061168957fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506106f39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dc0575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061174557805160ff1916838001178555611772565b82800160010185558215611772579182015b82811115611772578251825591602001919060010190611757565b5061177e9291506117c2565b5090565b50805460018160011615610100020316600290046000825580601f106117a85750610508565b601f01602090049060005260206000209081019061050891905b5b8082111561177e57600081556001016117c3565b80356001600160a01b03811681146106f357600080fd5b600082601f8301126117fe578081fd5b813567ffffffffffffffff80821115611815578283fd5b604051601f8301601f191681016020018281118282101715611835578485fd5b60405282815292508284830160200186101561185057600080fd5b8260208601602083013760006020848301015250505092915050565b60006020828403121561187d578081fd5b6106f083836117d7565b60008060408385031215611899578081fd5b6118a384846117d7565b91506118b284602085016117d7565b90509250929050565b6000806000606084860312156118cf578081fd5b83356118da81612119565b925060208401356118ea81612119565b929592945050506040919091013590565b60008060008060808587031215611910578081fd5b61191a86866117d7565b935061192986602087016117d7565b925060408501359150606085013567ffffffffffffffff81111561194b578182fd5b611957878288016117ee565b91505092959194509250565b60008060408385031215611975578182fd5b61197f84846117d7565b915060208301358015158114611993578182fd5b809150509250929050565b600080604083850312156119b0578182fd5b6119ba84846117d7565b946020939093013593505050565b6000602082840312156119d9578081fd5b813561109f8161212e565b6000602082840312156119f5578081fd5b815161109f8161212e565b600060208284031215611a11578081fd5b813567ffffffffffffffff811115611a27578182fd5b610dc0848285016117ee565b600060208284031215611a44578081fd5b5035919050565b60008060408385031215611a5d578182fd5b50508035926020909101359150565b60008151808452611a848160208601602086016120ed565b601f01601f19169290920160200192915050565b60008251611aaa8184602087016120ed565b9190910192915050565b6000808454600180821660008114611ad35760018114611aea57611b19565b60ff198316865260028304607f1686019350611b19565b600283048886526020808720875b83811015611b115781548a820152908501908201611af8565b505050860193505b5050508351611b2c8183602088016120ed565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b7c90830184611a6c565b9695505050505050565b901515815260200190565b6000602082526106f06020830184611a6c565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526019908201527f4f6e6c79203520746f61647a2070657220616464726573732100000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601d908201527f596f7520646f206e6f74206f776e20746865736520746f6b656e732121000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526016908201527544726f70206e6f742079657420617661696c61626c6560501b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526013908201527209edcd8f2406a40dad2dce8e640e0cae440e8f606b1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601390820152724e6f206c6f6e67657220617661696c61626c6560681b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b90815260200190565b60005b838110156121085781810151838201526020016120f0565b83811115610b165750506000910152565b6001600160a01b038116811461050857600080fd5b6001600160e01b03198116811461050857600080fdfe4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220d3d7224f48d1d3e64db9b7b6eaf3c13e8a298a7b3345ad75bdabbd4661d48dfd64736f6c634300060c0033000000000000000000000000000000000000000000000000000000006160f7a0

Deployed Bytecode

0x60806040526004361061019c5760003560e01c80636c0360eb116100ec578063a6f9dae11161008a578063d5abeb0111610064578063d5abeb0114610466578063d78e89bd1461047b578063e3e0c4f814610490578063e985e9c5146104a55761019c565b8063a6f9dae114610406578063b88d4fde14610426578063c87b56dd146104465761019c565b806395d89b41116100c657806395d89b41146103a9578063a0712d68146103be578063a22cb465146103d1578063a6322edb146103f15761019c565b80636c0360eb1461035f57806370a08231146103745780638da5cb5b146103945761019c565b806323b872dd116101595780634f02c420116101335780634f02c420146102ea5780634f6ccce7146102ff5780635bbf68c71461031f5780636352211e1461033f5761019c565b806323b872dd1461028a5780632f745c59146102aa57806342842e0e146102ca5761019c565b806301ffc9a7146101a157806302fe5305146101d757806306fdde03146101f9578063081812fc1461021b578063095ea7b31461024857806318160ddd14610268575b600080fd5b3480156101ad57600080fd5b506101c16101bc3660046119c8565b6104c5565b6040516101ce9190611b86565b60405180910390f35b3480156101e357600080fd5b506101f76101f2366004611a00565b6104e8565b005b34801561020557600080fd5b5061020e61050b565b6040516101ce9190611b91565b34801561022757600080fd5b5061023b610236366004611a33565b6105a1565b6040516101ce9190611b35565b34801561025457600080fd5b506101f761026336600461199e565b6105ed565b34801561027457600080fd5b5061027d610685565b6040516101ce91906120e4565b34801561029657600080fd5b506101f76102a53660046118bb565b610696565b3480156102b657600080fd5b5061027d6102c536600461199e565b6106ce565b3480156102d657600080fd5b506101f76102e53660046118bb565b6106f9565b3480156102f657600080fd5b5061027d610714565b34801561030b57600080fd5b5061027d61031a366004611a33565b61071a565b34801561032b57600080fd5b506101f761033a366004611a4b565b610730565b34801561034b57600080fd5b5061023b61035a366004611a33565b6107cf565b34801561036b57600080fd5b5061020e6107f7565b34801561038057600080fd5b5061027d61038f36600461186c565b610858565b3480156103a057600080fd5b5061023b6108a1565b3480156103b557600080fd5b5061020e6108b0565b6101f76103cc366004611a33565b610911565b3480156103dd57600080fd5b506101f76103ec366004611963565b6109d0565b3480156103fd57600080fd5b5061027d610a9e565b34801561041257600080fd5b506101f761042136600461186c565b610aa4565b34801561043257600080fd5b506101f76104413660046118fb565b610add565b34801561045257600080fd5b5061020e610461366004611a33565b610b1c565b34801561047257600080fd5b5061027d610c66565b34801561048757600080fd5b5061027d610c6c565b34801561049c57600080fd5b5061027d610c72565b3480156104b157600080fd5b506101c16104c0366004611887565b610c78565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b600a546001600160a01b031633146104ff57600080fd5b61050881610ca6565b50565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105975780601f1061056c57610100808354040283529160200191610597565b820191906000526020600020905b81548152906001019060200180831161057a57829003601f168201915b5050505050905090565b60006105ac82610cb9565b6105d15760405162461bcd60e51b81526004016105c890611f1f565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f8826107cf565b9050806001600160a01b0316836001600160a01b0316141561062c5760405162461bcd60e51b81526004016105c890612030565b806001600160a01b031661063e610cc6565b6001600160a01b0316148061065a575061065a816104c0610cc6565b6106765760405162461bcd60e51b81526004016105c890611da4565b6106808383610cca565b505050565b60006106916002610d38565b905090565b6106a76106a1610cc6565b82610d43565b6106c35760405162461bcd60e51b81526004016105c890612071565b610680838383610dc8565b6001600160a01b03821660009081526001602052604081206106f09083610ed6565b90505b92915050565b61068083838360405180602001604052806000815250610add565b600f5481565b600080610728600284610ee2565b509392505050565b3361073a836107cf565b6001600160a01b0316148015610760575033610755826107cf565b6001600160a01b0316145b61077c5760405162461bcd60e51b81526004016105c890611d6d565b600b54600f5460010111156107a35760405162461bcd60e51b81526004016105c890611f6b565b6107ac82610efe565b6107b581610efe565b600f8054600101908190556107cb903390610fcb565b5050565b60006106f382604051806060016040528060298152602001612145602991396002919061108f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105975780601f1061056c57610100808354040283529160200191610597565b60006001600160a01b0382166108805760405162461bcd60e51b81526004016105c890611e31565b6001600160a01b03821660009081526001602052604090206106f390610d38565b600a546001600160a01b031681565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105975780601f1061056c57610100808354040283529160200191610597565b600c544210156109335760405162461bcd60e51b81526004016105c890611e01565b600e548111156109555760405162461bcd60e51b81526004016105c890611ef2565b600d548161096233610858565b0111156109815760405162461bcd60e51b81526004016105c890611cea565b600b5481600f540111156109a75760405162461bcd60e51b81526004016105c8906120c2565b60005b818110156107cb57600f8054600101908190556109c8903390610fcb565b6001016109aa565b6109d8610cc6565b6001600160a01b0316826001600160a01b03161415610a095760405162461bcd60e51b81526004016105c890611cb3565b8060056000610a16610cc6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5a610cc6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610a929190611b86565b60405180910390a35050565b600d5481565b600a546001600160a01b03163314610abb57600080fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610aee610ae8610cc6565b83610d43565b610b0a5760405162461bcd60e51b81526004016105c890612071565b610b16848484846110a6565b50505050565b6060610b2782610cb9565b610b435760405162461bcd60e51b81526004016105c890611fe1565b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bd85780601f10610bad57610100808354040283529160200191610bd8565b820191906000526020600020905b815481529060010190602001808311610bbb57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c015790506104e3565b805115610c3357600981604051602001610c1c929190611ab4565b6040516020818303038152906040529150506104e3565b6009610c3e846110d9565b604051602001610c4f929190611ab4565b604051602081830303815290604052915050919050565b600b5481565b600e5481565b600c5481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b80516107cb906009906020840190611704565b60006106f36002836111b4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610cff826107cf565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006106f3826111c0565b6000610d4e82610cb9565b610d6a5760405162461bcd60e51b81526004016105c890611d21565b6000610d75836107cf565b9050806001600160a01b0316846001600160a01b03161480610db05750836001600160a01b0316610da5846105a1565b6001600160a01b0316145b80610dc05750610dc08185610c78565b949350505050565b826001600160a01b0316610ddb826107cf565b6001600160a01b031614610e015760405162461bcd60e51b81526004016105c890611f98565b6001600160a01b038216610e275760405162461bcd60e51b81526004016105c890611c6f565b610e32838383610680565b610e3d600082610cca565b6001600160a01b0383166000908152600160205260409020610e5f90826111c4565b506001600160a01b0382166000908152600160205260409020610e8290826111d0565b50610e8f600282846111dc565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006106f083836111f2565b6000808080610ef18686611237565b9097909650945050505050565b6000610f09826107cf565b9050610f1781600084610680565b610f22600083610cca565b6000828152600860205260409020546002600019610100600184161502019091160415610f60576000828152600860205260408120610f6091611782565b6001600160a01b0381166000908152600160205260409020610f8290836111c4565b50610f8e600283611293565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216610ff15760405162461bcd60e51b81526004016105c890611ebd565b610ffa81610cb9565b156110175760405162461bcd60e51b81526004016105c890611c38565b61102360008383610680565b6001600160a01b038216600090815260016020526040902061104590826111d0565b50611052600282846111dc565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061109c84848461129f565b90505b9392505050565b6110b1848484610dc8565b6110bd848484846112fe565b610b165760405162461bcd60e51b81526004016105c890611be6565b6060816110fe57506040805180820190915260018152600360fc1b60208201526104e3565b8160005b811561111657600101600a82049150611102565b60608167ffffffffffffffff8111801561112f57600080fd5b506040519080825280601f01601f19166020018201604052801561115a576020820181803683370190505b50859350905060001982015b83156111ab57600a840660300160f81b8282806001900393508151811061118957fe5b60200101906001600160f81b031916908160001a905350600a84049350611166565b50949350505050565b60006106f08383611438565b5490565b60006106f08383611450565b60006106f08383611516565b600061109c84846001600160a01b038516611560565b815460009082106112155760405162461bcd60e51b81526004016105c890611ba4565b82600001828154811061122457fe5b9060005260206000200154905092915050565b81546000908190831061125c5760405162461bcd60e51b81526004016105c890611e7b565b600084600001848154811061126d57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60006106f083836115f7565b600082815260018401602052604081205482816112cf5760405162461bcd60e51b81526004016105c89190611b91565b508460000160018203815481106112e257fe5b9060005260206000209060020201600101549150509392505050565b6000611312846001600160a01b03166116cb565b61131e57506001610dc0565b600060606001600160a01b038616630a85bd0160e11b61133c610cc6565b8988886040516024016113529493929190611b49565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516113909190611a98565b6000604051808303816000865af19150503d80600081146113cd576040519150601f19603f3d011682016040523d82523d6000602084013e6113d2565b606091505b509150915081611404578051156113ec5780518082602001fd5b60405162461bcd60e51b81526004016105c890611be6565b60008180602001905181019061141a91906119e4565b6001600160e01b031916630a85bd0160e11b149350610dc092505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561150c578354600019808301919081019060009087908390811061148357fe5b90600052602060002001549050808760000184815481106114a057fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114d057fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506106f3565b60009150506106f3565b60006115228383611438565b611558575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106f3565b5060006106f3565b6000828152600184016020526040812054806115c557505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561109f565b828560000160018303815481106115d857fe5b906000526020600020906002020160010181905550600091505061109f565b6000818152600183016020526040812054801561150c578354600019808301919081019060009087908390811061162a57fe5b906000526020600020906002020190508087600001848154811061164a57fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061168957fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506106f39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dc0575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061174557805160ff1916838001178555611772565b82800160010185558215611772579182015b82811115611772578251825591602001919060010190611757565b5061177e9291506117c2565b5090565b50805460018160011615610100020316600290046000825580601f106117a85750610508565b601f01602090049060005260206000209081019061050891905b5b8082111561177e57600081556001016117c3565b80356001600160a01b03811681146106f357600080fd5b600082601f8301126117fe578081fd5b813567ffffffffffffffff80821115611815578283fd5b604051601f8301601f191681016020018281118282101715611835578485fd5b60405282815292508284830160200186101561185057600080fd5b8260208601602083013760006020848301015250505092915050565b60006020828403121561187d578081fd5b6106f083836117d7565b60008060408385031215611899578081fd5b6118a384846117d7565b91506118b284602085016117d7565b90509250929050565b6000806000606084860312156118cf578081fd5b83356118da81612119565b925060208401356118ea81612119565b929592945050506040919091013590565b60008060008060808587031215611910578081fd5b61191a86866117d7565b935061192986602087016117d7565b925060408501359150606085013567ffffffffffffffff81111561194b578182fd5b611957878288016117ee565b91505092959194509250565b60008060408385031215611975578182fd5b61197f84846117d7565b915060208301358015158114611993578182fd5b809150509250929050565b600080604083850312156119b0578182fd5b6119ba84846117d7565b946020939093013593505050565b6000602082840312156119d9578081fd5b813561109f8161212e565b6000602082840312156119f5578081fd5b815161109f8161212e565b600060208284031215611a11578081fd5b813567ffffffffffffffff811115611a27578182fd5b610dc0848285016117ee565b600060208284031215611a44578081fd5b5035919050565b60008060408385031215611a5d578182fd5b50508035926020909101359150565b60008151808452611a848160208601602086016120ed565b601f01601f19169290920160200192915050565b60008251611aaa8184602087016120ed565b9190910192915050565b6000808454600180821660008114611ad35760018114611aea57611b19565b60ff198316865260028304607f1686019350611b19565b600283048886526020808720875b83811015611b115781548a820152908501908201611af8565b505050860193505b5050508351611b2c8183602088016120ed565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b7c90830184611a6c565b9695505050505050565b901515815260200190565b6000602082526106f06020830184611a6c565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526019908201527f4f6e6c79203520746f61647a2070657220616464726573732100000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601d908201527f596f7520646f206e6f74206f776e20746865736520746f6b656e732121000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526016908201527544726f70206e6f742079657420617661696c61626c6560501b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526013908201527209edcd8f2406a40dad2dce8e640e0cae440e8f606b1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601390820152724e6f206c6f6e67657220617661696c61626c6560681b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b90815260200190565b60005b838110156121085781810151838201526020016120f0565b83811115610b165750506000910152565b6001600160a01b038116811461050857600080fd5b6001600160e01b03198116811461050857600080fdfe4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220d3d7224f48d1d3e64db9b7b6eaf3c13e8a298a7b3345ad75bdabbd4661d48dfd64736f6c634300060c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000006160f7a0

-----Decoded View---------------
Arg [0] : _dropTime (uint256): 1633744800

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000006160f7a0


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.