ETH Price: $2,053.73 (+1.22%)

Contract

0xfB9fFbB289F3f261C16ca24eAfbad4E9fe466E27
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Purchase For107898022020-09-03 17:59:012015 days ago1599155941IN
0xfB9fFbB2...9fe466E27
0.06355305 ETH0.02512662423
Purchase For107897972020-09-03 17:57:512015 days ago1599155871IN
0xfB9fFbB2...9fe466E27
0.008325 ETH0.03781662423
Purchase For107897932020-09-03 17:57:032015 days ago1599155823IN
0xfB9fFbB2...9fe466E27
2.1645 ETH0.05084913487
Purchase For107897902020-09-03 17:56:282015 days ago1599155788IN
0xfB9fFbB2...9fe466E27
0.666 ETH0.04416162423
Purchase For107897882020-09-03 17:55:512015 days ago1599155751IN
0xfB9fFbB2...9fe466E27
4.995 ETH0.04327589484
Purchase For107897832020-09-03 17:54:552015 days ago1599155695IN
0xfB9fFbB2...9fe466E27
2.44755 ETH0.038537431
Purchase For107897772020-09-03 17:54:192015 days ago1599155659IN
0xfB9fFbB2...9fe466E27
1.8315 ETH0.038537431
Purchase For107897752020-09-03 17:53:532015 days ago1599155633IN
0xfB9fFbB2...9fe466E27
4.8285 ETH0.04416669423
Purchase For107897752020-09-03 17:53:532015 days ago1599155633IN
0xfB9fFbB2...9fe466E27
4.329 ETH0.04416669423
Purchase For107897742020-09-03 17:53:442015 days ago1599155624IN
0xfB9fFbB2...9fe466E27
4.995 ETH0.0626478600
Purchase For107897722020-09-03 17:53:102015 days ago1599155590IN
0xfB9fFbB2...9fe466E27
3.663 ETH0.04649476520
Purchase For107897722020-09-03 17:53:102015 days ago1599155590IN
0xfB9fFbB2...9fe466E27
0.8325 ETH0.04917055550
Purchase For107897712020-09-03 17:53:022015 days ago1599155582IN
0xfB9fFbB2...9fe466E27
0.666 ETH0.04499683431
Purchase For107897692020-09-03 17:52:462015 days ago1599155566IN
0xfB9fFbB2...9fe466E27
1.24875 ETH0.04625495443
Purchase For107897692020-09-03 17:52:462015 days ago1599155566IN
0xfB9fFbB2...9fe466E27
0.58275 ETH0.04636448444.1
Purchase For107897692020-09-03 17:52:462015 days ago1599155566IN
0xfB9fFbB2...9fe466E27
11.655 ETH0.04865645466
Purchase For107897652020-09-03 17:51:272015 days ago1599155487IN
0xfB9fFbB2...9fe466E27
9.8235 ETH0.04166086466
Purchase For107897562020-09-03 17:49:062015 days ago1599155346IN
0xfB9fFbB2...9fe466E27
0.333 ETH0.03942584441
Purchase For107897532020-09-03 17:48:192015 days ago1599155299IN
0xfB9fFbB2...9fe466E27
4.1625 ETH0.0522065500
Purchase For107897512020-09-03 17:47:552015 days ago1599155275IN
0xfB9fFbB2...9fe466E27
8.26506 ETH0.03782169423
Purchase For107897502020-09-03 17:47:502015 days ago1599155270IN
0xfB9fFbB2...9fe466E27
2.4975 ETH0.04166645466
Purchase For107897472020-09-03 17:46:452015 days ago1599155205IN
0xfB9fFbB2...9fe466E27
0 ETH0.05380993441
Purchase For107897462020-09-03 17:46:272015 days ago1599155187IN
0xfB9fFbB2...9fe466E27
1.665 ETH0.04917715550
Purchase For107897422020-09-03 17:46:202015 days ago1599155180IN
0xfB9fFbB2...9fe466E27
9.1575 ETH0.04604613441
Purchase For107897342020-09-03 17:44:542015 days ago1599155094IN
0xfB9fFbB2...9fe466E27
4.995 ETH0.04813439461
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
-107898022020-09-03 17:59:012015 days ago1599155941
0xfB9fFbB2...9fe466E27
0.06355305 ETH
-107897972020-09-03 17:57:512015 days ago1599155871
0xfB9fFbB2...9fe466E27
0.008325 ETH
-107897932020-09-03 17:57:032015 days ago1599155823
0xfB9fFbB2...9fe466E27
2.1645 ETH
-107897902020-09-03 17:56:282015 days ago1599155788
0xfB9fFbB2...9fe466E27
0.666 ETH
-107897882020-09-03 17:55:512015 days ago1599155751
0xfB9fFbB2...9fe466E27
4.995 ETH
-107897832020-09-03 17:54:552015 days ago1599155695
0xfB9fFbB2...9fe466E27
2.44755 ETH
-107897772020-09-03 17:54:192015 days ago1599155659
0xfB9fFbB2...9fe466E27
1.8315 ETH
-107897752020-09-03 17:53:532015 days ago1599155633
0xfB9fFbB2...9fe466E27
4.8285 ETH
-107897752020-09-03 17:53:532015 days ago1599155633
0xfB9fFbB2...9fe466E27
4.329 ETH
-107897742020-09-03 17:53:442015 days ago1599155624
0xfB9fFbB2...9fe466E27
4.995 ETH
-107897722020-09-03 17:53:102015 days ago1599155590
0xfB9fFbB2...9fe466E27
3.663 ETH
-107897722020-09-03 17:53:102015 days ago1599155590
0xfB9fFbB2...9fe466E27
0.8325 ETH
-107897712020-09-03 17:53:022015 days ago1599155582
0xfB9fFbB2...9fe466E27
0.666 ETH
-107897692020-09-03 17:52:462015 days ago1599155566
0xfB9fFbB2...9fe466E27
1.24875 ETH
-107897692020-09-03 17:52:462015 days ago1599155566
0xfB9fFbB2...9fe466E27
0.58275 ETH
-107897692020-09-03 17:52:462015 days ago1599155566
0xfB9fFbB2...9fe466E27
11.655 ETH
-107897652020-09-03 17:51:272015 days ago1599155487
0xfB9fFbB2...9fe466E27
9.8235 ETH
-107897562020-09-03 17:49:062015 days ago1599155346
0xfB9fFbB2...9fe466E27
0.333 ETH
-107897532020-09-03 17:48:192015 days ago1599155299
0xfB9fFbB2...9fe466E27
4.1625 ETH
-107897512020-09-03 17:47:552015 days ago1599155275
0xfB9fFbB2...9fe466E27
8.26506 ETH
-107897502020-09-03 17:47:502015 days ago1599155270
0xfB9fFbB2...9fe466E27
2.4975 ETH
-107897462020-09-03 17:46:272015 days ago1599155187
0xfB9fFbB2...9fe466E27
1.665 ETH
-107897422020-09-03 17:46:202015 days ago1599155180
0xfB9fFbB2...9fe466E27
9.1575 ETH
-107897342020-09-03 17:44:542015 days ago1599155094
0xfB9fFbB2...9fe466E27
4.995 ETH
-107897342020-09-03 17:44:542015 days ago1599155094
0xfB9fFbB2...9fe466E27
6.993 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
REVVSale

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-09-03
*/

// Sources flattened with buidler v1.4.3 https://buidler.dev

// File @animoca/ethereum-contracts-assets_inventory/contracts/token/ERC721/IERC721.sol@v5.0.0

// SPDX-License-Identifier: MIT

pragma solidity 0.6.8;

/**
 * @title ERC721 Non-Fungible Token Standard, basic interface
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 * Note: The ERC-165 identifier for this interface is 0x80ac58cd.
 */
interface IERC721 {
    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 Gets the balance of the specified address
     * @param owner address to query the balance of
     * @return balance uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Gets the owner of the specified ID
     * @param tokenId uint256 ID to query the owner of
     * @return owner address currently marked as the owner of the given ID
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

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

    /**
     * @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 operator address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

    /**
     * @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) external view returns (bool);

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

    /**
     * @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
    */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @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 safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}


// File @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/IERC20.sol@v3.0.0

/*
https://github.com/OpenZeppelin/openzeppelin-contracts

The MIT License (MIT)

Copyright (c) 2016-2019 zOS Global Limited

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

pragma solidity 0.6.8;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(
        address indexed _from,
        address indexed _to,
        uint256 _value
    );

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed _owner,
        address indexed _spender,
        uint256 _value
    );

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}


// File @animoca/ethereum-contracts-core_library/contracts/algo/EnumMap.sol@v3.1.1

/*
https://github.com/OpenZeppelin/openzeppelin-contracts

The MIT License (MIT)

Copyright (c) 2016-2019 zOS Global Limited

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

pragma solidity 0.6.8;

/**
 * @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 EnumMap for EnumMap.Map;
 *
 *     // Declare a set state variable
 *     EnumMap.Map private myMap;
 * }
 * ```
 */
library EnumMap {
    // 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.
    // This means that we can only create new EnumMaps 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) internal 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) internal 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) internal 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) internal 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) internal view returns (bytes32, bytes32) {
        require(map.entries.length > index, "EnumMap: 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) internal view returns (bytes32) {
        uint256 keyIndex = map.indexes[key];
        require(keyIndex != 0, "EnumMap: nonexistent key"); // Equivalent to contains(map, key)
        return map.entries[keyIndex - 1].value; // All indexes are 1-based
    }
}


// File @animoca/ethereum-contracts-core_library/contracts/algo/EnumSet.sol@v3.1.1

/*
https://github.com/OpenZeppelin/openzeppelin-contracts

The MIT License (MIT)

Copyright (c) 2016-2019 zOS Global Limited

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

pragma solidity 0.6.8;

/**
 * @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 EnumSet for EnumSet.Set;
 *
 *     // Declare a set state variable
 *     EnumSet.Set private mySet;
 * }
 * ```
 */
library EnumSet {
    // 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.
    // 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) internal 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) internal 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) internal view returns (bool) {
        return set.indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(Set storage set) internal 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) internal view returns (bytes32) {
        require(set.values.length > index, "EnumSet: index out of bounds");
        return set.values[index];
    }
}


// File @openzeppelin/contracts/GSN/Context.sol@v3.1.0

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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.
 */
abstract contract Context {
    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;
    }
}


// File @openzeppelin/contracts/access/Ownable.sol@v3.1.0

pragma solidity ^0.6.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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


// File @animoca/ethereum-contracts-core_library/contracts/payment/PayoutWallet.sol@v3.1.1

pragma solidity 0.6.8;


/**
    @title PayoutWallet
    @dev adds support for a payout wallet
    Note: .
 */
contract PayoutWallet is Ownable
{
    event PayoutWalletSet(address payoutWallet_);

    address payable public payoutWallet;

    constructor(address payoutWallet_) internal {
        setPayoutWallet(payoutWallet_);
    }

    function setPayoutWallet(address payoutWallet_) public onlyOwner {
        require(payoutWallet_ != address(0), "The payout wallet must not be the zero address");
        require(payoutWallet_ != address(this), "The payout wallet must not be the contract itself");
        require(payoutWallet_ != payoutWallet, "The payout wallet must be different");
        payoutWallet = payable(payoutWallet_);
        emit PayoutWalletSet(payoutWallet);
    }
}


// File @animoca/ethereum-contracts-core_library/contracts/utils/Startable.sol@v3.1.1

pragma solidity 0.6.8;


/**
 * Contract module which allows derived contracts to implement a mechanism for
 * activating, or 'starting', a contract.
 *
 * This module is used through inheritance. It will make available the modifiers
 * `whenNotStarted` and `whenStarted`, which can be applied to the functions of
 * your contract. Those functions will only be 'startable' once the modifiers
 * are put in place.
 */
contract Startable is Context {

    event Started(address account);

    uint256 private _startedAt;

    /**
     * Modifier to make a function callable only when the contract has not started.
     */
    modifier whenNotStarted() {
        require(_startedAt == 0, "Startable: started");
        _;
    }

    /**
     * Modifier to make a function callable only when the contract has started.
     */
    modifier whenStarted() {
        require(_startedAt != 0, "Startable: not started");
        _;
    }

    /**
     * Constructor.
     */
    constructor () internal {}

    /**
     * Returns the timestamp when the contract entered the started state.
     * @return The timestamp when the contract entered the started state.
     */
    function startedAt() public view returns (uint256) {
        return _startedAt;
    }

    /**
     * Triggers the started state.
     * @dev Emits the Started event when the function is successfully called.
     */
    function _start() internal virtual whenNotStarted {
        _startedAt = now;
        emit Started(_msgSender());
    }

}


// File @openzeppelin/contracts/utils/Pausable.sol@v3.1.0

pragma solidity ^0.6.0;


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

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

    bool private _paused;

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/Address.sol@v3.1.0

pragma solidity ^0.6.2;

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/math/SafeMath.sol@v3.1.0

pragma solidity ^0.6.0;

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


// File @animoca/ethereum-contracts-sale_base/contracts/sale/interfaces/ISale.sol@v6.0.0

pragma solidity 0.6.8;

/**
 * @title ISale
 *
 * An interface for a contract which allows merchants to display products and customers to purchase them.
 *
 *  Products, designated as SKUs, are represented by bytes32 identifiers so that an identifier can carry an
 *  explicit name under the form of a fixed-length string. Each SKU can be priced via up to several payment
 *  tokens which can be ETH and/or ERC20(s). ETH token is represented by the magic value TOKEN_ETH, which means
 *  this value can be used as the 'token' argument of the purchase-related functions to indicate ETH payment.
 *
 *  The total available supply for a SKU is fixed at its creation. The magic value SUPPLY_UNLIMITED is used
 *  to represent a SKU with an infinite, never-decreasing supply. An optional purchase notifications receiver
 *  contract address can be set for a SKU at its creation: if the value is different from the zero address,
 *  the function `onPurchaseNotificationReceived` will be called on this address upon every purchase of the SKU.
 *
 *  This interface is designed to be consistent while managing a variety of implementation scenarios. It is
 *  also intended to be developer-friendly: all vital information is consistently deductible from the events
 *  (backend-oriented), as well as retrievable through calls to public functions (frontend-oriented).
 */
interface ISale {
    /**
     * Event emitted to notify about the magic values necessary for interfacing with this contract.
     * @param names An array of names for the magic values used by the contract.
     * @param values An array of values for the magic values used by the contract.
     */
    event MagicValues(bytes32[] names, bytes32[] values);

    /**
     * Event emitted to notify about the creation of a SKU.
     * @param sku The identifier of the created SKU.
     * @param totalSupply The initial total supply for sale.
     * @param maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @param notificationsReceiver If not the zero address, the address of a contract on which `onPurchaseNotificationReceived` will be called after each purchase,
     *  If this is the zero address, the call is not enabled.
     */
    event SkuCreation(bytes32 sku, uint256 totalSupply, uint256 maxQuantityPerPurchase, address notificationsReceiver);

    /**
     * Event emitted to notify about a change in the pricing of a SKU.
     * @dev `tokens` and `prices` arrays MUST have the same length.
     * @param sku The identifier of the updated SKU.
     * @param tokens An array of updated payment tokens. If empty, interpret as all payment tokens being disabled.
     * @param prices An array of updated prices for each of the payment tokens.
     *  Zero price values are used for payment tokens being disabled.
     */
    event SkuPricingUpdate(bytes32 indexed sku, address[] tokens, uint256[] prices);

    /**
     * Event emitted to notify about a purchase.
     * @param purchaser The initiater and buyer of the purchase.
     * @param recipient The recipient of the purchase.
     * @param token The token used as the currency for the payment.
     * @param sku The identifier of the purchased SKU.
     * @param quantity The purchased quantity.
     * @param userData Optional extra user input data.
     * @param totalPrice The amount of `token` paid.
     * @param pricingData Implementation-specific extra pricing data, such as details about discounts applied.
     * @param paymentData Implementation-specific extra payment data, such as conversion rates.
     * @param deliveryData Implementation-specific extra delivery data, such as purchase receipts.
     */
    event Purchase(
        address indexed purchaser,
        address recipient,
        address indexed token,
        bytes32 indexed sku,
        uint256 quantity,
        bytes userData,
        uint256 totalPrice,
        bytes32[] pricingData,
        bytes32[] paymentData,
        bytes32[] deliveryData
    );

    /**
     * Returns the magic value used to represent the ETH payment token.
     * @dev MUST NOT be the zero address.
     * @return the magic value used to represent the ETH payment token.
     */
    function TOKEN_ETH() external pure returns (address);

    /**
     * Returns the magic value used to represent an infinite, never-decreasing SKU's supply.
     * @dev MUST NOT be zero.
     * @return the magic value used to represent an infinite, never-decreasing SKU's supply.
     */
    function SUPPLY_UNLIMITED() external pure returns (uint256);

    /**
     * Performs a purchase.
     * @dev Reverts if `token` is the address zero.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @dev Emits the Purchase event.
     * @param recipient The recipient of the purchase.
     * @param token The token to use as the payment currency.
     * @param sku The identifier of the SKU to purchase.
     * @param quantity The quantity to purchase.
     * @param userData Optional extra user input data.
     */
    function purchaseFor(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external payable;

    /**
     * Estimates the computed final total amount to pay for a purchase, including any potential discount.
     * @dev This function MUST compute the same price as `purchaseFor` would in identical conditions (same arguments, same point in time).
     * @dev Reverts if `token` is the zero address.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @param recipient The recipient of the purchase used to calculate the total price amount.
     * @param token The payment token used to calculate the total price amount.
     * @param sku The identifier of the SKU used to calculate the total price amount.
     * @param quantity The quantity used to calculate the total price amount.
     * @param userData Optional extra user input data.
     * @return totalPrice The computed total price to pay.
     * @return pricingData Implementation-specific extra pricing data, such as details about discounts applied.
     *  If not empty, the implementer MUST document how to interepret the values.
     */
    function estimatePurchase(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external view returns (uint256 totalPrice, bytes32[] memory pricingData);

    /**
     * Returns the information relative to a SKU.
     * @dev WARNING: it is the responsibility of the implementer to ensure that the
     *  number of payment tokens is bounded, so that this function does not run out of gas.
     * @dev Reverts if `sku` does not exist.
     * @param sku The SKU identifier.
     * @return totalSupply The initial total supply for sale.
     * @return remainingSupply The remaining supply for sale.
     * @return maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @return notificationsReceiver The address of a contract on which to call the `onPurchaseNotificationReceived` function.
     * @return tokens The list of supported payment tokens.
     * @return prices The list of associated prices for each of the `tokens`.
     */
    function getSkuInfo(bytes32 sku)
        external
        view
        returns (
            uint256 totalSupply,
            uint256 remainingSupply,
            uint256 maxQuantityPerPurchase,
            address notificationsReceiver,
            address[] memory tokens,
            uint256[] memory prices
        );

    /**
     * Returns the list of created SKU identifiers.
     * @dev WARNING: it is the responsibility of the implementer to ensure that the
     *  number of SKUs is bounded, so that this function does not run out of gas.
     * @return skus the list of created SKU identifiers.
     */
    function getSkus() external view returns (bytes32[] memory skus);
}


// File @animoca/ethereum-contracts-sale_base/contracts/sale/interfaces/IPurchaseNotificationsReceiver.sol@v6.0.0

pragma solidity 0.6.8;


/**
 * @title IPurchaseNotificationsReceiver
 * Interface for any contract that wants to support purchase notifications from a Sale contract.
 */
interface IPurchaseNotificationsReceiver {

    /**
     * Handles the receipt of a purchase notification.
     * @dev This function MUST return the function selector, otherwise the caller will revert the transaction.
     *  The selector to be returned can be obtained as `this.onPurchaseNotificationReceived.selector`
     * @dev This function MAY throw.
     * @param purchaser The purchaser of the purchase.
     * @param recipient The recipient of the purchase.
     * @param token The token to use as the payment currency.
     * @param sku The identifier of the SKU to purchase.
     * @param quantity The quantity to purchase.
     * @param userData Optional extra user input data.
     * @param totalPrice The total price paid.
     * @param pricingData Implementation-specific extra pricing data, such as details about discounts applied.
     * @param paymentData Implementation-specific extra payment data, such as conversion rates.
     * @param deliveryData Implementation-specific extra delivery data, such as purchase receipts.
     * @return `bytes4(keccak256("onPurchaseNotificationReceived(address,address,address,bytes32,uint256,bytes,uint256,bytes32[],bytes32[],bytes32[])"))`
     */
    function onPurchaseNotificationReceived(
        address purchaser,
        address recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData,
        uint256 totalPrice,
        bytes32[] calldata pricingData,
        bytes32[] calldata paymentData,
        bytes32[] calldata deliveryData
    ) external pure returns (bytes4);
}


// File @animoca/ethereum-contracts-sale_base/contracts/sale/PurchaseLifeCycles.sol@v6.0.0

pragma solidity 0.6.8;


/**
 * @title PurchaseLifeCycles
 * An abstract contract which define the life cycles for a purchase implementer.
 */
abstract contract PurchaseLifeCycles {
    /**
     * Wrapper for the purchase data passed as argument to the life cycle functions and down to their step functions.
     */
    struct PurchaseData {
        address payable purchaser;
        address payable recipient;
        address token;
        bytes32 sku;
        uint256 quantity;
        bytes userData;
        uint256 totalPrice;
        bytes32[] pricingData;
        bytes32[] paymentData;
        bytes32[] deliveryData;
    }

    /*                                          Internal Life Cycle Functions                                         */

    /**
     * `estimatePurchase` lifecycle.
     * @param purchase The purchase conditions.
     */
    function _estimatePurchase(PurchaseData memory purchase)
        internal
        virtual
        view
        returns (uint256 totalPrice, bytes32[] memory pricingData)
    {
        _validation(purchase);
        _pricing(purchase);

        totalPrice = purchase.totalPrice;
        pricingData = purchase.pricingData;
    }

    /**
     * `purchaseFor` lifecycle.
     * @param purchase The purchase conditions.
     */
    function _purchaseFor(PurchaseData memory purchase) internal virtual {
        _validation(purchase);
        _pricing(purchase);
        _payment(purchase);
        _delivery(purchase);
        _notification(purchase);
    }

    /*                               Internal Life Cycle Step Functions                               */

    /**
     * Lifecycle step which validates the purchase pre-conditions.
     * @dev Responsibilities:
     *  - Ensure that the purchase pre-conditions are met and revert if not.
     * @param purchase The purchase conditions.
     */
    function _validation(PurchaseData memory purchase) internal virtual view;

    /**
     * Lifecycle step which computes the purchase price.
     * @dev Responsibilities:
     *  - Computes the pricing formula, including any discount logic and price conversion;
     *  - Set the value of `purchase.totalPrice`;
     *  - Add any relevant extra data related to pricing in `purchase.pricingData` and document how to interpret it.
     * @param purchase The purchase conditions.
     */
    function _pricing(PurchaseData memory purchase) internal virtual view;

    /**
     * Lifecycle step which manages the transfer of funds from the purchaser.
     * @dev Responsibilities:
     *  - Ensure the payment reaches destination in the expected output token;
     *  - Handle any token swap logic;
     *  - Add any relevant extra data related to payment in `purchase.paymentData` and document how to interpret it.
     * @param purchase The purchase conditions.
     */
    function _payment(PurchaseData memory purchase) internal virtual;

    /**
     * Lifecycle step which delivers the purchased SKUs to the recipient.
     * @dev Responsibilities:
     *  - Ensure the product is delivered to the recipient, if that is the contract's responsibility.
     *  - Handle any internal logic related to the delivery, including the remaining supply update;
     *  - Add any relevant extra data related to delivery in `purchase.deliveryData` and document how to interpret it.
     * @param purchase The purchase conditions.
     */
    function _delivery(PurchaseData memory purchase) internal virtual;

    /**
     * Lifecycle step which notifies of the purchase.
     * @dev Responsibilities:
     *  - Manage after-purchase event(s) emission.
     *  - Handle calls to the notifications receiver contract's `onPurchaseNotificationReceived` function, if applicable.
     * @param purchase The purchase conditions.
     */
    function _notification(PurchaseData memory purchase) internal virtual;
}


// File @animoca/ethereum-contracts-sale_base/contracts/sale/AbstractSale.sol@v6.0.0

pragma solidity 0.6.8;











/**
 * @title AbstractSale
 * An abstract base sale contract with a minimal implementation of ISale and administration functions.
 *  A minimal implementation of the `_validation`, `_delivery` and `notification` life cycle step functions
 *  are provided, but the inheriting contract must implement `_pricing` and `_payment`.
 */
abstract contract AbstractSale is PurchaseLifeCycles, ISale, PayoutWallet, Startable, Pausable {
    using Address for address;
    using SafeMath for uint256;
    using EnumSet for EnumSet.Set;
    using EnumMap for EnumMap.Map;

    struct SkuInfo {
        uint256 totalSupply;
        uint256 remainingSupply;
        uint256 maxQuantityPerPurchase;
        address notificationsReceiver;
        EnumMap.Map prices;
    }

    address public constant override TOKEN_ETH = address(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
    uint256 public constant override SUPPLY_UNLIMITED = type(uint256).max;

    EnumSet.Set internal _skus;
    mapping(bytes32 => SkuInfo) internal _skuInfos;

    uint256 internal immutable _skusCapacity;
    uint256 internal immutable _tokensPerSkuCapacity;

    /**
     * Constructor.
     * @dev Emits the `MagicValues` event.
     * @dev Emits the `Paused` event.
     * @param payoutWallet_ the payout wallet.
     * @param skusCapacity the cap for the number of managed SKUs.
     * @param tokensPerSkuCapacity the cap for the number of tokens managed per SKU.
     */
    constructor(
        address payoutWallet_,
        uint256 skusCapacity,
        uint256 tokensPerSkuCapacity
    ) internal PayoutWallet(payoutWallet_) {
        _skusCapacity = skusCapacity;
        _tokensPerSkuCapacity = tokensPerSkuCapacity;
        bytes32[] memory names = new bytes32[](2);
        bytes32[] memory values = new bytes32[](2);
        (names[0], values[0]) = ("TOKEN_ETH", bytes32(uint256(TOKEN_ETH)));
        (names[1], values[1]) = ("SUPPLY_UNLIMITED", bytes32(uint256(SUPPLY_UNLIMITED)));
        emit MagicValues(names, values);
        _pause();
    }

    /*                               Public Admin Functions                               */

    /**
     * Actvates, or 'starts', the contract.
     * @dev Emits the `Started` event.
     * @dev Emits the `Unpaused` event.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if the contract has already been started.
     * @dev Reverts if the contract is not paused.
     */
    function start() public virtual onlyOwner {
        _start();
        _unpause();
    }

    /**
     * Pauses the contract.
     * @dev Emits the `Paused` event.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if the contract has not been started yet.
     * @dev Reverts if the contract is already paused.
     */
    function pause() public virtual onlyOwner whenStarted {
        _pause();
    }

    /**
     * Resumes the contract.
     * @dev Emits the `Unpaused` event.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if the contract has not been started yet.
     * @dev Reverts if the contract is not paused.
     */
    function unpause() public virtual onlyOwner whenStarted {
        _unpause();
    }

    /**
     * Creates an SKU.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if `totalSupply` is zero.
     * @dev Reverts if `sku` already exists.
     * @dev Reverts if `notificationsReceiver` is not the zero address and is not a contract address.
     * @dev Reverts if the update results in too many SKUs.
     * @dev Emits the `SkuCreation` event.
     * @param sku the SKU identifier.
     * @param totalSupply the initial total supply.
     * @param maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @param notificationsReceiver The purchase notifications receiver contract address.
     *  If set to the zero address, the notification is not enabled.
     */
    function createSku(
        bytes32 sku,
        uint256 totalSupply,
        uint256 maxQuantityPerPurchase,
        address notificationsReceiver
    ) public virtual onlyOwner {
        require(totalSupply != 0, "Sale: zero supply");
        require(_skus.length() < _skusCapacity, "Sale: too many skus");
        require(_skus.add(sku), "Sale: sku already created");
        if (notificationsReceiver != address(0)) {
            require(notificationsReceiver.isContract(), "Sale: receiver is not a contract");
        }
        SkuInfo storage skuInfo = _skuInfos[sku];
        skuInfo.totalSupply = totalSupply;
        skuInfo.remainingSupply = totalSupply;
        skuInfo.maxQuantityPerPurchase = maxQuantityPerPurchase;
        skuInfo.notificationsReceiver = notificationsReceiver;
        emit SkuCreation(sku, totalSupply, maxQuantityPerPurchase, notificationsReceiver);
    }

    /**
     * Sets the token prices for the specified product SKU.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if `tokens` and `prices` have different lengths.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if one of the `tokens` is the zero address.
     * @dev Reverts if the update results in too many tokens for the SKU.
     * @dev Emits the `SkuPricingUpdate` event.
     * @param sku The identifier of the SKU.
     * @param tokens The list of payment tokens to update.
     *  If empty, disable all the existing payment tokens.
     * @param prices The list of prices to apply for each payment token.
     *  Zero price values are used to disable a payment token.
     */
    function updateSkuPricing(
        bytes32 sku,
        address[] memory tokens,
        uint256[] memory prices
    ) public virtual onlyOwner {
        uint256 length = tokens.length;
        require(length == prices.length, "Sale: tokens/prices lengths mismatch");
        SkuInfo storage skuInfo = _skuInfos[sku];
        require(skuInfo.totalSupply != 0, "Sale: non-existent sku");

        EnumMap.Map storage tokenPrices = skuInfo.prices;
        if (length == 0) {
            uint256 currentLength = tokenPrices.length();
            for (uint256 i = 0; i < currentLength; ++i) {
                // TODO add a clear function in EnumMap and EnumSet and use it
                (bytes32 token, ) = tokenPrices.at(0);
                tokenPrices.remove(token);
            }
        } else {
            _setTokenPrices(tokenPrices, tokens, prices);
        }

        emit SkuPricingUpdate(sku, tokens, prices);
    }

    /*                               ISale Public Functions                               */

    /**
     * Performs a purchase.
     * @dev Reverts if the sale has not started.
     * @dev Reverts if the sale is paused.
     * @dev Reverts if `token` is the address zero.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @dev Emits the Purchase event.
     * @param recipient The recipient of the purchase.
     * @param token The token to use as the payment currency.
     * @param sku The identifier of the SKU to purchase.
     * @param quantity The quantity to purchase.
     * @param userData Optional extra user input data.
     */
    function purchaseFor(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external virtual override payable whenStarted whenNotPaused {
        PurchaseData memory purchase;
        purchase.purchaser = _msgSender();
        purchase.recipient = recipient;
        purchase.token = token;
        purchase.sku = sku;
        purchase.quantity = quantity;
        purchase.userData = userData;

        _purchaseFor(purchase);
    }

    /**
     * Estimates the computed final total amount to pay for a purchase, including any potential discount.
     * @dev This function MUST compute the same price as `purchaseFor` would in identical conditions (same arguments, same point in time).
     * @dev If an implementer contract uses the `priceInfo` field, it SHOULD document how to interpret the info.
     * @dev Reverts if the sale has not started.
     * @dev Reverts if the sale is paused.
     * @dev Reverts if `token` is the zero address.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @param recipient The recipient of the purchase used to calculate the total price amount.
     * @param token The payment token used to calculate the total price amount.
     * @param sku The identifier of the SKU used to calculate the total price amount.
     * @param quantity The quantity used to calculate the total price amount.
     * @param userData Optional extra user input data.
     * @return totalPrice The computed total price.
     * @return priceInfo Implementation-specific extra price information, such as details about potential discounts applied.
     */
    function estimatePurchase(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external virtual override view whenStarted whenNotPaused returns (uint256 totalPrice, bytes32[] memory priceInfo) {
        PurchaseData memory purchase;
        purchase.purchaser = _msgSender();
        purchase.recipient = recipient;
        purchase.token = token;
        purchase.sku = sku;
        purchase.quantity = quantity;
        purchase.userData = userData;

        return _estimatePurchase(purchase);
    }

    /**
     * Returns the information relative to a SKU.
     * @dev WARNING: it is the responsibility of the implementer to ensure that the
     * number of payment tokens is bounded, so that this function does not run out of gas.
     * @param sku The SKU identifier.
     * @return totalSupply The initial total supply for sale.
     * @return remainingSupply The remaining supply for sale.
     * @return maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @return notificationsReceiver The address of a contract on which to call the `onPurchaseNotificationReceived` function.
     * @return tokens The list of supported payment tokens.
     * @return prices The list of associated prices for each of the `tokens`.
     */
    function getSkuInfo(bytes32 sku)
        external
        override
        view
        returns (
            uint256 totalSupply,
            uint256 remainingSupply,
            uint256 maxQuantityPerPurchase,
            address notificationsReceiver,
            address[] memory tokens,
            uint256[] memory prices
        )
    {
        SkuInfo storage skuInfo = _skuInfos[sku];
        uint256 length = skuInfo.prices.length();

        totalSupply = skuInfo.totalSupply;
        remainingSupply = skuInfo.remainingSupply;
        maxQuantityPerPurchase = skuInfo.maxQuantityPerPurchase;
        notificationsReceiver = skuInfo.notificationsReceiver;

        tokens = new address[](length);
        prices = new uint256[](length);
        for (uint256 i = 0; i < length; ++i) {
            (bytes32 token, bytes32 price) = skuInfo.prices.at(i);
            tokens[i] = address(uint256(token));
            prices[i] = uint256(price);
        }
    }

    /**
     * Returns the list of created SKU identifiers.
     * @return skus the list of created SKU identifiers.
     */
    function getSkus() external override view returns (bytes32[] memory skus) {
        skus = _skus.values;
    }


    /*                               Internal Utility Functions                               */

    function _setTokenPrices(
        EnumMap.Map storage tokenPrices,
        address[] memory tokens,
        uint256[] memory prices
    ) internal virtual {
        for (uint256 i = 0; i < tokens.length; ++i) {
            address token = tokens[i];
            require(token != address(0), "Sale: zero address token");
            uint256 price = prices[i];
            if (price == 0) {
                tokenPrices.remove(bytes32(uint256(token)));
            } else {
                tokenPrices.set(bytes32(uint256(token)), bytes32(price));
            }
        }
        require(tokenPrices.length() <= _tokensPerSkuCapacity, "Sale: too many tokens");
    }

    /*                               Internal Life Cycle Step Functions                               */

    /**
     * Lifecycle step which validates the purchase pre-conditions.
     * @dev Responsibilities:
     *  - Ensure that the purchase pre-conditions are met and revert if not.
     * @dev Reverts if `purchase.recipient` is the zero address.
     * @dev Reverts if `purchase.quantity` is zero.
     * @dev Reverts if `purchase.quantity` is greater than the SKU's `maxQuantityPerPurchase`.
     * @dev Reverts if `purchase.quantity` is greater than the available supply.
     * @dev If this function is overriden, the implementer SHOULD super call this before.
     * @param purchase The purchase conditions.
     */
    function _validation(PurchaseData memory purchase) internal virtual override view {
        require(purchase.recipient != address(0), "Sale: zero address recipient");
        require(purchase.quantity != 0, "Sale: zero quantity purchase");
        SkuInfo memory skuInfo = _skuInfos[purchase.sku];
        require(purchase.quantity <= skuInfo.maxQuantityPerPurchase, "Sale: above max quantity");
        if (skuInfo.totalSupply != SUPPLY_UNLIMITED) {
            require(skuInfo.remainingSupply >= purchase.quantity, "Sale: insufficient supply");
        }
    }

    /**
     * Lifecycle step which delivers the purchased SKUs to the recipient.
     * @dev Responsibilities:
     *  - Ensure the product is delivered to the recipient, if that is the contract's responsibility.
     *  - Handle any internal logic related to the delivery, including the remaining supply update;
     *  - Add any relevant extra data related to delivery in `purchase.deliveryData` and document how to interpret it.
     * @dev Reverts if there is not enough available supply.
     * @dev If this function is overriden, the implementer SHOULD super call it.
     * @param purchase The purchase conditions.
     */
    function _delivery(PurchaseData memory purchase) internal virtual override {
        SkuInfo memory skuInfo = _skuInfos[purchase.sku];
        if (skuInfo.totalSupply != SUPPLY_UNLIMITED) {
            _skuInfos[purchase.sku].remainingSupply = skuInfo.remainingSupply.sub(purchase.quantity);
        }
    }

    /**
     * Lifecycle step which notifies of the purchase.
     * @dev Responsibilities:
     *  - Manage after-purchase event(s) emission.
     *  - Handle calls to the notifications receiver contract's `onPurchaseNotificationReceived` function, if applicable.
     * @dev Reverts if `onPurchaseNotificationReceived` throws or returns an incorrect value.
     * @dev Emits the `Purchase` event. The values of `purchaseData` are the concatenated values of `priceData`, `paymentData`
     * and `deliveryData`. If not empty, the implementer MUST document how to interpret these values.
     * @dev If this function is overriden, the implementer SHOULD super call it.
     * @param purchase The purchase conditions.
     */
    function _notification(PurchaseData memory purchase) internal virtual override {
        emit Purchase(
            purchase.purchaser,
            purchase.recipient,
            purchase.token,
            purchase.sku,
            purchase.quantity,
            purchase.userData,
            purchase.totalPrice,
            purchase.pricingData,
            purchase.paymentData,
            purchase.deliveryData
        );

        address notificationsReceiver = _skuInfos[purchase.sku].notificationsReceiver;
        if (notificationsReceiver != address(0)) {
            require(
                IPurchaseNotificationsReceiver(notificationsReceiver).onPurchaseNotificationReceived(
                    purchase.purchaser,
                    purchase.recipient,
                    purchase.token,
                    purchase.sku,
                    purchase.quantity,
                    purchase.userData,
                    purchase.totalPrice,
                    purchase.pricingData,
                    purchase.paymentData,
                    purchase.deliveryData
                ) == IPurchaseNotificationsReceiver(address(0)).onPurchaseNotificationReceived.selector, // TODO precompute return value
                "Sale: wrong receiver return value"
            );
        }
    }
}


// File @animoca/ethereum-contracts-sale_base/contracts/sale/FixedPricesSale.sol@v6.0.0

pragma solidity 0.6.8;



/**
 * @title FixedPricesSale
 * An AbstractSale which implements a fixed prices strategy.
 *  The final implementer is responsible for implementing any additional pricing and/or delivery logic.
 */
contract FixedPricesSale is AbstractSale {
    /**
     * Constructor.
     * @dev Emits the `MagicValues` event.
     * @dev Emits the `Paused` event.
     * @param payoutWallet_ the payout wallet.
     * @param skusCapacity the cap for the number of managed SKUs.
     * @param tokensPerSkuCapacity the cap for the number of tokens managed per SKU.
     */
    constructor(
        address payoutWallet_,
        uint256 skusCapacity,
        uint256 tokensPerSkuCapacity
    ) internal AbstractSale(payoutWallet_, skusCapacity, tokensPerSkuCapacity) {}

    /*                               Internal Life Cycle Functions                               */

    /**
     * Lifecycle step which computes the purchase price.
     * @dev Responsibilities:
     *  - Computes the pricing formula, including any discount logic and price conversion;
     *  - Set the value of `purchase.totalPrice`;
     *  - Add any relevant extra data related to pricing in `purchase.pricingData` and document how to interpret it.
     * @dev Reverts if `purchase.sku` does not exist.
     * @dev Reverts if `purchase.token` is not supported by the SKU.
     * @dev Reverts in case of price overflow.
     * @param purchase The purchase conditions.
     */
    function _pricing(PurchaseData memory purchase) internal virtual override view {
        SkuInfo storage skuInfo = _skuInfos[purchase.sku];
        require(skuInfo.totalSupply != 0, "Sale: unsupported SKU");
        EnumMap.Map storage prices = skuInfo.prices;
        uint256 unitPrice = _unitPrice(purchase, prices);
        purchase.totalPrice = unitPrice.mul(purchase.quantity);
    }

    /**
     * Lifecycle step which manages the transfer of funds from the purchaser.
     * @dev Responsibilities:
     *  - Ensure the payment reaches destination in the expected output token;
     *  - Handle any token swap logic;
     *  - Add any relevant extra data related to payment in `purchase.paymentData` and document how to interpret it.
     * @dev Reverts in case of payment failure.
     * @param purchase The purchase conditions.
     */
    function _payment(PurchaseData memory purchase) internal virtual override {
        if (purchase.token == TOKEN_ETH) {
            require(msg.value >= purchase.totalPrice, "Sale: insufficient ETH provided");

            payoutWallet.transfer(purchase.totalPrice);

            uint256 change = msg.value.sub(purchase.totalPrice);

            if (change != 0) {
                purchase.purchaser.transfer(change);
            }
        } else {
            require(
                IERC20(purchase.token).transferFrom(_msgSender(), payoutWallet, purchase.totalPrice),
                "Sale: ERC20 payment failed"
            );
        }
    }

    /*                               Internal Utility Functions                               */

    function _unitPrice(PurchaseData memory purchase, EnumMap.Map storage prices)
        internal
        virtual
        view
        returns (uint256 unitPrice)
    {
        unitPrice = uint256(prices.get(bytes32(uint256(purchase.token))));
        require(unitPrice != 0, "Sale: unsupported payment token");
    }
}


// File @animoca/f1dt-ethereum-contracts/contracts/sale/REVVSale.sol@v0.4.0

pragma solidity =0.6.8;




/**
 * @title REVVSale
 * A sale contract for the initial REVV distribution to F1 NFT owners.
 */
contract REVVSale is FixedPricesSale {
    IERC20 public immutable revv;
    IERC721 public immutable deltaTimeInventory;

    /**
     * Constructor.
     * @param payoutWallet_ The wallet address used to receive purchase payments.
     */
    constructor(
        address revv_,
        address deltaTimeInventory_,
        address payable payoutWallet_
    ) public FixedPricesSale(payoutWallet_, 64, 32) {
        require(revv_ != address(0), "REVVSale: zero address REVV ");
        require(deltaTimeInventory_ != address(0), "REVVSale: zero address inventory ");
        revv = IERC20(revv_);
        deltaTimeInventory = IERC721(deltaTimeInventory_);
    }

    /**
     * Creates a REVV sku and funds the necessary amount to this contract.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if `totalSupply` is zero.
     * @dev Reverts if `sku` already exists.
     * @dev Reverts if `notificationsReceiver` is not the zero address and is not a contract address.
     * @dev Reverts if the update results in too many SKUs.
     * @dev Reverts if the REVV funding fails.
     * @dev Emits the `SkuCreation` event.
     * @param sku the SKU identifier.
     * @param totalSupply the initial total supply.
     * @param maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @param notificationsReceiver The purchase notifications receiver contract address.
     *  If set to the zero address, the notification is not enabled.
     */
    function createSku(
        bytes32 sku,
        uint256 totalSupply,
        uint256 maxQuantityPerPurchase,
        address notificationsReceiver
    ) public virtual override {
        super.createSku(sku, totalSupply, maxQuantityPerPurchase, notificationsReceiver);
        require(
            revv.transferFrom(
                _msgSender(),
                address(this),
                totalSupply.mul(1000000000000000000)
            ),
            "REVVSale: REVV transfer failed"
        );
    }

    /**
     * Lifecycle step which validates the purchase pre-conditions.
     * @dev Responsibilities:
     *  - Ensure that the purchase pre-conditions are met and revert if not.
     * @param purchase The purchase conditions.
     */
    function _validation(PurchaseData memory purchase) internal override view {
        super._validation(purchase);
        require(deltaTimeInventory.balanceOf(_msgSender()) != 0, "REVVSale: must be a NFT owner");
    }

    function _delivery(PurchaseData memory purchase) internal override {
        super._delivery(purchase);
        require(
            revv.transfer(purchase.recipient, purchase.quantity.mul(1000000000000000000)),
            "REVVSale:  REVV transfer failed"
        );
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"revv_","type":"address"},{"internalType":"address","name":"deltaTimeInventory_","type":"address"},{"internalType":"address payable","name":"payoutWallet_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32[]","name":"names","type":"bytes32[]"},{"indexed":false,"internalType":"bytes32[]","name":"values","type":"bytes32[]"}],"name":"MagicValues","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"payoutWallet_","type":"address"}],"name":"PayoutWalletSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"purchaser","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"bytes32","name":"sku","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"userData","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"totalPrice","type":"uint256"},{"indexed":false,"internalType":"bytes32[]","name":"pricingData","type":"bytes32[]"},{"indexed":false,"internalType":"bytes32[]","name":"paymentData","type":"bytes32[]"},{"indexed":false,"internalType":"bytes32[]","name":"deliveryData","type":"bytes32[]"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"sku","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxQuantityPerPurchase","type":"uint256"},{"indexed":false,"internalType":"address","name":"notificationsReceiver","type":"address"}],"name":"SkuCreation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"sku","type":"bytes32"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"SkuPricingUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Started","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"SUPPLY_UNLIMITED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sku","type":"bytes32"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"maxQuantityPerPurchase","type":"uint256"},{"internalType":"address","name":"notificationsReceiver","type":"address"}],"name":"createSku","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deltaTimeInventory","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"bytes32","name":"sku","type":"bytes32"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"}],"name":"estimatePurchase","outputs":[{"internalType":"uint256","name":"totalPrice","type":"uint256"},{"internalType":"bytes32[]","name":"priceInfo","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sku","type":"bytes32"}],"name":"getSkuInfo","outputs":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"remainingSupply","type":"uint256"},{"internalType":"uint256","name":"maxQuantityPerPurchase","type":"uint256"},{"internalType":"address","name":"notificationsReceiver","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSkus","outputs":[{"internalType":"bytes32[]","name":"skus","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"bytes32","name":"sku","type":"bytes32"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"}],"name":"purchaseFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revv","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"payoutWallet_","type":"address"}],"name":"setPayoutWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sku","type":"bytes32"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"updateSkuPricing","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b506040516200360238038062003602833981810160405260608110156200003857600080fd5b5080516020808301516040938401519293909291829190828282826000620000686001600160e01b036200036516565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000c6816001600160e01b036200036916565b506003805460ff19169055608082905260a081905260408051600280825260608083018452926020830190803683375050604080516002808252606080830184529495509092509060208301908036833750508351919250680a89e968a9cbe8aa8960bb1b9173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee915084906000906200014f57fe5b60200260200101836000815181106200016457fe5b602002602001018281525082815250505060001960001b6f14d55414131657d5539312535255115160821b90836001815181106200019e57fe5b6020026020010183600181518110620001b357fe5b60200260200101828152508281525050507fabb92614f53337043b55dc996a83ebb09adce78ec336ca188ea02180b61d1c148282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156200022d57818101518382015260200162000213565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156200026e57818101518382015260200162000254565b5050505090500194505050505060405180910390a1620002966001600160e01b036200051916565b50505050506001600160a01b03861615159250620002fe915050576040805162461bcd60e51b815260206004820152601c60248201527f5245565653616c653a207a65726f206164647265737320524556562000000000604482015290519081900360640190fd5b6001600160a01b038216620003455760405162461bcd60e51b81526004018080602001828103825260218152602001806200355f6021913960400191505060405180910390fd5b506001600160601b0319606092831b811660c052911b1660e052620005c3565b3390565b6200037c6001600160e01b036200036516565b6000546001600160a01b03908116911614620003df576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620004265760405162461bcd60e51b815260040180806020018281038252602e815260200180620035d4602e913960400191505060405180910390fd5b6001600160a01b038116301415620004705760405162461bcd60e51b8152600401808060200182810382526031815260200180620035806031913960400191505060405180910390fd5b6001546001600160a01b0382811691161415620004bf5760405162461bcd60e51b8152600401808060200182810382526023815260200180620035b16023913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517fdd880d24a789958a6398c99c2e54ce31bc10a638cbc42f7dd34285479ae0f855916020908290030190a150565b60035460ff161562000565576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620005a66001600160e01b036200036516565b604080516001600160a01b039092168252519081900360200190a1565b60805160a05160c05160601c60e05160601c612f516200060e600039806107745280611d3f525080610a435280610c46528061222f525080611b745250806116af5250612f516000f3fe60806040526004361061015f5760003560e01c80636b8f9c43116100c05780639e04954511610074578063be9a655511610059578063be9a655514610715578063f21f537d1461072a578063f2fde38b1461073f5761015f565b80639e04954514610659578063a963b257146106805761015f565b80638456cb59116100a55780638456cb591461061a5780638488bb4e1461062f5780638da5cb5b146106445761015f565b80636b8f9c43146105d2578063715018a6146106055761015f565b80634d7e1da6116101175780635c975abb116100fc5780635c975abb146104095780635e6e9f701461043257806361bd38511461056d5761015f565b80634d7e1da6146103df5780635c4fafc7146103f45761015f565b80632a8a45bc116101485780632a8a45bc146102925780632c87927b146103835780633f4ba83a146103ca5761015f565b80630e6100b1146101645780631323b06614610195575b600080fd5b34801561017057600080fd5b50610179610772565b604080516001600160a01b039092168252519081900360200190f35b3480156101a157600080fd5b50610237600480360360a08110156101b857600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156101f857600080fd5b82018360208201111561020a57600080fd5b8035906020019184600183028401116401000000008311171561022c57600080fd5b509092509050610796565b6040518083815260200180602001828103825283818151815260200191508051906020019060200280838360005b8381101561027d578181015183820152602001610265565b50505050905001935050505060405180910390f35b34801561029e57600080fd5b506102bc600480360360208110156102b557600080fd5b50356108db565b60405180878152602001868152602001858152602001846001600160a01b03166001600160a01b031681526020018060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561032a578181015183820152602001610312565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610369578181015183820152602001610351565b505050509050019850505050505050505060405180910390f35b34801561038f57600080fd5b506103c8600480360360808110156103a657600080fd5b50803590602081013590604081013590606001356001600160a01b0316610a35565b005b3480156103d657600080fd5b506103c8610b7c565b3480156103eb57600080fd5b50610179610c44565b34801561040057600080fd5b50610179610c68565b34801561041557600080fd5b5061041e610c80565b604080519115158252519081900360200190f35b34801561043e57600080fd5b506103c86004803603606081101561045557600080fd5b8135919081019060408101602082013564010000000081111561047757600080fd5b82018360208201111561048957600080fd5b803590602001918460208302840111640100000000831117156104ab57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156104fb57600080fd5b82018360208201111561050d57600080fd5b8035906020019184602083028401116401000000008311171561052f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c89945050505050565b34801561057957600080fd5b50610582610ebb565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156105be5781810151838201526020016105a6565b505050509050019250505060405180910390f35b3480156105de57600080fd5b506103c8600480360360208110156105f557600080fd5b50356001600160a01b0316610f16565b34801561061157600080fd5b506103c86110c1565b34801561062657600080fd5b506103c8611182565b34801561063b57600080fd5b50610179611248565b34801561065057600080fd5b50610179611257565b34801561066557600080fd5b5061066e611266565b60408051918252519081900360200190f35b6103c8600480360360a081101561069657600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156106d657600080fd5b8201836020820111156106e857600080fd5b8035906020019184600183028401116401000000008311171561070a57600080fd5b50909250905061126c565b34801561072157600080fd5b506103c86113a2565b34801561073657600080fd5b5061066e611414565b34801561074b57600080fd5b506103c86004803603602081101561076257600080fd5b50356001600160a01b031661141a565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006060600254600014156107f2576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b60035460ff161561084a576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b610852612d4c565b61085a611531565b6001600160a01b03908116825289811660208084019190915290891660408084019190915260608301899052608083018890528051601f870183900483028101830190915285815290869086908190840183828082843760009201919091525050505060a08201526108cb81611535565b9250925050965096945050505050565b60008181526006602052604081208190819081906060908190836109016004830161155c565b8254600184015460028501546003860154929b5090995097506001600160a01b0316955090508067ffffffffffffffff8111801561093e57600080fd5b50604051908082528060200260200182016040528015610968578160200160208202803683370190505b5093508067ffffffffffffffff8111801561098257600080fd5b506040519080825280602002602001820160405280156109ac578160200160208202803683370190505b50925060005b81811015610a29576000806109d0600486018463ffffffff61156016565b915091508160001c8784815181106109e457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508060001c868481518110610a1457fe5b602090810291909101015250506001016109b2565b50505091939550919395565b610a41848484846115f1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd610a78611531565b30610a9187670de0b6b3a764000063ffffffff61189816565b6040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b031681526020018281526020019350505050602060405180830381600087803b158015610af957600080fd5b505af1158015610b0d573d6000803e3d6000fd5b505050506040513d6020811015610b2357600080fd5b5051610b76576040805162461bcd60e51b815260206004820152601e60248201527f5245565653616c653a2052455656207472616e73666572206661696c65640000604482015290519081900360640190fd5b50505050565b610b84611531565b6000546001600160a01b03908116911614610be6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254610c3a576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b610c426118fa565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b60035460ff1690565b610c91611531565b6000546001600160a01b03908116911614610cf3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b815181518114610d345760405162461bcd60e51b8152600401808060200182810382526024815260200180612ea96024913960400191505060405180910390fd5b60008481526006602052604090208054610d95576040805162461bcd60e51b815260206004820152601660248201527f53616c653a206e6f6e2d6578697374656e7420736b7500000000000000000000604482015290519081900360640190fd5b6004810182610dec576000610da98261155c565b905060005b81811015610de5576000610dc8848263ffffffff61156016565b509050610ddb848263ffffffff6119a116565b5050600101610dae565b5050610df7565b610df7818686611a7f565b857fcb3fe5489e0cd43d0f4a33d1e09a4a0463a03d0d38f56165530854e5540db1438686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e5f578181015183820152602001610e47565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610e9e578181015183820152602001610e86565b5050505090500194505050505060405180910390a2505050505050565b60606004600001805480602002602001604051908101604052809291908181526020018280548015610f0c57602002820191906000526020600020905b815481526020019060010190808311610ef8575b5050505050905090565b610f1e611531565b6000546001600160a01b03908116911614610f80576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610fc55760405162461bcd60e51b815260040180806020018281038252602e815260200180612ecd602e913960400191505060405180910390fd5b6001600160a01b03811630141561100d5760405162461bcd60e51b8152600401808060200182810382526031815260200180612e0e6031913960400191505060405180910390fd5b6001546001600160a01b038281169116141561105a5760405162461bcd60e51b8152600401808060200182810382526023815260200180612e656023913960400191505060405180910390fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03838116919091179182905560408051929091168252517fdd880d24a789958a6398c99c2e54ce31bc10a638cbc42f7dd34285479ae0f855916020908290030190a150565b6110c9611531565b6000546001600160a01b0390811691161461112b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b61118a611531565b6000546001600160a01b039081169116146111ec576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254611240576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b610c42611bf4565b6001546001600160a01b031681565b6000546001600160a01b031690565b60001981565b6002546112c0576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b60035460ff1615611318576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b611320612d4c565b611328611531565b6001600160a01b03908116825287811660208084019190915290871660408084019190915260608301879052608083018690528051601f850183900483028101830190915283815290849084908190840183828082843760009201919091525050505060a082015261139981611c82565b50505050505050565b6113aa611531565b6000546001600160a01b0390811691161461140c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610c3a611cb2565b60025490565b611422611531565b6000546001600160a01b03908116911614611484576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166114c95760405162461bcd60e51b8152600401808060200182810382526026815260200180612e3f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3390565b6000606061154283611d34565b61154b83611e37565b505060c081015160e0909101519091565b5490565b8154600090819083106115ba576040805162461bcd60e51b815260206004820152601c60248201527f456e756d4d61703a20696e646578206f7574206f6620626f756e647300000000604482015290519081900360640190fd5b60008460000184815481106115cb57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6115f9611531565b6000546001600160a01b0390811691161461165b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b826116ad576040805162461bcd60e51b815260206004820152601160248201527f53616c653a207a65726f20737570706c79000000000000000000000000000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006116d8600461155c565b1061172a576040805162461bcd60e51b815260206004820152601360248201527f53616c653a20746f6f206d616e7920736b757300000000000000000000000000604482015290519081900360640190fd5b61173b60048563ffffffff611ed416565b61178c576040805162461bcd60e51b815260206004820152601960248201527f53616c653a20736b7520616c7265616479206372656174656400000000000000604482015290519081900360640190fd5b6001600160a01b038116156117fe576117ad816001600160a01b0316611f1e565b6117fe576040805162461bcd60e51b815260206004820181905260248201527f53616c653a207265636569766572206973206e6f74206120636f6e7472616374604482015290519081900360640190fd5b60008481526006602090815260409182902085815560018101869055600281018590556003810180546001600160a01b03861673ffffffffffffffffffffffffffffffffffffffff1990911681179091558351888152928301879052828401869052606083015291517f38bd4aabce684540cd61351b91f2f5facf9d6963934347e25aab93d87ae7ac149181900360800190a15050505050565b6000826118a7575060006118f4565b828202828482816118b457fe5b04146118f15760405162461bcd60e51b8152600401808060200182810382526021815260200180612e886021913960400191505060405180910390fd5b90505b92915050565b60035460ff16611951576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611984611531565b604080516001600160a01b039092168252519081900360200190a1565b60008181526001830160205260408120548015611a7557835460001980830191908101906000908790839081106119d457fe5b90600052602060002090600202019050808760000184815481106119f457fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611a3357fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506118f49350505050565b60009150506118f4565b60005b8251811015611b71576000838281518110611a9957fe5b6020026020010151905060006001600160a01b0316816001600160a01b03161415611b0b576040805162461bcd60e51b815260206004820152601860248201527f53616c653a207a65726f206164647265737320746f6b656e0000000000000000604482015290519081900360640190fd5b6000838381518110611b1957fe5b602002602001015190508060001415611b4b57611b45866001600160a01b03841663ffffffff6119a116565b50611b67565b611b65866001600160a01b0384168363ffffffff611f5a16565b505b5050600101611a82565b507f0000000000000000000000000000000000000000000000000000000000000000611b9c8461155c565b1115611bef576040805162461bcd60e51b815260206004820152601560248201527f53616c653a20746f6f206d616e7920746f6b656e730000000000000000000000604482015290519081900360640190fd5b505050565b60035460ff1615611c4c576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611984611531565b611c8b81611d34565b611c9481611e37565b611c9d81611ff4565b611ca681612224565b611caf8161234c565b50565b60025415611d07576040805162461bcd60e51b815260206004820152601260248201527f537461727461626c653a20737461727465640000000000000000000000000000604482015290519081900360640190fd5b426002557f27029695aa5f602a4ee81f4c32dfa86e562f200a17966496f3a7c3f2ec0f9417611984611531565b611d3d816127fb565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231611d74611531565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611dba57600080fd5b505afa158015611dce573d6000803e3d6000fd5b505050506040513d6020811015611de457600080fd5b5051611caf576040805162461bcd60e51b815260206004820152601d60248201527f5245565653616c653a206d7573742062652061204e4654206f776e6572000000604482015290519081900360640190fd5b606081015160009081526006602052604090208054611e9d576040805162461bcd60e51b815260206004820152601560248201527f53616c653a20756e737570706f7274656420534b550000000000000000000000604482015290519081900360640190fd5b600481016000611ead8483612a46565b9050611ec684608001518261189890919063ffffffff16565b60c090940193909352505050565b6000611ee08383612abc565b611f16575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556118f4565b5060006118f4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611f5257508115155b949350505050565b600082815260018401602052604081205480611fbf575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611fed565b82856000016001830381548110611fd257fe5b90600052602060002090600202016001018190555060009150505b9392505050565b60408101516001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415612117578060c00151341015612076576040805162461bcd60e51b815260206004820152601f60248201527f53616c653a20696e73756666696369656e74204554482070726f766964656400604482015290519081900360640190fd5b60015460c08201516040516001600160a01b039092169181156108fc0291906000818181858888f193505050501580156120b4573d6000803e3d6000fd5b5060006120ce8260c0015134612ad490919063ffffffff16565b905080156121115781516040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561210f573d6000803e3d6000fd5b505b50611caf565b80604001516001600160a01b03166323b872dd612132611531565b60015460c0850151604080517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03948516600482015293909216602484015260448301525160648083019260209291908290030181600087803b1580156121a757600080fd5b505af11580156121bb573d6000803e3d6000fd5b505050506040513d60208110156121d157600080fd5b5051611caf576040805162461bcd60e51b815260206004820152601a60248201527f53616c653a204552433230207061796d656e74206661696c6564000000000000604482015290519081900360640190fd5b61222d81612b16565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb8260200151612280670de0b6b3a7640000856080015161189890919063ffffffff16565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156122cf57600080fd5b505af11580156122e3573d6000803e3d6000fd5b505050506040513d60208110156122f957600080fd5b5051611caf576040805162461bcd60e51b815260206004820152601f60248201527f5245565653616c653a202052455656207472616e73666572206661696c656400604482015290519081900360640190fd5b806060015181604001516001600160a01b031682600001516001600160a01b03167fb8a1ba0f3cb29e281493deb1636241d01a302283b53fd6c824d772b3a79f647f846020015185608001518660a001518760c001518860e001518961010001518a610120015160405180886001600160a01b03166001600160a01b031681526020018781526020018060200186815260200180602001806020018060200185810385528a818151815260200191508051906020019080838360005b83811015612420578181015183820152602001612408565b50505050905090810190601f16801561244d5780820380516001836020036101000a031916815260200191505b508581038452885181528851602091820191808b01910280838360005b8381101561248257818101518382015260200161246a565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156124c15781810151838201526020016124a9565b50505050905001858103825286818151815260200191508051906020019060200280838360005b838110156125005781810151838201526020016124e8565b505050509050019b50505050505050505050505060405180910390a460608101516000908152600660205260409020600301546001600160a01b031680156127f7576361eceae860e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916816001600160a01b03166361eceae8846000015185602001518660400151876060015188608001518960a001518a60c001518b60e001518c61010001518d61012001516040518b63ffffffff1660e01b8152600401808b6001600160a01b03166001600160a01b031681526020018a6001600160a01b03166001600160a01b03168152602001896001600160a01b03166001600160a01b031681526020018881526020018781526020018060200186815260200180602001806020018060200185810385528a818151815260200191508051906020019080838360005b8381101561265e578181015183820152602001612646565b50505050905090810190601f16801561268b5780820380516001836020036101000a031916815260200191505b508581038452885181528851602091820191808b01910280838360005b838110156126c05781810151838201526020016126a8565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156126ff5781810151838201526020016126e7565b50505050905001858103825286818151815260200191508051906020019060200280838360005b8381101561273e578181015183820152602001612726565b505050509050019e50505050505050505050505050505060206040518083038186803b15801561276d57600080fd5b505afa158015612781573d6000803e3d6000fd5b505050506040513d602081101561279757600080fd5b50517fffffffff0000000000000000000000000000000000000000000000000000000016146127f75760405162461bcd60e51b8152600401808060200182810382526021815260200180612efb6021913960400191505060405180910390fd5b5050565b60208101516001600160a01b031661285a576040805162461bcd60e51b815260206004820152601c60248201527f53616c653a207a65726f206164647265737320726563697069656e7400000000604482015290519081900360640190fd5b60808101516128b0576040805162461bcd60e51b815260206004820152601c60248201527f53616c653a207a65726f207175616e7469747920707572636861736500000000604482015290519081900360640190fd5b6128b8612dbd565b6060808301516000908152600660209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201546001600160a01b031695810195909552815160048201805480860283018501855294820185815292956080880195929491938593909285929085015b828210156129745783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061292e565b50505050815250508152505090508060400151826080015111156129df576040805162461bcd60e51b815260206004820152601860248201527f53616c653a2061626f7665206d6178207175616e746974790000000000000000604482015290519081900360640190fd5b8051600019146127f7578160800151816020015110156127f7576040805162461bcd60e51b815260206004820152601960248201527f53616c653a20696e73756666696369656e7420737570706c7900000000000000604482015290519081900360640190fd5b6040820151600090612a689083906001600160a01b031663ffffffff612c2516565b9050806118f4576040805162461bcd60e51b815260206004820152601f60248201527f53616c653a20756e737570706f72746564207061796d656e7420746f6b656e00604482015290519081900360640190fd5b60009081526001919091016020526040902054151590565b60006118f183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612cb5565b612b1e612dbd565b6060808301516000908152600660209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201546001600160a01b031695810195909552815160048201805480860283018501855294820185815292956080880195929491938593909285929085015b82821015612bda57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190612b94565b505050915250509052508051909150600019146127f75760808201516020820151612c0a9163ffffffff612ad416565b60608301516000908152600660205260409020600101555050565b600081815260018301602052604081205480612c88576040805162461bcd60e51b815260206004820152601860248201527f456e756d4d61703a206e6f6e6578697374656e74206b65790000000000000000604482015290519081900360640190fd5b836000016001820381548110612c9a57fe5b90600052602060002090600202016001015491505092915050565b60008184841115612d445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612d09578181015183820152602001612cf1565b50505050905090810190601f168015612d365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60405180610140016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600080191681526020016000815260200160608152602001600081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160006001600160a01b03168152602001612df5612dfa565b905290565b604051806020016040528060608152509056fe546865207061796f75742077616c6c6574206d757374206e6f742062652074686520636f6e747261637420697473656c664f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546865207061796f75742077616c6c6574206d75737420626520646966666572656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7753616c653a20746f6b656e732f707269636573206c656e67746873206d69736d61746368546865207061796f75742077616c6c6574206d757374206e6f7420626520746865207a65726f206164647265737353616c653a2077726f6e672072656365697665722072657475726e2076616c7565a26469706673582212200a0f2a2ecab2f6884a7f6ad6b9bfc2c7944fb1421b9f55e1d79b2889345cd65a64736f6c634300060800335245565653616c653a207a65726f206164647265737320696e76656e746f727920546865207061796f75742077616c6c6574206d757374206e6f742062652074686520636f6e747261637420697473656c66546865207061796f75742077616c6c6574206d75737420626520646966666572656e74546865207061796f75742077616c6c6574206d757374206e6f7420626520746865207a65726f2061646472657373000000000000000000000000557b933a7c2c45672b610f8954a3deb39a51a8ca0000000000000000000000002af75676692817d85121353f0d6e8e9ae6ad5576000000000000000000000000324736aaac94eda00bec66fbaf3adffbcc10584f

Deployed Bytecode

0x60806040526004361061015f5760003560e01c80636b8f9c43116100c05780639e04954511610074578063be9a655511610059578063be9a655514610715578063f21f537d1461072a578063f2fde38b1461073f5761015f565b80639e04954514610659578063a963b257146106805761015f565b80638456cb59116100a55780638456cb591461061a5780638488bb4e1461062f5780638da5cb5b146106445761015f565b80636b8f9c43146105d2578063715018a6146106055761015f565b80634d7e1da6116101175780635c975abb116100fc5780635c975abb146104095780635e6e9f701461043257806361bd38511461056d5761015f565b80634d7e1da6146103df5780635c4fafc7146103f45761015f565b80632a8a45bc116101485780632a8a45bc146102925780632c87927b146103835780633f4ba83a146103ca5761015f565b80630e6100b1146101645780631323b06614610195575b600080fd5b34801561017057600080fd5b50610179610772565b604080516001600160a01b039092168252519081900360200190f35b3480156101a157600080fd5b50610237600480360360a08110156101b857600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156101f857600080fd5b82018360208201111561020a57600080fd5b8035906020019184600183028401116401000000008311171561022c57600080fd5b509092509050610796565b6040518083815260200180602001828103825283818151815260200191508051906020019060200280838360005b8381101561027d578181015183820152602001610265565b50505050905001935050505060405180910390f35b34801561029e57600080fd5b506102bc600480360360208110156102b557600080fd5b50356108db565b60405180878152602001868152602001858152602001846001600160a01b03166001600160a01b031681526020018060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561032a578181015183820152602001610312565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610369578181015183820152602001610351565b505050509050019850505050505050505060405180910390f35b34801561038f57600080fd5b506103c8600480360360808110156103a657600080fd5b50803590602081013590604081013590606001356001600160a01b0316610a35565b005b3480156103d657600080fd5b506103c8610b7c565b3480156103eb57600080fd5b50610179610c44565b34801561040057600080fd5b50610179610c68565b34801561041557600080fd5b5061041e610c80565b604080519115158252519081900360200190f35b34801561043e57600080fd5b506103c86004803603606081101561045557600080fd5b8135919081019060408101602082013564010000000081111561047757600080fd5b82018360208201111561048957600080fd5b803590602001918460208302840111640100000000831117156104ab57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156104fb57600080fd5b82018360208201111561050d57600080fd5b8035906020019184602083028401116401000000008311171561052f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c89945050505050565b34801561057957600080fd5b50610582610ebb565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156105be5781810151838201526020016105a6565b505050509050019250505060405180910390f35b3480156105de57600080fd5b506103c8600480360360208110156105f557600080fd5b50356001600160a01b0316610f16565b34801561061157600080fd5b506103c86110c1565b34801561062657600080fd5b506103c8611182565b34801561063b57600080fd5b50610179611248565b34801561065057600080fd5b50610179611257565b34801561066557600080fd5b5061066e611266565b60408051918252519081900360200190f35b6103c8600480360360a081101561069657600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156106d657600080fd5b8201836020820111156106e857600080fd5b8035906020019184600183028401116401000000008311171561070a57600080fd5b50909250905061126c565b34801561072157600080fd5b506103c86113a2565b34801561073657600080fd5b5061066e611414565b34801561074b57600080fd5b506103c86004803603602081101561076257600080fd5b50356001600160a01b031661141a565b7f0000000000000000000000002af75676692817d85121353f0d6e8e9ae6ad557681565b60006060600254600014156107f2576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b60035460ff161561084a576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b610852612d4c565b61085a611531565b6001600160a01b03908116825289811660208084019190915290891660408084019190915260608301899052608083018890528051601f870183900483028101830190915285815290869086908190840183828082843760009201919091525050505060a08201526108cb81611535565b9250925050965096945050505050565b60008181526006602052604081208190819081906060908190836109016004830161155c565b8254600184015460028501546003860154929b5090995097506001600160a01b0316955090508067ffffffffffffffff8111801561093e57600080fd5b50604051908082528060200260200182016040528015610968578160200160208202803683370190505b5093508067ffffffffffffffff8111801561098257600080fd5b506040519080825280602002602001820160405280156109ac578160200160208202803683370190505b50925060005b81811015610a29576000806109d0600486018463ffffffff61156016565b915091508160001c8784815181106109e457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508060001c868481518110610a1457fe5b602090810291909101015250506001016109b2565b50505091939550919395565b610a41848484846115f1565b7f000000000000000000000000557b933a7c2c45672b610f8954a3deb39a51a8ca6001600160a01b03166323b872dd610a78611531565b30610a9187670de0b6b3a764000063ffffffff61189816565b6040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b031681526020018281526020019350505050602060405180830381600087803b158015610af957600080fd5b505af1158015610b0d573d6000803e3d6000fd5b505050506040513d6020811015610b2357600080fd5b5051610b76576040805162461bcd60e51b815260206004820152601e60248201527f5245565653616c653a2052455656207472616e73666572206661696c65640000604482015290519081900360640190fd5b50505050565b610b84611531565b6000546001600160a01b03908116911614610be6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254610c3a576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b610c426118fa565b565b7f000000000000000000000000557b933a7c2c45672b610f8954a3deb39a51a8ca81565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b60035460ff1690565b610c91611531565b6000546001600160a01b03908116911614610cf3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b815181518114610d345760405162461bcd60e51b8152600401808060200182810382526024815260200180612ea96024913960400191505060405180910390fd5b60008481526006602052604090208054610d95576040805162461bcd60e51b815260206004820152601660248201527f53616c653a206e6f6e2d6578697374656e7420736b7500000000000000000000604482015290519081900360640190fd5b6004810182610dec576000610da98261155c565b905060005b81811015610de5576000610dc8848263ffffffff61156016565b509050610ddb848263ffffffff6119a116565b5050600101610dae565b5050610df7565b610df7818686611a7f565b857fcb3fe5489e0cd43d0f4a33d1e09a4a0463a03d0d38f56165530854e5540db1438686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e5f578181015183820152602001610e47565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610e9e578181015183820152602001610e86565b5050505090500194505050505060405180910390a2505050505050565b60606004600001805480602002602001604051908101604052809291908181526020018280548015610f0c57602002820191906000526020600020905b815481526020019060010190808311610ef8575b5050505050905090565b610f1e611531565b6000546001600160a01b03908116911614610f80576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610fc55760405162461bcd60e51b815260040180806020018281038252602e815260200180612ecd602e913960400191505060405180910390fd5b6001600160a01b03811630141561100d5760405162461bcd60e51b8152600401808060200182810382526031815260200180612e0e6031913960400191505060405180910390fd5b6001546001600160a01b038281169116141561105a5760405162461bcd60e51b8152600401808060200182810382526023815260200180612e656023913960400191505060405180910390fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03838116919091179182905560408051929091168252517fdd880d24a789958a6398c99c2e54ce31bc10a638cbc42f7dd34285479ae0f855916020908290030190a150565b6110c9611531565b6000546001600160a01b0390811691161461112b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b61118a611531565b6000546001600160a01b039081169116146111ec576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254611240576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b610c42611bf4565b6001546001600160a01b031681565b6000546001600160a01b031690565b60001981565b6002546112c0576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b60035460ff1615611318576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b611320612d4c565b611328611531565b6001600160a01b03908116825287811660208084019190915290871660408084019190915260608301879052608083018690528051601f850183900483028101830190915283815290849084908190840183828082843760009201919091525050505060a082015261139981611c82565b50505050505050565b6113aa611531565b6000546001600160a01b0390811691161461140c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610c3a611cb2565b60025490565b611422611531565b6000546001600160a01b03908116911614611484576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166114c95760405162461bcd60e51b8152600401808060200182810382526026815260200180612e3f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3390565b6000606061154283611d34565b61154b83611e37565b505060c081015160e0909101519091565b5490565b8154600090819083106115ba576040805162461bcd60e51b815260206004820152601c60248201527f456e756d4d61703a20696e646578206f7574206f6620626f756e647300000000604482015290519081900360640190fd5b60008460000184815481106115cb57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6115f9611531565b6000546001600160a01b0390811691161461165b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b826116ad576040805162461bcd60e51b815260206004820152601160248201527f53616c653a207a65726f20737570706c79000000000000000000000000000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000406116d8600461155c565b1061172a576040805162461bcd60e51b815260206004820152601360248201527f53616c653a20746f6f206d616e7920736b757300000000000000000000000000604482015290519081900360640190fd5b61173b60048563ffffffff611ed416565b61178c576040805162461bcd60e51b815260206004820152601960248201527f53616c653a20736b7520616c7265616479206372656174656400000000000000604482015290519081900360640190fd5b6001600160a01b038116156117fe576117ad816001600160a01b0316611f1e565b6117fe576040805162461bcd60e51b815260206004820181905260248201527f53616c653a207265636569766572206973206e6f74206120636f6e7472616374604482015290519081900360640190fd5b60008481526006602090815260409182902085815560018101869055600281018590556003810180546001600160a01b03861673ffffffffffffffffffffffffffffffffffffffff1990911681179091558351888152928301879052828401869052606083015291517f38bd4aabce684540cd61351b91f2f5facf9d6963934347e25aab93d87ae7ac149181900360800190a15050505050565b6000826118a7575060006118f4565b828202828482816118b457fe5b04146118f15760405162461bcd60e51b8152600401808060200182810382526021815260200180612e886021913960400191505060405180910390fd5b90505b92915050565b60035460ff16611951576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611984611531565b604080516001600160a01b039092168252519081900360200190a1565b60008181526001830160205260408120548015611a7557835460001980830191908101906000908790839081106119d457fe5b90600052602060002090600202019050808760000184815481106119f457fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611a3357fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506118f49350505050565b60009150506118f4565b60005b8251811015611b71576000838281518110611a9957fe5b6020026020010151905060006001600160a01b0316816001600160a01b03161415611b0b576040805162461bcd60e51b815260206004820152601860248201527f53616c653a207a65726f206164647265737320746f6b656e0000000000000000604482015290519081900360640190fd5b6000838381518110611b1957fe5b602002602001015190508060001415611b4b57611b45866001600160a01b03841663ffffffff6119a116565b50611b67565b611b65866001600160a01b0384168363ffffffff611f5a16565b505b5050600101611a82565b507f0000000000000000000000000000000000000000000000000000000000000020611b9c8461155c565b1115611bef576040805162461bcd60e51b815260206004820152601560248201527f53616c653a20746f6f206d616e7920746f6b656e730000000000000000000000604482015290519081900360640190fd5b505050565b60035460ff1615611c4c576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611984611531565b611c8b81611d34565b611c9481611e37565b611c9d81611ff4565b611ca681612224565b611caf8161234c565b50565b60025415611d07576040805162461bcd60e51b815260206004820152601260248201527f537461727461626c653a20737461727465640000000000000000000000000000604482015290519081900360640190fd5b426002557f27029695aa5f602a4ee81f4c32dfa86e562f200a17966496f3a7c3f2ec0f9417611984611531565b611d3d816127fb565b7f0000000000000000000000002af75676692817d85121353f0d6e8e9ae6ad55766001600160a01b03166370a08231611d74611531565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611dba57600080fd5b505afa158015611dce573d6000803e3d6000fd5b505050506040513d6020811015611de457600080fd5b5051611caf576040805162461bcd60e51b815260206004820152601d60248201527f5245565653616c653a206d7573742062652061204e4654206f776e6572000000604482015290519081900360640190fd5b606081015160009081526006602052604090208054611e9d576040805162461bcd60e51b815260206004820152601560248201527f53616c653a20756e737570706f7274656420534b550000000000000000000000604482015290519081900360640190fd5b600481016000611ead8483612a46565b9050611ec684608001518261189890919063ffffffff16565b60c090940193909352505050565b6000611ee08383612abc565b611f16575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556118f4565b5060006118f4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611f5257508115155b949350505050565b600082815260018401602052604081205480611fbf575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611fed565b82856000016001830381548110611fd257fe5b90600052602060002090600202016001018190555060009150505b9392505050565b60408101516001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415612117578060c00151341015612076576040805162461bcd60e51b815260206004820152601f60248201527f53616c653a20696e73756666696369656e74204554482070726f766964656400604482015290519081900360640190fd5b60015460c08201516040516001600160a01b039092169181156108fc0291906000818181858888f193505050501580156120b4573d6000803e3d6000fd5b5060006120ce8260c0015134612ad490919063ffffffff16565b905080156121115781516040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561210f573d6000803e3d6000fd5b505b50611caf565b80604001516001600160a01b03166323b872dd612132611531565b60015460c0850151604080517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03948516600482015293909216602484015260448301525160648083019260209291908290030181600087803b1580156121a757600080fd5b505af11580156121bb573d6000803e3d6000fd5b505050506040513d60208110156121d157600080fd5b5051611caf576040805162461bcd60e51b815260206004820152601a60248201527f53616c653a204552433230207061796d656e74206661696c6564000000000000604482015290519081900360640190fd5b61222d81612b16565b7f000000000000000000000000557b933a7c2c45672b610f8954a3deb39a51a8ca6001600160a01b031663a9059cbb8260200151612280670de0b6b3a7640000856080015161189890919063ffffffff16565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156122cf57600080fd5b505af11580156122e3573d6000803e3d6000fd5b505050506040513d60208110156122f957600080fd5b5051611caf576040805162461bcd60e51b815260206004820152601f60248201527f5245565653616c653a202052455656207472616e73666572206661696c656400604482015290519081900360640190fd5b806060015181604001516001600160a01b031682600001516001600160a01b03167fb8a1ba0f3cb29e281493deb1636241d01a302283b53fd6c824d772b3a79f647f846020015185608001518660a001518760c001518860e001518961010001518a610120015160405180886001600160a01b03166001600160a01b031681526020018781526020018060200186815260200180602001806020018060200185810385528a818151815260200191508051906020019080838360005b83811015612420578181015183820152602001612408565b50505050905090810190601f16801561244d5780820380516001836020036101000a031916815260200191505b508581038452885181528851602091820191808b01910280838360005b8381101561248257818101518382015260200161246a565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156124c15781810151838201526020016124a9565b50505050905001858103825286818151815260200191508051906020019060200280838360005b838110156125005781810151838201526020016124e8565b505050509050019b50505050505050505050505060405180910390a460608101516000908152600660205260409020600301546001600160a01b031680156127f7576361eceae860e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916816001600160a01b03166361eceae8846000015185602001518660400151876060015188608001518960a001518a60c001518b60e001518c61010001518d61012001516040518b63ffffffff1660e01b8152600401808b6001600160a01b03166001600160a01b031681526020018a6001600160a01b03166001600160a01b03168152602001896001600160a01b03166001600160a01b031681526020018881526020018781526020018060200186815260200180602001806020018060200185810385528a818151815260200191508051906020019080838360005b8381101561265e578181015183820152602001612646565b50505050905090810190601f16801561268b5780820380516001836020036101000a031916815260200191505b508581038452885181528851602091820191808b01910280838360005b838110156126c05781810151838201526020016126a8565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156126ff5781810151838201526020016126e7565b50505050905001858103825286818151815260200191508051906020019060200280838360005b8381101561273e578181015183820152602001612726565b505050509050019e50505050505050505050505050505060206040518083038186803b15801561276d57600080fd5b505afa158015612781573d6000803e3d6000fd5b505050506040513d602081101561279757600080fd5b50517fffffffff0000000000000000000000000000000000000000000000000000000016146127f75760405162461bcd60e51b8152600401808060200182810382526021815260200180612efb6021913960400191505060405180910390fd5b5050565b60208101516001600160a01b031661285a576040805162461bcd60e51b815260206004820152601c60248201527f53616c653a207a65726f206164647265737320726563697069656e7400000000604482015290519081900360640190fd5b60808101516128b0576040805162461bcd60e51b815260206004820152601c60248201527f53616c653a207a65726f207175616e7469747920707572636861736500000000604482015290519081900360640190fd5b6128b8612dbd565b6060808301516000908152600660209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201546001600160a01b031695810195909552815160048201805480860283018501855294820185815292956080880195929491938593909285929085015b828210156129745783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061292e565b50505050815250508152505090508060400151826080015111156129df576040805162461bcd60e51b815260206004820152601860248201527f53616c653a2061626f7665206d6178207175616e746974790000000000000000604482015290519081900360640190fd5b8051600019146127f7578160800151816020015110156127f7576040805162461bcd60e51b815260206004820152601960248201527f53616c653a20696e73756666696369656e7420737570706c7900000000000000604482015290519081900360640190fd5b6040820151600090612a689083906001600160a01b031663ffffffff612c2516565b9050806118f4576040805162461bcd60e51b815260206004820152601f60248201527f53616c653a20756e737570706f72746564207061796d656e7420746f6b656e00604482015290519081900360640190fd5b60009081526001919091016020526040902054151590565b60006118f183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612cb5565b612b1e612dbd565b6060808301516000908152600660209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201546001600160a01b031695810195909552815160048201805480860283018501855294820185815292956080880195929491938593909285929085015b82821015612bda57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190612b94565b505050915250509052508051909150600019146127f75760808201516020820151612c0a9163ffffffff612ad416565b60608301516000908152600660205260409020600101555050565b600081815260018301602052604081205480612c88576040805162461bcd60e51b815260206004820152601860248201527f456e756d4d61703a206e6f6e6578697374656e74206b65790000000000000000604482015290519081900360640190fd5b836000016001820381548110612c9a57fe5b90600052602060002090600202016001015491505092915050565b60008184841115612d445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612d09578181015183820152602001612cf1565b50505050905090810190601f168015612d365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60405180610140016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600080191681526020016000815260200160608152602001600081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160006001600160a01b03168152602001612df5612dfa565b905290565b604051806020016040528060608152509056fe546865207061796f75742077616c6c6574206d757374206e6f742062652074686520636f6e747261637420697473656c664f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546865207061796f75742077616c6c6574206d75737420626520646966666572656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7753616c653a20746f6b656e732f707269636573206c656e67746873206d69736d61746368546865207061796f75742077616c6c6574206d757374206e6f7420626520746865207a65726f206164647265737353616c653a2077726f6e672072656365697665722072657475726e2076616c7565a26469706673582212200a0f2a2ecab2f6884a7f6ad6b9bfc2c7944fb1421b9f55e1d79b2889345cd65a64736f6c63430006080033

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

000000000000000000000000557b933a7c2c45672b610f8954a3deb39a51a8ca0000000000000000000000002af75676692817d85121353f0d6e8e9ae6ad5576000000000000000000000000324736aaac94eda00bec66fbaf3adffbcc10584f

-----Decoded View---------------
Arg [0] : revv_ (address): 0x557B933a7C2c45672B610F8954A3deB39a51A8Ca
Arg [1] : deltaTimeInventory_ (address): 0x2aF75676692817d85121353f0D6e8E9aE6AD5576
Arg [2] : payoutWallet_ (address): 0x324736aaAc94EDA00bec66Fbaf3adfFBCc10584f

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000557b933a7c2c45672b610f8954a3deb39a51a8ca
Arg [1] : 0000000000000000000000002af75676692817d85121353f0d6e8e9ae6ad5576
Arg [2] : 000000000000000000000000324736aaac94eda00bec66fbaf3adffbcc10584f


Deployed Bytecode Sourcemap

77382:2829:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;77461:43:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;77461:43:0;;;:::i;:::-;;;;-1:-1:-1;;;;;77461:43:0;;;;;;;;;;;;;;65817:609;;5:9:-1;2:2;;;27:1;24;17:12;2:2;65817:609:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;65817:609:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;65817:609:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;65817:609:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;65817:609:0;;-1:-1:-1;65817:609:0;-1:-1:-1;65817:609:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;65817:609:0;;;;;;;;;;;;;;;;;;67204:994;;5:9:-1;2:2;;;27:1;24;17:12;2:2;67204:994:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;67204:994:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;67204:994:0;-1:-1:-1;;;;;67204:994:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;67204:994:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;67204:994:0;;;;;;;;;;;;;;;;;;;;;;;78925:523;;5:9:-1;2:2;;;27:1;24;17:12;2:2;78925:523:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;78925:523:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78925:523:0;;:::i;:::-;;59430:85;;5:9:-1;2:2;;;27:1;24;17:12;2:2;59430:85:0;;;:::i;77426:28::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;77426:28:0;;;:::i;56971:98::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56971:98:0;;;:::i;28484:78::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;28484:78:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;61950:946;;5:9:-1;2:2;;;27:1;24;17:12;2:2;61950:946:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;61950:946:0;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;61950:946:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;61950:946:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;61950:946:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;61950:946:0;;;;;;;;-1:-1:-1;61950:946:0;;-1:-1:-1;;27:11;11:28;;8:2;;;52:1;49;42:12;8:2;61950:946:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;61950:946:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;61950:946:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;61950:946:0;;-1:-1:-1;61950:946:0;;-1:-1:-1;;;;;61950:946:0:i;68335:112::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;68335:112:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;68335:112:0;;;;;;;;;;;;;;;;;25289:454;;5:9:-1;2:2;;;27:1;24;17:12;2:2;25289:454:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;25289:454:0;-1:-1:-1;;;;;25289:454:0;;:::i;24281:148::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;24281:148:0;;;:::i;59068:81::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;59068:81:0;;;:::i;25144:35::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;25144:35:0;;;:::i;23639:79::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;23639:79:0;;;:::i;57076:69::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;57076:69:0;;;:::i;:::-;;;;;;;;;;;;;;;;63841:538;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;63841:538:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;63841:538:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;63841:538:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;63841:538:0;;-1:-1:-1;63841:538:0;-1:-1:-1;63841:538:0;:::i;58696:90::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;58696:90:0;;;:::i;27049:87::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;27049:87:0;;;:::i;24584:244::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;24584:244:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;24584:244:0;-1:-1:-1;;;;;24584:244:0;;:::i;77461:43::-;;;:::o;65817:609::-;66059:18;66079:26;26738:10;;26752:1;26738:15;;26730:50;;;;;-1:-1:-1;;;26730:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28802:7:::1;::::0;::::1;;28801:8;28793:37;;;::::0;;-1:-1:-1;;;28793:37:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;66118:28:::2;;:::i;:::-;66178:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;66157:33:0;;::::2;::::0;;66201:30;;::::2;:18;::::0;;::::2;:30:::0;;;;66242:22;;::::2;:14;::::0;;::::2;:22:::0;;;;66275:12:::2;::::0;::::2;:18:::0;;;66304:17:::2;::::0;::::2;:28:::0;;;66343;;::::2;::::0;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;;;66363:8;;;;;;66343:28;::::2;66363:8:::0;;;;66343:28;1:33:-1::2;99:1;81:16:::0;::::2;74:27:::0;;;;-1:-1;;;;66343:17:0::2;::::0;::::2;:28:::0;66391:27:::2;66343:8:::0;66391:17:::2;:27::i;:::-;66384:34;;;;;65817:609:::0;;;;;;;;;:::o;67204:994::-;67319:19;67595:14;;;:9;:14;;;;;67319:19;;;;;;67480:23;;;;67319:19;67637:23;:14;;;:21;:23::i;:::-;67687:19;;67735:23;;;;67794:30;;;;67859:29;;;;67687:19;;-1:-1:-1;67735:23:0;;-1:-1:-1;67794:30:0;-1:-1:-1;;;;;;67859:29:0;;-1:-1:-1;67620:40:0;-1:-1:-1;67620:40:0;67910:21;;;2:2:-1;;;;27:1;24;17:12;2:2;67910:21:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;144:17;;-1:-1;67910:21:0;;67901:30;;67965:6;67951:21;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;67951:21:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;144:17;;-1:-1;67951:21:0;-1:-1:-1;67942:30:0;-1:-1:-1;67988:9:0;67983:208;68007:6;68003:1;:10;67983:208;;;68036:13;;68068:20;:14;;;68086:1;68068:20;:17;:20;:::i;:::-;68035:53;;;;68131:5;68123:14;;68103:6;68110:1;68103:9;;;;;;;;;;;;;:35;-1:-1:-1;;;;;68103:35:0;;;-1:-1:-1;;;;;68103:35:0;;;;;68173:5;68165:14;;68153:6;68160:1;68153:9;;;;;;;;;;;;;;;;;:26;-1:-1:-1;;68015:3:0;;67983:208;;;;67204:994;;;;;;;;;:::o;78925:523::-;79119:80;79135:3;79140:11;79153:22;79177:21;79119:15;:80::i;:::-;79232:4;-1:-1:-1;;;;;79232:17:0;;79268:12;:10;:12::i;:::-;79307:4;79331:36;:11;79347:19;79331:36;:15;:36;:::i;:::-;79232:150;;;;;;;;;;;;;-1:-1:-1;;;;;79232:150:0;-1:-1:-1;;;;;79232:150:0;;;;;;-1:-1:-1;;;;;79232:150:0;-1:-1:-1;;;;;79232:150:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;79232:150:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79232:150:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;79232:150:0;79210:230;;;;;-1:-1:-1;;;79210:230:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;78925:523;;;;:::o;59430:85::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26738:10:::1;::::0;26730:50:::1;;;::::0;;-1:-1:-1;;;26730:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;59497:10:::2;:8;:10::i;:::-;59430:85::o:0;77426:28::-;;;:::o;56971:98::-;57024:44;56971:98;:::o;28484:78::-;28547:7;;;;28484:78;:::o;61950:946::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62126:13;;62168;;62158:23;::::1;62150:72;;;;-1:-1:-1::0;;;62150:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62233:23;62259:14:::0;;;:9:::1;:14;::::0;;;;62292:19;;62284:59:::1;;;::::0;;-1:-1:-1;;;62284:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;62390:14;::::0;::::1;62419:11:::0;62415:419:::1;;62447:21;62471:20;:11;:18;:20::i;:::-;62447:44:::0;-1:-1:-1;62511:9:0::1;62506:240;62530:13;62526:1;:17;62506:240;;;62650:13;62669:17;:11:::0;62650:13;62669:17:::1;:14;:17;:::i;:::-;-1:-1:-1::0;62649:37:0;-1:-1:-1;62705:25:0::1;:11:::0;62649:37;62705:25:::1;:18;:25;:::i;:::-;-1:-1:-1::0;;62545:3:0::1;;62506:240;;;;62415:419;;;;62778:44;62794:11;62807:6;62815;62778:15;:44::i;:::-;62868:3;62851:37;62873:6;62881;62851:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11:::0;;::::1;84:18:::0;71:11;;::::1;64:39:::0;52:2:::1;45:10;8:100;;;12:14;62851:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11:::0;;::::1;84:18:::0;71:11;;::::1;64:39:::0;52:2:::1;45:10;8:100;;;12:14;62851:37:0;;;;;;;;;;;;;;;;;;;23921:1;;;61950:946:::0;;;:::o;68335:112::-;68386:21;68427:5;:12;;68420:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68335:112;:::o;25289:454::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25373:27:0;::::1;25365:86;;;;-1:-1:-1::0;;;25365:86:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;25470:30:0;::::1;25495:4;25470:30;;25462:92;;;;-1:-1:-1::0;;;25462:92:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25590:12;::::0;-1:-1:-1;;;;;25573:29:0;;::::1;25590:12:::0;::::1;25573:29;;25565:77;;;;-1:-1:-1::0;;;25565:77:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25653:12;:37:::0;;-1:-1:-1;;25653:37:0::1;-1:-1:-1::0;;;;;25653:37:0;;::::1;::::0;;;::::1;::::0;;;;25706:29:::1;::::0;;25722:12;;;::::1;25706:29:::0;;;::::1;::::0;::::1;::::0;;;;;;::::1;25289:454:::0;:::o;24281:148::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24388:1:::1;24372:6:::0;;24351:40:::1;::::0;-1:-1:-1;;;;;24372:6:0;;::::1;::::0;24351:40:::1;::::0;24388:1;;24351:40:::1;24419:1;24402:19:::0;;-1:-1:-1;;24402:19:0::1;::::0;;24281:148::o;59068:81::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26738:10:::1;::::0;26730:50:::1;;;::::0;;-1:-1:-1;;;26730:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;59133:8:::2;:6;:8::i;25144:35::-:0;;;-1:-1:-1;;;;;25144:35:0;;:::o;23639:79::-;23677:7;23704:6;-1:-1:-1;;;;;23704:6:0;23639:79;:::o;57076:69::-;-1:-1:-1;;57076:69:0;:::o;63841:538::-;26738:10;;26730:50;;;;;-1:-1:-1;;;26730:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28802:7:::1;::::0;::::1;;28801:8;28793:37;;;::::0;;-1:-1:-1;;;28793:37:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;64083:28:::2;;:::i;:::-;64143:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;64122:33:0;;::::2;::::0;;64166:30;;::::2;:18;::::0;;::::2;:30:::0;;;;64207:22;;::::2;:14;::::0;;::::2;:22:::0;;;;64240:12:::2;::::0;::::2;:18:::0;;;64269:17:::2;::::0;::::2;:28:::0;;;64308;;::::2;::::0;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;;;64328:8;;;;;;64308:28;::::2;64328:8:::0;;;;64308:28;1:33:-1::2;99:1;81:16:::0;::::2;74:27:::0;;;;-1:-1;;;;64308:17:0::2;::::0;::::2;:28:::0;64349:22:::2;64308:8:::0;64349:12:::2;:22::i;:::-;28841:1;63841:538:::0;;;;;;:::o;58696:90::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58749:8:::1;:6;:8::i;27049:87::-:0;27118:10;;27049:87;:::o;24584:244::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24673:22:0;::::1;24665:73;;;;-1:-1:-1::0;;;24665:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24775:6;::::0;;24754:38:::1;::::0;-1:-1:-1;;;;;24754:38:0;;::::1;::::0;24775:6;::::1;::::0;24754:38:::1;::::0;::::1;24803:6;:17:::0;;-1:-1:-1;;24803:17:0::1;-1:-1:-1::0;;;;;24803:17:0;;;::::1;::::0;;;::::1;::::0;;24584:244::o;22187:106::-;22275:10;22187:106;:::o;52976:338::-;53100:18;53120:28;53166:21;53178:8;53166:11;:21::i;:::-;53198:18;53207:8;53198;:18::i;:::-;-1:-1:-1;;53242:19:0;;;;53286:20;;;;;53242:19;;52976:338::o;14700:109::-;14783:18;;14700:109::o;15164:269::-;15268:18;;15231:7;;;;15268:26;-1:-1:-1;15260:67:0;;;;;-1:-1:-1;;;15260:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15340:22;15365:3;:11;;15377:5;15365:18;;;;;;;;;;;;;;;;;;15340:43;;15402:5;:9;;;15413:5;:11;;;15394:31;;;;;15164:269;;;;;:::o;60278:907::-;23861:12;:10;:12::i;:::-;23851:6;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60481:16;60473:46:::1;;;::::0;;-1:-1:-1;;;60473:46:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;60555:13;60538:14;:5;:12;:14::i;:::-;:30;60530:62;;;::::0;;-1:-1:-1;;;60530:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;60611:14;:5;60621:3:::0;60611:14:::1;:9;:14;:::i;:::-;60603:52;;;::::0;;-1:-1:-1;;;60603:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;60670:35:0;::::1;::::0;60666:147:::1;;60730:34;:21;-1:-1:-1::0;;;;;60730:32:0::1;;:34::i;:::-;60722:79;;;::::0;;-1:-1:-1;;;60722:79:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;60823:23;60849:14:::0;;;:9:::1;:14;::::0;;;;;;;;60874:33;;;60918:23:::1;::::0;::::1;:37:::0;;;60966:30:::1;::::0;::::1;:55:::0;;;61032:29:::1;::::0;::::1;:53:::0;;-1:-1:-1;;;;;61032:53:0;::::1;-1:-1:-1::0;;61032:53:0;;::::1;::::0;::::1;::::0;;;61101:76;;;;;;;::::1;::::0;;;;;;;;;;;;;;;::::1;::::0;;;;;;;::::1;23921:1;60278:907:::0;;;;:::o;38191:471::-;38249:7;38494:6;38490:47;;-1:-1:-1;38524:1:0;38517:8;;38490:47;38561:5;;;38565:1;38561;:5;:1;38585:5;;;;;:10;38577:56;;;;-1:-1:-1;;;38577:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38653:1;-1:-1:-1;38191:471:0;;;;;:::o;29533:120::-;29078:7;;;;29070:40;;;;;-1:-1:-1;;;29070:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29592:7:::1;:15:::0;;-1:-1:-1;;29592:15:0::1;::::0;;29623:22:::1;29632:12;:10;:12::i;:::-;29623:22;::::0;;-1:-1:-1;;;;;29623:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;29533:120::o:0;12857:1540::-;12921:4;13056:16;;;:11;;;:16;;;;;;13089:13;;13085:1305;;13520:18;;-1:-1:-1;;13473:12:0;;;;13520:22;;;;13449:21;;13520:3;;:22;;13816;;;;;;;;;;;;;;;;13787:51;;13962:9;13933:3;:11;;13945:13;13933:26;;;;;;;;;;;;;;;;:38;;:26;;;;;:38;;;;;;;;;;;;;;;14051:13;;14039:26;;:11;;;:26;;;;;14068:17;;;14039:46;;14194:17;;14039:3;;14194:17;;;;;;;;;;;;;;-1:-1:-1;;14194:17:0;;;;;;;;;;;;;;;;;;;;;14289:16;;;:11;;;:16;;;;;;14282:23;;;;14194:17;-1:-1:-1;14322:11:0;;-1:-1:-1;;;;14322:11:0;13085:1305;14373:5;14366:12;;;;;68557:679;68732:9;68727:412;68751:6;:13;68747:1;:17;68727:412;;;68786:13;68802:6;68809:1;68802:9;;;;;;;;;;;;;;68786:25;;68851:1;-1:-1:-1;;;;;68834:19:0;:5;-1:-1:-1;;;;;68834:19:0;;;68826:56;;;;;-1:-1:-1;;;68826:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;68897:13;68913:6;68920:1;68913:9;;;;;;;;;;;;;;68897:25;;68941:5;68950:1;68941:10;68937:191;;;68972:43;:11;-1:-1:-1;;;;;68999:14:0;;68972:43;:18;:43;:::i;:::-;;68937:191;;;69056:56;:11;-1:-1:-1;;;;;69080:14:0;;69105:5;69056:56;:15;:56;:::i;:::-;;68937:191;-1:-1:-1;;68766:3:0;;68727:412;;;;69181:21;69157:20;:11;:18;:20::i;:::-;:45;;69149:79;;;;;-1:-1:-1;;;69149:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;68557:679;;;:::o;29274:118::-;28802:7;;;;28801:8;28793:37;;;;;-1:-1:-1;;;28793:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29334:7:::1;:14:::0;;-1:-1:-1;;29334:14:0::1;29344:4;29334:14;::::0;;29364:20:::1;29371:12;:10;:12::i;53422:231::-:0;53502:21;53514:8;53502:11;:21::i;:::-;53534:18;53543:8;53534;:18::i;:::-;53563;53572:8;53563;:18::i;:::-;53592:19;53602:8;53592:9;:19::i;:::-;53622:23;53636:8;53622:13;:23::i;:::-;53422:231;:::o;27277:122::-;26531:10;;:15;26523:46;;;;;-1:-1:-1;;;26523:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27351:3:::1;27338:10;:16:::0;27370:21:::1;27378:12;:10;:12::i;79700:220::-:0;79785:27;79803:8;79785:17;:27::i;:::-;79831:18;-1:-1:-1;;;;;79831:28:0;;79860:12;:10;:12::i;:::-;79831:42;;;;;;;;;;;;;-1:-1:-1;;;;;79831:42:0;-1:-1:-1;;;;;79831:42:0;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;79831:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79831:42:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;79831:42:0;79823:89;;;;;-1:-1:-1;;;79823:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;75200:394;75326:12;;;;75290:23;75316;;;:9;:23;;;;;75358:19;;75350:58;;;;;-1:-1:-1;;;75350:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;75448:14;;;75419:26;75493:28;75504:8;75448:14;75493:10;:28::i;:::-;75473:48;;75554:32;75568:8;:17;;;75554:9;:13;;:32;;;;:::i;:::-;75532:19;;;;:54;;;;-1:-1:-1;;;75200:394:0:o;18480:410::-;18543:4;18565:20;18574:3;18579:5;18565:8;:20::i;:::-;18560:323;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;18602:10:0;:22;;;;;;;;;;;;;18783:17;;18762:18;;;:11;;;:18;;;;;;:38;;;;18815:11;;18560:323;-1:-1:-1;18866:5:0;18859:12;;30430:619;30490:4;30958:20;;30801:66;30998:23;;;;;;:42;;-1:-1:-1;31025:15:0;;;30998:42;30990:51;30430:619;-1:-1:-1;;;;30430:619:0:o;11998:684::-;12074:4;12209:16;;;:11;;;:16;;;;;;12242:13;12238:437;;-1:-1:-1;;12326:36:0;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;12309:11:0;:54;;;;;;;;;;;;;;;;;;;;;;;;12520:18;;12501:16;;;:11;;;:16;;;;;;;:37;12553:11;;12238:437;12631:5;12597:3;:11;;12620:1;12609:8;:12;12597:25;;;;;;;;;;;;;;;;;;:31;;:39;;;;12658:5;12651:12;;;11998:684;;;;;;:::o;76066:663::-;76155:14;;;;-1:-1:-1;;;;;76155:27:0;57024:44;76155:27;76151:571;;;76220:8;:19;;;76207:9;:32;;76199:76;;;;;-1:-1:-1;;;76199:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;76292:12;;76314:19;;;;76292:42;;-1:-1:-1;;;;;76292:12:0;;;;:42;;;;;76314:19;76292:12;:42;:12;:42;76314:19;76292:12;:42;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76292:42:0;76351:14;76368:34;76382:8;:19;;;76368:9;:13;;:34;;;;:::i;:::-;76351:51;-1:-1:-1;76423:11:0;;76419:87;;76455:18;;:35;;-1:-1:-1;;;;;76455:27:0;;;;:35;;;;;76483:6;;76455:18;:35;:18;:35;76483:6;76455:27;:35;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76455:35:0;76419:87;76151:571;;;;76571:8;:14;;;-1:-1:-1;;;;;76564:35:0;;76600:12;:10;:12::i;:::-;76614;;76628:19;;;;76564:84;;;;;;;;;;;-1:-1:-1;;;;;76564:84:0;;;;;;;76614:12;;;;76564:84;;;;;;;;;;;;;;;;;;;;;;;76614:12;76564:84;;;;2:2:-1;;;;27:1;24;17:12;2:2;76564:84:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76564:84:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;76564:84:0;76538:172;;;;;-1:-1:-1;;;76538:172:0;;;;;;;;;;;;;;;;;;;;;;;;;;;79928:280;80006:25;80022:8;80006:15;:25::i;:::-;80064:4;-1:-1:-1;;;;;80064:13:0;;80078:8;:18;;;80098:42;80120:19;80098:8;:17;;;:21;;:42;;;;:::i;:::-;80064:77;;;;;;;;;;;;;-1:-1:-1;;;;;80064:77:0;-1:-1:-1;;;;;80064:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;80064:77:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80064:77:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;80064:77:0;80042:158;;;;;-1:-1:-1;;;80042:158:0;;;;;;;;;;;;;;;;;;;;;;;;;;;72259:1338;72472:8;:12;;;72443:8;:14;;;-1:-1:-1;;;;;72354:345:0;72377:8;:18;;;-1:-1:-1;;;;;72354:345:0;;72410:8;:18;;;72499:8;:17;;;72531:8;:17;;;72563:8;:19;;;72597:8;:20;;;72632:8;:20;;;72667:8;:21;;;72354:345;;;;-1:-1:-1;;;;;72354:345:0;-1:-1:-1;;;;;72354:345:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72354:345:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72354:345:0;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72354:345:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72354:345:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72354:345:0;;;;;;;;;;;;;;;;;;;;;;;;;;72754:12;;;;72712:29;72744:23;;;:9;:23;;;;;:45;;;-1:-1:-1;;;;;72744:45:0;72804:35;;72800:790;;73395:82;;;72882:595;;;72913:21;-1:-1:-1;;;;;72882:84:0;;72989:8;:18;;;73030:8;:18;;;73071:8;:14;;;73108:8;:12;;;73143:8;:17;;;73183:8;:17;;;73223:8;:19;;;73265:8;:20;;;73308:8;:20;;;73351:8;:21;;;72882:509;;;;;;;;;;;;;-1:-1:-1;;;;;72882:509:0;-1:-1:-1;;;;;72882:509:0;;;;;;-1:-1:-1;;;;;72882:509:0;-1:-1:-1;;;;;72882:509:0;;;;;;-1:-1:-1;;;;;72882:509:0;-1:-1:-1;;;;;72882:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72882:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72882:509:0;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72882:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72882:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72882:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72882:509:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72882:509:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;72882:509:0;:595;;;72856:722;;;;-1:-1:-1;;;72856:722:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72259:1338;;:::o;69984:570::-;70085:18;;;;-1:-1:-1;;;;;70085:32:0;70077:73;;;;;-1:-1:-1;;;70077:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70169:17;;;;70161:63;;;;;-1:-1:-1;;;70161:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70235:22;;:::i;:::-;70270:12;;;;;70260:23;;;;:9;:23;;;;;;;;70235:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70235:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70260:23;;70235:48;;;;;;;;;;;;;;70260:23;70235:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70323:7;:30;;;70302:8;:17;;;:51;;70294:88;;;;;-1:-1:-1;;;70294:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70397:19;;-1:-1:-1;;70397:39:0;70393:154;;70488:8;:17;;;70461:7;:23;;;:44;;70453:82;;;;;-1:-1:-1;;;70453:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;76837:322;77064:14;;;;76982:17;;77037:44;;:6;;-1:-1:-1;;;;;77056:23:0;77037:44;:10;:44;:::i;:::-;77029:53;-1:-1:-1;77101:14:0;77093:58;;;;;-1:-1:-1;;;77093:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;20688:128;20761:4;20785:18;;;:11;;;;;:18;;;;;;:23;;;20688:128::o;37301:136::-;37359:7;37386:43;37390:1;37393;37386:43;;;;;;;;;;;;;;;;;:3;:43::i;71203:312::-;71289:22;;:::i;:::-;71324:12;;;;;71314:23;;;;:9;:23;;;;;;;;71289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;71289:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71314:23;;71289:48;;;;;;;;;;;;;;71314:23;71289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;71289:48:0;;-1:-1:-1;;71289:48:0;;-1:-1:-1;71352:19:0;;71289:48;;-1:-1:-1;;;71352:39:0;71348:160;;71478:17;;;;71450:23;;;;:46;;;:27;:46;:::i;:::-;71418:12;;;;71408:23;;;;:9;:23;;;;;:39;;:88;71203:312;;:::o;15594:302::-;15660:7;15699:16;;;:11;;;:16;;;;;;15734:13;15726:50;;;;;-1:-1:-1;;;15726:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15830:3;:11;;15853:1;15842:8;:12;15830:25;;;;;;;;;;;;;;;;;;:31;;;15823:38;;;15594:302;;;;:::o;37740:192::-;37826:7;37862:12;37854:6;;;;37846:29;;;;-1:-1:-1;;;37846:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;37846:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;37898:5:0;;;37740:192::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://0a0f2a2ecab2f6884a7f6ad6b9bfc2c7944fb1421b9f55e1d79b2889345cd65a

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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