ETH Price: $3,045.29 (+2.18%)
Gas: 1 Gwei

Token

LINKSMAS 2020 (LM20)
 

Overview

Max Total Supply

206 LM20

Holders

104

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 LM20
0xc3e24494c2da66b5b6287d46d2a9b0b02b868b3b
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Raffle

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-15
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

// File: @chainlink/contracts/src/v0.6/interfaces/AggregatorInterface.sol

interface AggregatorInterface {
  function latestAnswer() external view returns (int256);
  function latestTimestamp() external view returns (uint256);
  function latestRound() external view returns (uint256);
  function getAnswer(uint256 roundId) external view returns (int256);
  function getTimestamp(uint256 roundId) external view returns (uint256);

  event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);
  event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);
}

// File: @openzeppelin/contracts/GSN/Context.sol

/*
 * @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/introspection/IERC165.sol

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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)
    external returns (bytes4);
}

// File: @openzeppelin/contracts/introspection/ERC165.sol

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

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

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

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

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

// File: @openzeppelin/contracts/math/SafeMath.sol

/**
 * @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: @openzeppelin/contracts/utils/Address.sol

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // 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/utils/EnumerableSet.sol

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

// File: @openzeppelin/contracts/utils/EnumerableMap.sol

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

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

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

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

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

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

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

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

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

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

            MapEntry storage lastEntry = map._entries[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

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

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

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Strings.sol

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol

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

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

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

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

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Base URI
    string private _baseURI;

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

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ownerOf(tokenId);

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

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

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

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

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

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: @chainlink/contracts/src/v0.6/interfaces/LinkTokenInterface.sol

interface LinkTokenInterface {
  function allowance(address owner, address spender) external view returns (uint256 remaining);
  function approve(address spender, uint256 value) external returns (bool success);
  function balanceOf(address owner) external view returns (uint256 balance);
  function decimals() external view returns (uint8 decimalPlaces);
  function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);
  function increaseApproval(address spender, uint256 subtractedValue) external;
  function name() external view returns (string memory tokenName);
  function symbol() external view returns (string memory tokenSymbol);
  function totalSupply() external view returns (uint256 totalTokensIssued);
  function transfer(address to, uint256 value) external returns (bool success);
  function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);
  function transferFrom(address from, address to, uint256 value) external returns (bool success);
}

// File: @chainlink/contracts/src/v0.6/VRFRequestIDBase.sol

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(bytes32 _keyHash, uint256 _userSeed,
    address _requester, uint256 _nonce)
    internal pure returns (uint256)
  {
    return  uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

// File: contracts/lib/VRFConsumerBase.sol

// Vendored from:
// https://github.com/smartcontractkit/chainlink/blob/develop/evm-contracts/src/v0.6/VRFConsumerBase.sol
// Resolves conflicts with SafeMath

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerInterface, and can
 * @dev initialize VRFConsumerInterface's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness()
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls fulfillRandomness().
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  using SafeMath for uint256;

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it.
   *
   * @dev The VRFCoordinator expects a calling contract to have a method with
   * @dev this signature, and will trigger it once it has verified the proof
   * @dev associated with the randomness (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(bytes32 requestId, uint256 randomness)
    internal virtual;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev See "SECURITY CONSIDERATIONS" above for more information on _seed.
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   * @param _seed seed mixed into the input of the VRF
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to *
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(bytes32 _keyHash, uint256 _fee, uint256 _seed)
    internal returns (bytes32 requestId)
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, _seed));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, _seed, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input
    // seed, which would result in a predictable/duplicate output.
    nonces[_keyHash] = nonces[_keyHash].add(1);
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) public nonces;
  constructor(address _vrfCoordinator, address _link) public {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

// File: contracts/Raffle.sol

/**
 * @title Raffle
 * @notice This contract mints an NFT as a raffle ticket for each address that stakes to it. Each day, a winner is selected from the previous day, which utilizes Chainlink's VRF to select the winning token ID. Winners collect YFL as a prize and optionally a sponsor token payout as well.
 * @notice Disclaimer: !!! This is unaudited code !!!
 * @dev No ownership requirements of this contract. The project running the raffle is responsible for ensuring the contract is funded and the final getRandomNumber() is called. Once the contract is initialized, funds cannot be pulled out except by participants.
 * @dev Deployment/usage process:
 * - Deploy contract with documented parameters set
 * - Fund the contract with YFL, LINK, and any sponsor-specific tokens
 * - Call init(address[],address[],address[],uint256[]) with the addresses of the LP tokens, the vault addresses, the addresses to be used for any sponsor payouts for that day, and the amount of sponsor payouts
 * - At this point, the contract is simply waiting for the start time to pass
 * - Users can call enter() to enter the raffle and receive 1 NFT
 * - Users can enter as many times as the entry cap
 * - The first to enter on the next day creates the randomness request for the previous day
 * - When random numbers are received, winners are announced via an event
 * - Winning tokenIDs can also be seen by calling winners() or querying details(uint256)
 * - When the day has ended, winners can call claim() to collect rewards
 * - The process of entering and getting a random number repeats for as many days of the raffle
 * - After the last day, someone must call getRandomNumber() one final time to select the last day's winner
 */
contract Raffle is VRFConsumerBase, ERC721 {
  using SafeERC20 for IERC20;
  using SafeMath for uint256;

  uint256 public immutable entryCap;
  uint256 public immutable prizeAmount;
  bytes32 public immutable keyHash;
  uint256 public immutable fee;
  address public immutable vrfCoordinator;
  AggregatorInterface public immutable linkUsd;
  IERC20 public immutable YFL;
  uint256 public immutable startTime;
  uint256 public immutable activeDays;

  bool public initialized;
  uint256 internal _counter;
  uint256[] internal _winners;

  struct Details {
    bool claimed;
    bool won;
    uint256 day;
  }

  struct Randomness {
    bytes32 requestId;
    bool answered;
  }

  struct Day {
    address pair;
    address vault;
    address payoutToken;
    uint256 payoutAmount;
    uint256 lastTokenId;
  }

  mapping(uint256 => Details) public details;
  mapping(uint256 => uint256) internal _lastTokenInEpoch;
  mapping(uint256 => Randomness) internal _randomnessRequest;
  mapping(uint256 => Day) internal _day;

  event Winner(address indexed _selected, uint256 indexed _tokenId);
  event GetRandom(bytes32 _requestId);

  /**
   * @notice Deploys the contract, setting many immutable variables
   * @param _name The name of the Raffle
   * @param _symbol The symbol of the NFT
   * @param _baseURI The base URI of the NFT
   * @param _keyHash The keyHash or SAID of the VRF job
   * @param _fee The fee for each VRF request
   * @param _vrfCoordinator The address of the VRFCoordinator
   * @param _link The address of the LINK token
   * @param _linkUsd The address of the LINK/USD feed
   * @param _entryCap The maximum number of times an address can stake (0 for no cap)
   * @param _YFL The winning payout token address
   * @param _prizeAmount The amount to pay each winner
   * @param _startTime The timestamp of when the raffle should start
   * @param _days The number of days the raffle will last
   */
  constructor(
    string memory _name,
    string memory _symbol,
    string memory _baseURI,
    bytes32 _keyHash,
    uint256 _fee,
    address _vrfCoordinator,
    address _link,
    address _linkUsd,
    uint256 _entryCap,
    address _YFL,
    uint256 _prizeAmount,
    uint256 _startTime,
    uint256 _days
  )
    ERC721(_name, _symbol)
    VRFConsumerBase(_vrfCoordinator, _link)
    public
  {
    require(_startTime > block.timestamp, "!_startTime");
    _setBaseURI(_baseURI);
    keyHash = _keyHash;
    fee = _fee;
    vrfCoordinator = _vrfCoordinator;
    linkUsd = AggregatorInterface(_linkUsd);
    entryCap = _entryCap;
    YFL = IERC20(_YFL);
    prizeAmount = _prizeAmount;
    startTime = _startTime;
    activeDays = _days;
  }

  /**
   * @notice Funds the contract with the payout token and LINK token and sets the staking tokens
   * @dev If not already funded, this contract must be approved for spending first
   * @dev Cannot be called twice but tokens can be manually sent to the contract
   * in case something goes wrong. However, these tokens will be unrecoverable.
   * @param _lpTokens The addresses of the staking tokens
   * @param _vaults The addresses of the rewards vaults
   * @param _payoutTokens The addresses of the payout tokens (0 address for none)
   * @param _payoutAmounts The amount of payout for the payout tokens
   */
  function init(
    address[] memory _lpTokens,
    address[] memory _vaults,
    address[] memory _payoutTokens,
    uint256[] memory _payoutAmounts
  )
    external
  {
    require(!initialized, "initialized");
    require(_lpTokens.length == _payoutTokens.length
        && _payoutTokens.length == _payoutAmounts.length
        && _lpTokens.length == _vaults.length, "!length");
    require(_lpTokens.length == activeDays, "!_lpTokens");
    // ensure contract is funded with YFL
    require(YFL.balanceOf(address(this)) >= prizeAmount.mul(activeDays), "!YFL");
    // ensure the contract is funded with LINK
    require(LINK.balanceOf(address(this)) >= fee.mul(activeDays), "!LINK");
    for (uint i = 0; i < _lpTokens.length; i++) {
      _day[i] = Day(_lpTokens[i], _vaults[i], _payoutTokens[i], _payoutAmounts[i], 0);
      // ensure the contract is funded with any specific payout tokens
      // initializer will have to be careful if the same payout token is used twice
      if (_payoutTokens[i] != address(0)) {
        require(IERC20(_payoutTokens[i]).balanceOf(address(this)) >= _payoutAmounts[i], "!_payoutAmounts");
      }
    }
    initialized = true;
  }

  /**
   * @notice Returns the current day (starts at 0)
   * @dev reverts if the raffle has not started
   */
  function currentDay() public view returns (uint256) {
    require(block.timestamp > startTime, "!startTime");
    return block.timestamp.sub(startTime).div(1 days);
  }

  /**
   * @notice Returns the address of the current accepted staking token
   * @dev The day's staking token can be the 0 address, which means
   * that any LP token of LINKSWAP would be accepted for staking
   */
  function currentPairAndVault() public view returns (address, address) {
    uint256 current = currentDay();
    return (_day[current].pair, _day[current].vault);
  }

  /**
   * @notice Returns true if the caller is able to enter the raffle
   */
  function canEnter() public view returns (bool) {
    (address pair, address vault) = currentPairAndVault();
    return IERC20(pair).balanceOf(msg.sender) > 0
        || IERC20(vault).balanceOf(msg.sender) > 0;
  }

  /**
   * @notice Returns true if the raffle has ended
   */
  function ended() public view returns (bool) {
    return block.timestamp > startTime.add(activeDays.mul(1 days));
  }

  /**
   * @notice Issues a NFT representing a lottery ticket to the caller
   * @dev This contract must be approved for spending first
   * @dev Cannot be called after the lottery drawing has passed
   */
  function enter() external {
    require(initialized, "!initialized");
    require(!ended(), "ended");
    require(balanceOf(msg.sender) < entryCap || entryCap == 0, "entryCap");
    require(canEnter(), "!canEnter");
    uint256 token = _counter++;
    _lastTokenInEpoch[currentDay()] = token;
    _safeMint(msg.sender, token);
    _setTokenURI(token, Strings.toString(token));
    details[token] = Details(false, false, currentDay());
    if (canGetRandomNumber()) {
      getRandomNumber();
    }
  }

  /**
   * @notice If caller holds a winning tokenID, this will send them their YFL prize
   * and any sponsor payout tokens
   * @dev Loops through all the tickets, this can get expensive if a user has many
   */
  function claim() external {
    require(_randomnessRequest[currentDay().sub(1)].answered, "!answered");
    uint256 balance = balanceOf(msg.sender);
    require(balance > 0, "!balance");
    for (uint i = 0; i < balance; i++) {
      uint256 token = tokenOfOwnerByIndex(msg.sender, i);
      Details memory detail = details[token];
      // if unclaimed and we've passed beyond the drawing's day
      if (!detail.claimed && detail.day < currentDay()) {
        details[token].claimed = true;
        // if caller is a winner
        if (detail.won) {
          // send them YFL
          YFL.safeTransfer(msg.sender, prizeAmount);
          address payoutToken = _day[detail.day].payoutToken;
          // if there's an additional payout token
          if (payoutToken != address(0)) {
            // send them the payout token
            IERC20(payoutToken).safeTransfer(msg.sender, _day[detail.day].payoutAmount);
          }
        }
      }
    }
  }

  /**
   * @notice Get the winning token IDs
   */
  function winners() external view returns (uint256[] memory) {
    return _winners;
  }

  /**
   * @notice Requests a random number from the Chainlink VRF
   * @dev Has a mutex to prevent calling the function multiple times before
   * the Chainlink node has a chance to respond.
   */
  function getRandomNumber() public {
    require(canGetRandomNumber(), "!canGetRandomNumber");
    // use the LINK/USD price feed as the seed for randomness
    bytes32 requestId = requestRandomness(keyHash, fee, uint256(linkUsd.latestAnswer()));
    _randomnessRequest[currentDay().sub(1)] = Randomness(requestId, false);
    emit GetRandom(requestId);
  }

  /**
   * @notice Determines whether a request can be made for randomness
   * @return bool if a request can be made
   */
  function canGetRandomNumber() public view returns (bool) {
    if (currentDay() == 0) {
      return false;
    } else {
      return _randomnessRequest[currentDay().sub(1)].requestId == bytes32(0);
    }
  }

  function fulfillRandomness(bytes32, uint256 _randomNumber) internal override {
    uint256 current = currentDay();
    _randomnessRequest[current.sub(1)].answered = true;
    uint256 min;
    uint256 max;
    // special case for day 0
    if (current == 1) {
      min = 0;
      max = _lastTokenInEpoch[0];
    // special case for the last day
    } else if (current == activeDays) {
      min = _lastTokenInEpoch[current.sub(1)];
      max = totalSupply();
    // all other days
    } else {
      min = _lastTokenInEpoch[current.sub(2)];
      max = _lastTokenInEpoch[current.sub(1)];
    }
    uint256 token = (_randomNumber % max.sub(min)).add(min);
    details[token].won = true;
    address winner = ownerOf(token);
    _winners.push(token);
    emit Winner(winner, token);
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"address","name":"_linkUsd","type":"address"},{"internalType":"uint256","name":"_entryCap","type":"uint256"},{"internalType":"address","name":"_YFL","type":"address"},{"internalType":"uint256","name":"_prizeAmount","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_days","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_requestId","type":"bytes32"}],"name":"GetRandom","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_selected","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Winner","type":"event"},{"inputs":[],"name":"YFL","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activeDays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canEnter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canGetRandomNumber","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPairAndVault","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"details","outputs":[{"internalType":"bool","name":"claimed","type":"bool"},{"internalType":"bool","name":"won","type":"bool"},{"internalType":"uint256","name":"day","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ended","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"entryCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_lpTokens","type":"address[]"},{"internalType":"address[]","name":"_vaults","type":"address[]"},{"internalType":"address[]","name":"_payoutTokens","type":"address[]"},{"internalType":"uint256[]","name":"_payoutAmounts","type":"uint256[]"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"linkUsd","outputs":[{"internalType":"contract AggregatorInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prizeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vrfCoordinator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"winners","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

6101e06040523480156200001257600080fd5b5060405162003e6238038062003e6283398181016040526101a08110156200003957600080fd5b81019080805160405193929190846401000000008211156200005a57600080fd5b9083019060208201858111156200007057600080fd5b82516401000000008111828201881017156200008b57600080fd5b82525081516020918201929091019080838360005b83811015620000ba578181015183820152602001620000a0565b50505050905090810190601f168015620000e85780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010c57600080fd5b9083019060208201858111156200012257600080fd5b82516401000000008111828201881017156200013d57600080fd5b82525081516020918201929091019080838360005b838110156200016c57818101518382015260200162000152565b50505050905090810190601f1680156200019a5780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001be57600080fd5b908301906020820185811115620001d457600080fd5b8251640100000000811182820188101715620001ef57600080fd5b82525081516020918201929091019080838360005b838110156200021e57818101518382015260200162000204565b50505050905090810190601f1680156200024c5780820380516001836020036101000a031916815260200191505b50604090815260208201519082015160608084015160808086015160a08088015160c089015160e08a01516101008b01516101208c0151610140909c01516001600160601b0319898b1b81169096529886901b909416909552979a5095985092969095939192918c8c620002c76301ffc9a760e01b620003c8565b8151620002dc90600790602085019062000469565b508051620002f290600890602084019062000469565b50620003056380ac58cd60e01b620003c8565b62000317635b5e139f60e01b620003c8565b6200032963780e9d6360e01b620003c8565b50504282116200036e576040805162461bcd60e51b815260206004820152600b60248201526a215f737461727454696d6560a81b604482015290519081900360640190fd5b620003798b62000450565b61010099909952610120979097526001600160601b0319606096871b81166101405293861b84166101605260c09290925290931b16610180525060e0526101a0526101c0525062000505915050565b6001600160e01b0319808216141562000428576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b80516200046590600a90602084019062000469565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004ac57805160ff1916838001178555620004dc565b82800160010185558215620004dc579182015b82811115620004dc578251825591602001919060010190620004bf565b50620004ea929150620004ee565b5090565b5b80821115620004ea5760008155600101620004ef565b60805160601c60a05160601c60c05160e05161010051610120516101405160601c6101605160601c6101805160601c6101a0516101c05161386e620005f460003980610b175280610f8752806115c6528061164c52806117645280612633525080610b415280610fd1528061103d52806111a2525080610ec9528061140b5280611690525080610b6f5280611dfe5250806113e75250806117435280611ddd5280611f175250806110695280611dbc525080610eec528061117e528061162b525080610fab5280611fc35280611ff45250806111cf52806128ea5250806117a852806128bb525061386e6000f3fe608060405234801561001057600080fd5b50600436106101d85760003560e01c806301ffc9a7146101dd57806306fdde0314610218578063081812fc14610295578063095ea7b3146102ce57806312fa6feb146102fc578063130897c614610304578063158ef93e1461030c57806318160ddd1461031457806323b872dd1461032e5780632f745c59146103645780633d355f761461039057806342842e0e146103985780634e71d92d146103ce5780634f6ccce7146103d657806357bd3c46146103f35780635a061784146103fb5780635c9302c91461040357806361728f391461040b5780636352211e146104135780636c0360eb1461043057806370a0823114610438578063785fa6271461045e57806378e979251461046657806394985ddd1461046e57806395d89b41146104915780639e317f1214610499578063a005ec7a146104b6578063a22cb465146104f3578063a3e56fa814610521578063a4803b3314610529578063a487bcd814610531578063b42bc32914610589578063b88d4fde14610591578063be27ebd014610655578063c87b56dd1461087c578063d6a45a3814610899578063dbdff2c1146108d0578063ddca3f43146108d8578063e97dcb62146108e0578063e985e9c5146108e8575b600080fd5b610204600480360360208110156101f357600080fd5b50356001600160e01b031916610916565b604080519115158252519081900360200190f35b610220610939565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025a578181015183820152602001610242565b50505050905090810190601f1680156102875780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102b2600480360360208110156102ab57600080fd5b50356109d0565b604080516001600160a01b039092168252519081900360200190f35b6102fa600480360360408110156102e457600080fd5b506001600160a01b038135169060200135610a32565b005b610204610b0d565b6102b2610b6d565b610204610b91565b61031c610b9a565b60408051918252519081900360200190f35b6102fa6004803603606081101561034457600080fd5b506001600160a01b03813581169160208101359091169060400135610bab565b61031c6004803603604081101561037a57600080fd5b506001600160a01b038135169060200135610c02565b610204610c2d565b6102fa600480360360608110156103ae57600080fd5b506001600160a01b03813581169160208101359091169060400135610d44565b6102fa610d5f565b61031c600480360360208110156103ec57600080fd5b5035610f6f565b61031c610f85565b61031c610fa9565b61031c610fcd565b61031c611067565b6102b26004803603602081101561042957600080fd5b503561108b565b6102206110b3565b61031c6004803603602081101561044e57600080fd5b50356001600160a01b0316611114565b61031c61117c565b61031c6111a0565b6102fa6004803603604081101561048457600080fd5b50803590602001356111c4565b61022061124b565b61031c600480360360208110156104af57600080fd5b50356112ac565b6104d3600480360360208110156104cc57600080fd5b50356112be565b604080519315158452911515602084015282820152519081900360600190f35b6102fa6004803603604081101561050957600080fd5b506001600160a01b03813516906020013515156112e4565b6102b26113e5565b6102b2611409565b61053961142d565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561057557818101518382015260200161055d565b505050509050019250505060405180910390f35b610204611484565b6102fa600480360360808110156105a757600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156105e157600080fd5b8201836020820111156105f357600080fd5b803590602001918460018302840111600160201b8311171561061457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506114c6945050505050565b6102fa6004803603608081101561066b57600080fd5b810190602081018135600160201b81111561068557600080fd5b82018360208201111561069757600080fd5b803590602001918460208302840111600160201b831117156106b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561070757600080fd5b82018360208201111561071957600080fd5b803590602001918460208302840111600160201b8311171561073a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561078957600080fd5b82018360208201111561079b57600080fd5b803590602001918460208302840111600160201b831117156107bc57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561080b57600080fd5b82018360208201111561081d57600080fd5b803590602001918460208302840111600160201b8311171561083e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611524945050505050565b6102206004803603602081101561089257600080fd5b5035611a87565b6108a1611d2e565b60405180836001600160a01b03168152602001826001600160a01b031681526020019250505060405180910390f35b6102fa611d66565b61031c611f15565b6102fa611f39565b610204600480360360408110156108fe57600080fd5b506001600160a01b0381358116916020013516612155565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109c55780601f1061099a576101008083540402835291602001916109c5565b820191906000526020600020905b8154815290600101906020018083116109a857829003601f168201915b505050505090505b90565b60006109db82612183565b610a165760405162461bcd60e51b815260040180806020018281038252602c8152602001806136ed602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a3d8261108b565b9050806001600160a01b0316836001600160a01b03161415610a905760405162461bcd60e51b81526004018080602001828103825260218152602001806137bd6021913960400191505060405180910390fd5b806001600160a01b0316610aa2612190565b6001600160a01b03161480610ac35750610ac381610abe612190565b612155565b610afe5760405162461bcd60e51b815260040180806020018281038252603881526020018061361f6038913960400191505060405180910390fd5b610b088383612194565b505050565b6000610b66610b3f7f000000000000000000000000000000000000000000000000000000000000000062015180612202565b7f00000000000000000000000000000000000000000000000000000000000000009061225b565b4211905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600b5460ff1681565b6000610ba660036122b3565b905090565b610bbc610bb6612190565b826122be565b610bf75760405162461bcd60e51b81526004018080602001828103825260318152602001806137de6031913960400191505060405180910390fd5b610b08838383612362565b6001600160a01b0382166000908152600260205260408120610c24908361249c565b90505b92915050565b6000806000610c3a611d2e565b915091506000826001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c8d57600080fd5b505afa158015610ca1573d6000803e3d6000fd5b505050506040513d6020811015610cb757600080fd5b50511180610d3d57506000816001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610d0f57600080fd5b505afa158015610d23573d6000803e3d6000fd5b505050506040513d6020811015610d3957600080fd5b5051115b9250505090565b610b08838383604051806020016040528060008152506114c6565b60106000610d766001610d70610fcd565b906124a8565b815260208101919091526040016000206001015460ff16610dca576040805162461bcd60e51b815260206004820152600960248201526808585b9cddd95c995960ba1b604482015290519081900360640190fd5b6000610dd533611114565b905060008111610e17576040805162461bcd60e51b81526020600482015260086024820152672162616c616e636560c01b604482015290519081900360640190fd5b60005b81811015610f6b576000610e2e3383610c02565b9050610e386134c7565b506000818152600e60209081526040918290208251606081018452815460ff80821615801580855261010090930490911615159483019490945260019092015493810193909352610e935750610e8c610fcd565b8160400151105b15610f61576000828152600e60209081526040909120805460ff1916600117905581015115610f6157610f106001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f00000000000000000000000000000000000000000000000000000000000000006124ea565b6040808201516000908152601160205220600201546001600160a01b03168015610f5f57604080830151600090815260116020522060030154610f5f906001600160a01b0383169033906124ea565b505b5050600101610e1a565b5050565b600080610f7d60038461253c565b509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000004211611030576040805162461bcd60e51b815260206004820152600a60248201526921737461727454696d6560b01b604482015290519081900360640190fd5b610ba662015180611061427f00000000000000000000000000000000000000000000000000000000000000006124a8565b90612558565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610c27826040518060600160405280602981526020016136816029913960039190612597565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109c55780601f1061099a576101008083540402835291602001916109c5565b60006001600160a01b03821661115b5760405162461bcd60e51b815260040180806020018281038252602a815260200180613657602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600260205260409020610c27906122b3565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611241576040805162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015290519081900360640190fd5b610f6b82826125ae565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109c55780601f1061099a576101008083540402835291602001916109c5565b60006020819052908152604090205481565b600e602052600090815260409020805460019091015460ff808316926101009004169083565b6112ec612190565b6001600160a01b0316826001600160a01b0316141561134e576040805162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015290519081900360640190fd5b806006600061135b612190565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561139f612190565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600d8054806020026020016040519081016040528092919081815260200182805480156109c557602002820191906000526020600020905b815481526020019060010190808311611467575050505050905090565b600061148e610fcd565b61149a575060006109cd565b60006010816114ac6001610d70610fcd565b8152602001908152602001600020600001541490506109cd565b6114d76114d1612190565b836122be565b6115125760405162461bcd60e51b81526004018080602001828103825260318152602001806137de6031913960400191505060405180910390fd5b61151e8484848461278b565b50505050565b600b5460ff161561156a576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b604482015290519081900360640190fd5b8151845114801561157c575080518251145b8015611589575082518451145b6115c4576040805162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b604482015290519081900360640190fd5b7f0000000000000000000000000000000000000000000000000000000000000000845114611626576040805162461bcd60e51b815260206004820152600a602482015269215f6c70546f6b656e7360b01b604482015290519081900360640190fd5b6116707f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612202565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156116d657600080fd5b505afa1580156116ea573d6000803e3d6000fd5b505050506040513d602081101561170057600080fd5b5051101561173e576040805162461bcd60e51b815260206004808301919091526024820152630856519360e21b604482015290519081900360640190fd5b6117887f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612202565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156117ee57600080fd5b505afa158015611802573d6000803e3d6000fd5b505050506040513d602081101561181857600080fd5b50511015611855576040805162461bcd60e51b8152602060048201526005602482015264214c494e4b60d81b604482015290519081900360640190fd5b60005b8451811015611a73576040518060a0016040528086838151811061187857fe5b60200260200101516001600160a01b0316815260200185838151811061189a57fe5b60200260200101516001600160a01b031681526020018483815181106118bc57fe5b60200260200101516001600160a01b031681526020018383815181106118de57fe5b60209081029190910181015182526000918101829052838252601181526040808320845181546001600160a01b03199081166001600160a01b039283161783559386015160018301805486169183169190911790559185015160028201805490941692169190911790915560608301516003820155608090920151600490920191909155835184908390811061197057fe5b60200260200101516001600160a01b031614611a6b5781818151811061199257fe5b60200260200101518382815181106119a657fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156119fa57600080fd5b505afa158015611a0e573d6000803e3d6000fd5b505050506040513d6020811015611a2457600080fd5b50511015611a6b576040805162461bcd60e51b815260206004820152600f60248201526e215f7061796f7574416d6f756e747360881b604482015290519081900360640190fd5b600101611858565b5050600b805460ff19166001179055505050565b6060611a9282612183565b611acd5760405162461bcd60e51b815260040180806020018281038252602f81526020018061376e602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015611b625780601f10611b3757610100808354040283529160200191611b62565b820191906000526020600020905b815481529060010190602001808311611b4557829003601f168201915b5050600a5493945050505060026000196101006001841615020190911604611b8b579050610934565b805115611c5c57600a816040516020018083805460018160011615610100020316600290048015611bf35780601f10611bd1576101008083540402835291820191611bf3565b820191906000526020600020905b815481529060010190602001808311611bdf575b5050825160208401908083835b60208310611c1f5780518252601f199092019160209182019101611c00565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610934565b600a611c67846127dd565b6040516020018083805460018160011615610100020316600290048015611cc55780601f10611ca3576101008083540402835291820191611cc5565b820191906000526020600020905b815481529060010190602001808311611cb1575b5050825160208401908083835b60208310611cf15780518252601f199092019160209182019101611cd2565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6000806000611d3b610fcd565b600090815260116020526040902080546001909101546001600160a01b039182169450169150509091565b611d6e611484565b611db5576040805162461bcd60e51b815260206004820152601360248201527210b1b0b723b2ba2930b73237b6a73ab6b132b960691b604482015290519081900360640190fd5b6000611e867f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e5557600080fd5b505afa158015611e69573d6000803e3d6000fd5b505050506040513d6020811015611e7f57600080fd5b50516128b7565b905060405180604001604052808281526020016000151581525060106000611eb16001610d70610fcd565b8152602080820192909252604090810160002083518155928201516001909301805460ff191693151593909317909255815183815291517f1add6009a43c617146a2bff417f8ed10a18b056872abcafe02f7d0cea175fc609281900390910190a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b600b5460ff16611f7f576040805162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b604482015290519081900360640190fd5b611f87610b0d565b15611fc1576040805162461bcd60e51b8152602060048201526005602482015264195b99195960da1b604482015290519081900360640190fd5b7f0000000000000000000000000000000000000000000000000000000000000000611feb33611114565b108061201557507f0000000000000000000000000000000000000000000000000000000000000000155b612051576040805162461bcd60e51b81526020600482015260086024820152670656e7472794361760c41b604482015290519081900360640190fd5b612059610c2d565b612096576040805162461bcd60e51b815260206004820152600960248201526810b1b0b722b73a32b960b91b604482015290519081900360640190fd5b600c80546001810190915580600f60006120ae610fcd565b81526020810191909152604001600020556120c93382612a6a565b6120db816120d6836127dd565b612a84565b60408051606081018252600080825260208201529081016120fa610fcd565b90526000828152600e6020908152604091829020835181549285015115156101000261ff001991151560ff199094169390931716919091178155910151600190910155612145611484565b1561215257612152611d66565b50565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6000610c27600383612ae7565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121c98261108b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261221157506000610c27565b8282028284828161221e57fe5b0414610c245760405162461bcd60e51b81526004018080602001828103825260218152602001806136cc6021913960400191505060405180910390fd5b600082820183811015610c24576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6000610c2782612af3565b60006122c982612183565b6123045760405162461bcd60e51b815260040180806020018281038252602c8152602001806135f3602c913960400191505060405180910390fd5b600061230f8361108b565b9050806001600160a01b0316846001600160a01b0316148061234a5750836001600160a01b031661233f846109d0565b6001600160a01b0316145b8061235a575061235a8185612155565b949350505050565b826001600160a01b03166123758261108b565b6001600160a01b0316146123ba5760405162461bcd60e51b81526004018080602001828103825260298152602001806137456029913960400191505060405180910390fd5b6001600160a01b0382166123ff5760405162461bcd60e51b81526004018080602001828103825260248152602001806135cf6024913960400191505060405180910390fd5b61240a838383610b08565b612415600082612194565b6001600160a01b03831660009081526002602052604090206124379082612af7565b506001600160a01b038216600090815260026020526040902061245a9082612b03565b5061246760038284612b0f565b5080826001600160a01b0316846001600160a01b031660008051602061379d83398151915260405160405180910390a4505050565b6000610c248383612b25565b6000610c2483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612b89565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b08908490612c20565b600080808061254b8686612cd1565b9097909650945050505050565b6000610c2483836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250612d4c565b60006125a4848484612db1565b90505b9392505050565b60006125b8610fcd565b90506001601060006125ca84846124a8565b815260200190815260200160002060010160006101000a81548160ff02191690831515021790555060008082600114156126315750506000808052600f6020527ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec375546126d2565b7f000000000000000000000000000000000000000000000000000000000000000083141561268857600f60006126688560016124a8565b8152602001908152602001600020549150612681610b9a565b90506126d2565b600f60006126978560026124a8565b8152602001908152602001600020549150600f60006126c06001866124a890919063ffffffff16565b81526020019081526020016000205490505b60006126f1836126e284826124a8565b87816126ea57fe5b069061225b565b6000818152600e60205260408120805461ff0019166101001790559091506127188261108b565b600d805460018101825560009182527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50184905560405191925083916001600160a01b038416917f9c2270628a9b29d30ae96b6c4c14ed646ee134febdce38a5b77f2bde9cea2e2091a350505050505050565b612796848484612362565b6127a284848484612e3e565b61151e5760405162461bcd60e51b815260040180806020018281038252603281526020018061359d6032913960400191505060405180910390fd5b60608161280257506040805180820190915260018152600360fc1b6020820152610934565b8160005b811561281a57600101600a82049150612806565b6060816001600160401b038111801561283257600080fd5b506040519080825280601f01601f19166020018201604052801561285d576020820181803683370190505b50859350905060001982015b83156128ae57600a840660300160f81b8282806001900393508151811061288c57fe5b60200101906001600160f81b031916908160001a905350600a84049350612869565b50949350505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000085878660405160200180838152602001828152602001925050506040516020818303038152906040526040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561299357818101518382015260200161297b565b50505050905090810190601f1680156129c05780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b1580156129e157600080fd5b505af11580156129f5573d6000803e3d6000fd5b505050506040513d6020811015612a0b57600080fd5b5050600084815260208190526040812054612a2b90869085903090612fa6565b600086815260208190526040902054909150612a4890600161225b565b600086815260208190526040902055612a618582612fed565b95945050505050565b610f6b828260405180602001604052806000815250613019565b612a8d82612183565b612ac85760405162461bcd60e51b815260040180806020018281038252602c815260200180613719602c913960400191505060405180910390fd5b60008281526009602090815260409091208251610b08928401906134e7565b6000610c24838361306b565b5490565b6000610c248383613083565b6000610c248383613149565b60006125a484846001600160a01b038516613193565b81546000908210612b675760405162461bcd60e51b815260040180806020018281038252602281526020018061357b6022913960400191505060405180910390fd5b826000018281548110612b7657fe5b9060005260206000200154905092915050565b60008184841115612c185760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612bdd578181015183820152602001612bc5565b50505050905090810190601f168015612c0a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060612c75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661322a9092919063ffffffff16565b805190915015610b0857808060200190516020811015612c9457600080fd5b5051610b085760405162461bcd60e51b815260040180806020018281038252602a81526020018061380f602a913960400191505060405180910390fd5b815460009081908310612d155760405162461bcd60e51b81526004018080602001828103825260228152602001806136aa6022913960400191505060405180910390fd5b6000846000018481548110612d2657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008183612d9b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612bdd578181015183820152602001612bc5565b506000838581612da757fe5b0495945050505050565b60008281526001840160205260408120548281612e0f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612bdd578181015183820152602001612bc5565b50846000016001820381548110612e2257fe5b9060005260206000209060020201600101549150509392505050565b6000612e52846001600160a01b0316613239565b612e5e5750600161235a565b6060612f6c630a85bd0160e11b612e73612190565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612eda578181015183820152602001612ec2565b50505050905090810190601f168015612f075780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161359d603291396001600160a01b038816919061322a565b90506000818060200190516020811015612f8557600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60408051602080820196909652808201949094526001600160a01b039290921660608401526080808401919091528151808403909101815260a09092019052805191012090565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b613023838361323f565b6130306000848484612e3e565b610b085760405162461bcd60e51b815260040180806020018281038252603281526020018061359d6032913960400191505060405180910390fd5b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561313f57835460001980830191908101906000908790839081106130b657fe5b90600052602060002001549050808760000184815481106130d357fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061310357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c27565b6000915050610c27565b6000613155838361306b565b61318b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c27565b506000610c27565b6000828152600184016020526040812054806131f85750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556125a7565b8285600001600183038154811061320b57fe5b90600052602060002090600202016001018190555060009150506125a7565b60606125a4848460008561335a565b3b151590565b6001600160a01b03821661329a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6132a381612183565b156132f4576040805162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015290519081900360640190fd5b61330060008383610b08565b6001600160a01b03821660009081526002602052604090206133229082612b03565b5061332f60038284612b0f565b5060405181906001600160a01b0384169060009060008051602061379d833981519152908290a45050565b606061336585613239565b6133b6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106133f55780518252601f1990920191602091820191016133d6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613457576040519150601f19603f3d011682016040523d82523d6000602084013e61345c565b606091505b5091509150811561347057915061235a9050565b8051156134805780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612bdd578181015183820152602001612bc5565b604080516060810182526000808252602082018190529181019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061352857805160ff1916838001178555613555565b82800160010185558215613555579182015b8281111561355557825182559160200191906001019061353a565b50613561929150613565565b5090565b5b80821115613561576000815560010161356656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656eddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220f60fb734ebb91118620d98e6e705e75c74c999b137759c8d29a4de1d93c6efe364736f6c634300060c003300000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000002c1d072e956affc0d435cb7ac38ef18d24d9127c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000005fd94e00000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000d4c494e4b534d415320323032300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c4d323000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f79666c696e6b2e696f2f232f6c696e6b736d61732d323032302f000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101d85760003560e01c806301ffc9a7146101dd57806306fdde0314610218578063081812fc14610295578063095ea7b3146102ce57806312fa6feb146102fc578063130897c614610304578063158ef93e1461030c57806318160ddd1461031457806323b872dd1461032e5780632f745c59146103645780633d355f761461039057806342842e0e146103985780634e71d92d146103ce5780634f6ccce7146103d657806357bd3c46146103f35780635a061784146103fb5780635c9302c91461040357806361728f391461040b5780636352211e146104135780636c0360eb1461043057806370a0823114610438578063785fa6271461045e57806378e979251461046657806394985ddd1461046e57806395d89b41146104915780639e317f1214610499578063a005ec7a146104b6578063a22cb465146104f3578063a3e56fa814610521578063a4803b3314610529578063a487bcd814610531578063b42bc32914610589578063b88d4fde14610591578063be27ebd014610655578063c87b56dd1461087c578063d6a45a3814610899578063dbdff2c1146108d0578063ddca3f43146108d8578063e97dcb62146108e0578063e985e9c5146108e8575b600080fd5b610204600480360360208110156101f357600080fd5b50356001600160e01b031916610916565b604080519115158252519081900360200190f35b610220610939565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025a578181015183820152602001610242565b50505050905090810190601f1680156102875780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102b2600480360360208110156102ab57600080fd5b50356109d0565b604080516001600160a01b039092168252519081900360200190f35b6102fa600480360360408110156102e457600080fd5b506001600160a01b038135169060200135610a32565b005b610204610b0d565b6102b2610b6d565b610204610b91565b61031c610b9a565b60408051918252519081900360200190f35b6102fa6004803603606081101561034457600080fd5b506001600160a01b03813581169160208101359091169060400135610bab565b61031c6004803603604081101561037a57600080fd5b506001600160a01b038135169060200135610c02565b610204610c2d565b6102fa600480360360608110156103ae57600080fd5b506001600160a01b03813581169160208101359091169060400135610d44565b6102fa610d5f565b61031c600480360360208110156103ec57600080fd5b5035610f6f565b61031c610f85565b61031c610fa9565b61031c610fcd565b61031c611067565b6102b26004803603602081101561042957600080fd5b503561108b565b6102206110b3565b61031c6004803603602081101561044e57600080fd5b50356001600160a01b0316611114565b61031c61117c565b61031c6111a0565b6102fa6004803603604081101561048457600080fd5b50803590602001356111c4565b61022061124b565b61031c600480360360208110156104af57600080fd5b50356112ac565b6104d3600480360360208110156104cc57600080fd5b50356112be565b604080519315158452911515602084015282820152519081900360600190f35b6102fa6004803603604081101561050957600080fd5b506001600160a01b03813516906020013515156112e4565b6102b26113e5565b6102b2611409565b61053961142d565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561057557818101518382015260200161055d565b505050509050019250505060405180910390f35b610204611484565b6102fa600480360360808110156105a757600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156105e157600080fd5b8201836020820111156105f357600080fd5b803590602001918460018302840111600160201b8311171561061457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506114c6945050505050565b6102fa6004803603608081101561066b57600080fd5b810190602081018135600160201b81111561068557600080fd5b82018360208201111561069757600080fd5b803590602001918460208302840111600160201b831117156106b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561070757600080fd5b82018360208201111561071957600080fd5b803590602001918460208302840111600160201b8311171561073a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561078957600080fd5b82018360208201111561079b57600080fd5b803590602001918460208302840111600160201b831117156107bc57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561080b57600080fd5b82018360208201111561081d57600080fd5b803590602001918460208302840111600160201b8311171561083e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611524945050505050565b6102206004803603602081101561089257600080fd5b5035611a87565b6108a1611d2e565b60405180836001600160a01b03168152602001826001600160a01b031681526020019250505060405180910390f35b6102fa611d66565b61031c611f15565b6102fa611f39565b610204600480360360408110156108fe57600080fd5b506001600160a01b0381358116916020013516612155565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109c55780601f1061099a576101008083540402835291602001916109c5565b820191906000526020600020905b8154815290600101906020018083116109a857829003601f168201915b505050505090505b90565b60006109db82612183565b610a165760405162461bcd60e51b815260040180806020018281038252602c8152602001806136ed602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a3d8261108b565b9050806001600160a01b0316836001600160a01b03161415610a905760405162461bcd60e51b81526004018080602001828103825260218152602001806137bd6021913960400191505060405180910390fd5b806001600160a01b0316610aa2612190565b6001600160a01b03161480610ac35750610ac381610abe612190565b612155565b610afe5760405162461bcd60e51b815260040180806020018281038252603881526020018061361f6038913960400191505060405180910390fd5b610b088383612194565b505050565b6000610b66610b3f7f000000000000000000000000000000000000000000000000000000000000000c62015180612202565b7f000000000000000000000000000000000000000000000000000000005fd94e009061225b565b4211905090565b7f0000000000000000000000002c1d072e956affc0d435cb7ac38ef18d24d9127c81565b600b5460ff1681565b6000610ba660036122b3565b905090565b610bbc610bb6612190565b826122be565b610bf75760405162461bcd60e51b81526004018080602001828103825260318152602001806137de6031913960400191505060405180910390fd5b610b08838383612362565b6001600160a01b0382166000908152600260205260408120610c24908361249c565b90505b92915050565b6000806000610c3a611d2e565b915091506000826001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c8d57600080fd5b505afa158015610ca1573d6000803e3d6000fd5b505050506040513d6020811015610cb757600080fd5b50511180610d3d57506000816001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610d0f57600080fd5b505afa158015610d23573d6000803e3d6000fd5b505050506040513d6020811015610d3957600080fd5b5051115b9250505090565b610b08838383604051806020016040528060008152506114c6565b60106000610d766001610d70610fcd565b906124a8565b815260208101919091526040016000206001015460ff16610dca576040805162461bcd60e51b815260206004820152600960248201526808585b9cddd95c995960ba1b604482015290519081900360640190fd5b6000610dd533611114565b905060008111610e17576040805162461bcd60e51b81526020600482015260086024820152672162616c616e636560c01b604482015290519081900360640190fd5b60005b81811015610f6b576000610e2e3383610c02565b9050610e386134c7565b506000818152600e60209081526040918290208251606081018452815460ff80821615801580855261010090930490911615159483019490945260019092015493810193909352610e935750610e8c610fcd565b8160400151105b15610f61576000828152600e60209081526040909120805460ff1916600117905581015115610f6157610f106001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be16337f0000000000000000000000000000000000000000000000000de0b6b3a76400006124ea565b6040808201516000908152601160205220600201546001600160a01b03168015610f5f57604080830151600090815260116020522060030154610f5f906001600160a01b0383169033906124ea565b505b5050600101610e1a565b5050565b600080610f7d60038461253c565b509392505050565b7f000000000000000000000000000000000000000000000000000000000000000c81565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000005fd94e004211611030576040805162461bcd60e51b815260206004820152600a60248201526921737461727454696d6560b01b604482015290519081900360640190fd5b610ba662015180611061427f000000000000000000000000000000000000000000000000000000005fd94e006124a8565b90612558565b7faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44581565b6000610c27826040518060600160405280602981526020016136816029913960039190612597565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109c55780601f1061099a576101008083540402835291602001916109c5565b60006001600160a01b03821661115b5760405162461bcd60e51b815260040180806020018281038252602a815260200180613657602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600260205260409020610c27906122b3565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b7f000000000000000000000000000000000000000000000000000000005fd94e0081565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611241576040805162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015290519081900360640190fd5b610f6b82826125ae565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109c55780601f1061099a576101008083540402835291602001916109c5565b60006020819052908152604090205481565b600e602052600090815260409020805460019091015460ff808316926101009004169083565b6112ec612190565b6001600160a01b0316826001600160a01b0316141561134e576040805162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015290519081900360640190fd5b806006600061135b612190565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561139f612190565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795281565b7f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be81565b6060600d8054806020026020016040519081016040528092919081815260200182805480156109c557602002820191906000526020600020905b815481526020019060010190808311611467575050505050905090565b600061148e610fcd565b61149a575060006109cd565b60006010816114ac6001610d70610fcd565b8152602001908152602001600020600001541490506109cd565b6114d76114d1612190565b836122be565b6115125760405162461bcd60e51b81526004018080602001828103825260318152602001806137de6031913960400191505060405180910390fd5b61151e8484848461278b565b50505050565b600b5460ff161561156a576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b604482015290519081900360640190fd5b8151845114801561157c575080518251145b8015611589575082518451145b6115c4576040805162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000c845114611626576040805162461bcd60e51b815260206004820152600a602482015269215f6c70546f6b656e7360b01b604482015290519081900360640190fd5b6116707f0000000000000000000000000000000000000000000000000de0b6b3a76400007f000000000000000000000000000000000000000000000000000000000000000c612202565b604080516370a0823160e01b815230600482015290516001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be16916370a08231916024808301926020929190829003018186803b1580156116d657600080fd5b505afa1580156116ea573d6000803e3d6000fd5b505050506040513d602081101561170057600080fd5b5051101561173e576040805162461bcd60e51b815260206004808301919091526024820152630856519360e21b604482015290519081900360640190fd5b6117887f0000000000000000000000000000000000000000000000001bc16d674ec800007f000000000000000000000000000000000000000000000000000000000000000c612202565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16916370a08231916024808301926020929190829003018186803b1580156117ee57600080fd5b505afa158015611802573d6000803e3d6000fd5b505050506040513d602081101561181857600080fd5b50511015611855576040805162461bcd60e51b8152602060048201526005602482015264214c494e4b60d81b604482015290519081900360640190fd5b60005b8451811015611a73576040518060a0016040528086838151811061187857fe5b60200260200101516001600160a01b0316815260200185838151811061189a57fe5b60200260200101516001600160a01b031681526020018483815181106118bc57fe5b60200260200101516001600160a01b031681526020018383815181106118de57fe5b60209081029190910181015182526000918101829052838252601181526040808320845181546001600160a01b03199081166001600160a01b039283161783559386015160018301805486169183169190911790559185015160028201805490941692169190911790915560608301516003820155608090920151600490920191909155835184908390811061197057fe5b60200260200101516001600160a01b031614611a6b5781818151811061199257fe5b60200260200101518382815181106119a657fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156119fa57600080fd5b505afa158015611a0e573d6000803e3d6000fd5b505050506040513d6020811015611a2457600080fd5b50511015611a6b576040805162461bcd60e51b815260206004820152600f60248201526e215f7061796f7574416d6f756e747360881b604482015290519081900360640190fd5b600101611858565b5050600b805460ff19166001179055505050565b6060611a9282612183565b611acd5760405162461bcd60e51b815260040180806020018281038252602f81526020018061376e602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015611b625780601f10611b3757610100808354040283529160200191611b62565b820191906000526020600020905b815481529060010190602001808311611b4557829003601f168201915b5050600a5493945050505060026000196101006001841615020190911604611b8b579050610934565b805115611c5c57600a816040516020018083805460018160011615610100020316600290048015611bf35780601f10611bd1576101008083540402835291820191611bf3565b820191906000526020600020905b815481529060010190602001808311611bdf575b5050825160208401908083835b60208310611c1f5780518252601f199092019160209182019101611c00565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610934565b600a611c67846127dd565b6040516020018083805460018160011615610100020316600290048015611cc55780601f10611ca3576101008083540402835291820191611cc5565b820191906000526020600020905b815481529060010190602001808311611cb1575b5050825160208401908083835b60208310611cf15780518252601f199092019160209182019101611cd2565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6000806000611d3b610fcd565b600090815260116020526040902080546001909101546001600160a01b039182169450169150509091565b611d6e611484565b611db5576040805162461bcd60e51b815260206004820152601360248201527210b1b0b723b2ba2930b73237b6a73ab6b132b960691b604482015290519081900360640190fd5b6000611e867faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec800007f0000000000000000000000002c1d072e956affc0d435cb7ac38ef18d24d9127c6001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e5557600080fd5b505afa158015611e69573d6000803e3d6000fd5b505050506040513d6020811015611e7f57600080fd5b50516128b7565b905060405180604001604052808281526020016000151581525060106000611eb16001610d70610fcd565b8152602080820192909252604090810160002083518155928201516001909301805460ff191693151593909317909255815183815291517f1add6009a43c617146a2bff417f8ed10a18b056872abcafe02f7d0cea175fc609281900390910190a150565b7f0000000000000000000000000000000000000000000000001bc16d674ec8000081565b600b5460ff16611f7f576040805162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b604482015290519081900360640190fd5b611f87610b0d565b15611fc1576040805162461bcd60e51b8152602060048201526005602482015264195b99195960da1b604482015290519081900360640190fd5b7f0000000000000000000000000000000000000000000000000000000000000000611feb33611114565b108061201557507f0000000000000000000000000000000000000000000000000000000000000000155b612051576040805162461bcd60e51b81526020600482015260086024820152670656e7472794361760c41b604482015290519081900360640190fd5b612059610c2d565b612096576040805162461bcd60e51b815260206004820152600960248201526810b1b0b722b73a32b960b91b604482015290519081900360640190fd5b600c80546001810190915580600f60006120ae610fcd565b81526020810191909152604001600020556120c93382612a6a565b6120db816120d6836127dd565b612a84565b60408051606081018252600080825260208201529081016120fa610fcd565b90526000828152600e6020908152604091829020835181549285015115156101000261ff001991151560ff199094169390931716919091178155910151600190910155612145611484565b1561215257612152611d66565b50565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6000610c27600383612ae7565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121c98261108b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261221157506000610c27565b8282028284828161221e57fe5b0414610c245760405162461bcd60e51b81526004018080602001828103825260218152602001806136cc6021913960400191505060405180910390fd5b600082820183811015610c24576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6000610c2782612af3565b60006122c982612183565b6123045760405162461bcd60e51b815260040180806020018281038252602c8152602001806135f3602c913960400191505060405180910390fd5b600061230f8361108b565b9050806001600160a01b0316846001600160a01b0316148061234a5750836001600160a01b031661233f846109d0565b6001600160a01b0316145b8061235a575061235a8185612155565b949350505050565b826001600160a01b03166123758261108b565b6001600160a01b0316146123ba5760405162461bcd60e51b81526004018080602001828103825260298152602001806137456029913960400191505060405180910390fd5b6001600160a01b0382166123ff5760405162461bcd60e51b81526004018080602001828103825260248152602001806135cf6024913960400191505060405180910390fd5b61240a838383610b08565b612415600082612194565b6001600160a01b03831660009081526002602052604090206124379082612af7565b506001600160a01b038216600090815260026020526040902061245a9082612b03565b5061246760038284612b0f565b5080826001600160a01b0316846001600160a01b031660008051602061379d83398151915260405160405180910390a4505050565b6000610c248383612b25565b6000610c2483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612b89565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b08908490612c20565b600080808061254b8686612cd1565b9097909650945050505050565b6000610c2483836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250612d4c565b60006125a4848484612db1565b90505b9392505050565b60006125b8610fcd565b90506001601060006125ca84846124a8565b815260200190815260200160002060010160006101000a81548160ff02191690831515021790555060008082600114156126315750506000808052600f6020527ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec375546126d2565b7f000000000000000000000000000000000000000000000000000000000000000c83141561268857600f60006126688560016124a8565b8152602001908152602001600020549150612681610b9a565b90506126d2565b600f60006126978560026124a8565b8152602001908152602001600020549150600f60006126c06001866124a890919063ffffffff16565b81526020019081526020016000205490505b60006126f1836126e284826124a8565b87816126ea57fe5b069061225b565b6000818152600e60205260408120805461ff0019166101001790559091506127188261108b565b600d805460018101825560009182527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50184905560405191925083916001600160a01b038416917f9c2270628a9b29d30ae96b6c4c14ed646ee134febdce38a5b77f2bde9cea2e2091a350505050505050565b612796848484612362565b6127a284848484612e3e565b61151e5760405162461bcd60e51b815260040180806020018281038252603281526020018061359d6032913960400191505060405180910390fd5b60608161280257506040805180820190915260018152600360fc1b6020820152610934565b8160005b811561281a57600101600a82049150612806565b6060816001600160401b038111801561283257600080fd5b506040519080825280601f01601f19166020018201604052801561285d576020820181803683370190505b50859350905060001982015b83156128ae57600a840660300160f81b8282806001900393508151811061288c57fe5b60200101906001600160f81b031916908160001a905350600a84049350612869565b50949350505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795285878660405160200180838152602001828152602001925050506040516020818303038152906040526040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561299357818101518382015260200161297b565b50505050905090810190601f1680156129c05780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b1580156129e157600080fd5b505af11580156129f5573d6000803e3d6000fd5b505050506040513d6020811015612a0b57600080fd5b5050600084815260208190526040812054612a2b90869085903090612fa6565b600086815260208190526040902054909150612a4890600161225b565b600086815260208190526040902055612a618582612fed565b95945050505050565b610f6b828260405180602001604052806000815250613019565b612a8d82612183565b612ac85760405162461bcd60e51b815260040180806020018281038252602c815260200180613719602c913960400191505060405180910390fd5b60008281526009602090815260409091208251610b08928401906134e7565b6000610c24838361306b565b5490565b6000610c248383613083565b6000610c248383613149565b60006125a484846001600160a01b038516613193565b81546000908210612b675760405162461bcd60e51b815260040180806020018281038252602281526020018061357b6022913960400191505060405180910390fd5b826000018281548110612b7657fe5b9060005260206000200154905092915050565b60008184841115612c185760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612bdd578181015183820152602001612bc5565b50505050905090810190601f168015612c0a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060612c75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661322a9092919063ffffffff16565b805190915015610b0857808060200190516020811015612c9457600080fd5b5051610b085760405162461bcd60e51b815260040180806020018281038252602a81526020018061380f602a913960400191505060405180910390fd5b815460009081908310612d155760405162461bcd60e51b81526004018080602001828103825260228152602001806136aa6022913960400191505060405180910390fd5b6000846000018481548110612d2657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008183612d9b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612bdd578181015183820152602001612bc5565b506000838581612da757fe5b0495945050505050565b60008281526001840160205260408120548281612e0f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612bdd578181015183820152602001612bc5565b50846000016001820381548110612e2257fe5b9060005260206000209060020201600101549150509392505050565b6000612e52846001600160a01b0316613239565b612e5e5750600161235a565b6060612f6c630a85bd0160e11b612e73612190565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612eda578181015183820152602001612ec2565b50505050905090810190601f168015612f075780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161359d603291396001600160a01b038816919061322a565b90506000818060200190516020811015612f8557600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60408051602080820196909652808201949094526001600160a01b039290921660608401526080808401919091528151808403909101815260a09092019052805191012090565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b613023838361323f565b6130306000848484612e3e565b610b085760405162461bcd60e51b815260040180806020018281038252603281526020018061359d6032913960400191505060405180910390fd5b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561313f57835460001980830191908101906000908790839081106130b657fe5b90600052602060002001549050808760000184815481106130d357fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061310357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c27565b6000915050610c27565b6000613155838361306b565b61318b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c27565b506000610c27565b6000828152600184016020526040812054806131f85750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556125a7565b8285600001600183038154811061320b57fe5b90600052602060002090600202016001018190555060009150506125a7565b60606125a4848460008561335a565b3b151590565b6001600160a01b03821661329a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6132a381612183565b156132f4576040805162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015290519081900360640190fd5b61330060008383610b08565b6001600160a01b03821660009081526002602052604090206133229082612b03565b5061332f60038284612b0f565b5060405181906001600160a01b0384169060009060008051602061379d833981519152908290a45050565b606061336585613239565b6133b6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106133f55780518252601f1990920191602091820191016133d6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613457576040519150601f19603f3d011682016040523d82523d6000602084013e61345c565b606091505b5091509150811561347057915061235a9050565b8051156134805780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612bdd578181015183820152602001612bc5565b604080516060810182526000808252602082018190529181019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061352857805160ff1916838001178555613555565b82800160010185558215613555579182015b8281111561355557825182559160200191906001019061353a565b50613561929150613565565b5090565b5b80821115613561576000815560010161356656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656eddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220f60fb734ebb91118620d98e6e705e75c74c999b137759c8d29a4de1d93c6efe364736f6c634300060c0033

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

00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000002c1d072e956affc0d435cb7ac38ef18d24d9127c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000005fd94e00000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000d4c494e4b534d415320323032300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c4d323000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f79666c696e6b2e696f2f232f6c696e6b736d61732d323032302f000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): LINKSMAS 2020
Arg [1] : _symbol (string): LM20
Arg [2] : _baseURI (string): https://yflink.io/#/linksmas-2020/
Arg [3] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [4] : _fee (uint256): 2000000000000000000
Arg [5] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [6] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [7] : _linkUsd (address): 0x2c1d072e956AFFC0D435Cb7AC38EF18d24d9127c
Arg [8] : _entryCap (uint256): 0
Arg [9] : _YFL (address): 0x28cb7e841ee97947a86B06fA4090C8451f64c0be
Arg [10] : _prizeAmount (uint256): 1000000000000000000
Arg [11] : _startTime (uint256): 1608076800
Arg [12] : _days (uint256): 12

-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [3] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [4] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [5] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [6] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [7] : 0000000000000000000000002c1d072e956affc0d435cb7ac38ef18d24d9127c
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be
Arg [10] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [11] : 000000000000000000000000000000000000000000000000000000005fd94e00
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [14] : 4c494e4b534d4153203230323000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [16] : 4c4d323000000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [18] : 68747470733a2f2f79666c696e6b2e696f2f232f6c696e6b736d61732d323032
Arg [19] : 302f000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

75724:9599:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10601:142;;;;;;;;;;;;;;;;-1:-1:-1;10601:142:0;-1:-1:-1;;;;;;10601:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;44488:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47175:213;;;;;;;;;;;;;;;;-1:-1:-1;47175:213:0;;:::i;:::-;;;;-1:-1:-1;;;;;47175:213:0;;;;;;;;;;;;;;46719:390;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46719:390:0;;;;;;;;:::i;:::-;;81384:119;;;:::i;76029:44::-;;;:::i;76191:23::-;;;:::i;46213:203::-;;;:::i;:::-;;;;;;;;;;;;;;;;48049:305;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48049:305:0;;;;;;;;;;;;;;;;;:::i;45983:154::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;45983:154:0;;;;;;;;:::i;81096:217::-;;;:::i;48425:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48425:151:0;;;;;;;;;;;;;;;;;:::i;82459:981::-;;;:::i;46493:164::-;;;;;;;;;;;;;;;;-1:-1:-1;46493:164:0;;:::i;76149:35::-;;;:::i;75836:33::-;;;:::i;80441:171::-;;;:::i;75915:32::-;;;:::i;44252:169::-;;;;;;;;;;;;;;;;-1:-1:-1;44252:169:0;;:::i;45810:89::-;;;:::i;43975:215::-;;;;;;;;;;;;;;;;-1:-1:-1;43975:215:0;-1:-1:-1;;;;;43975:215:0;;:::i;75874:36::-;;;:::i;76110:34::-;;;:::i;73730:210::-;;;;;;;;;;;;;;;;-1:-1:-1;73730:210:0;;;;;;;:::i;44649:96::-;;;:::i;73315:67::-;;;;;;;;;;;;;;;;-1:-1:-1;73315:67:0;;:::i;76577:42::-;;;;;;;;;;;;;;;;-1:-1:-1;76577:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47460:295;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47460:295:0;;;;;;;;;;:::i;75985:39::-;;;:::i;76078:27::-;;;:::i;83500:88::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84293:214;;;:::i;48647:285::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48647:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;48647:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;48647:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48647:285:0;;-1:-1:-1;48647:285:0;;-1:-1:-1;;;;;48647:285:0:i;79122:1198::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79122:1198:0;;;;;;;;-1:-1:-1;79122:1198:0;;-1:-1:-1;;;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79122:1198:0;;;;;;;;-1:-1:-1;79122:1198:0;;-1:-1:-1;;;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79122:1198:0;;;;;;;;-1:-1:-1;79122:1198:0;;-1:-1:-1;;;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;79122:1198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79122:1198:0;;-1:-1:-1;79122:1198:0;;-1:-1:-1;;;;;79122:1198:0:i;44816:755::-;;;;;;;;;;;;;;;;-1:-1:-1;44816:755:0;;:::i;80839:168::-;;;:::i;:::-;;;;;-1:-1:-1;;;;;80839:168:0;;;;;;-1:-1:-1;;;;;80839:168:0;;;;;;;;;;;;;;;;83797:362;;;:::i;75952:28::-;;;:::i;81720:514::-;;;:::i;47826:156::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47826:156:0;;;;;;;;;;:::i;10601:142::-;-1:-1:-1;;;;;;10702:33:0;;10678:4;10702:33;;;:20;:33;;;;;;;;10601:142;;;;:::o;44488:92::-;44567:5;44560:12;;;;;;;;-1:-1:-1;;44560:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44534:13;;44560:12;;44567:5;;44560:12;;44567:5;44560:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44488:92;;:::o;47175:213::-;47243:7;47271:16;47279:7;47271;:16::i;:::-;47263:73;;;;-1:-1:-1;;;47263:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47356:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;47356:24:0;;47175:213::o;46719:390::-;46800:13;46816:16;46824:7;46816;:16::i;:::-;46800:32;;46857:5;-1:-1:-1;;;;;46851:11:0;:2;-1:-1:-1;;;;;46851:11:0;;;46843:57;;;;-1:-1:-1;;;46843:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46937:5;-1:-1:-1;;;;;46921:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;46921:21:0;;:62;;;;46946:37;46963:5;46970:12;:10;:12::i;:::-;46946:16;:37::i;:::-;46913:154;;;;-1:-1:-1;;;46913:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47080:21;47089:2;47093:7;47080:8;:21::i;:::-;46719:390;;;:::o;81384:119::-;81422:4;81460:37;81474:22;:10;81489:6;81474:14;:22::i;:::-;81460:9;;:13;:37::i;:::-;81442:15;:55;81435:62;;81384:119;:::o;76029:44::-;;;:::o;76191:23::-;;;;;;:::o;46213:203::-;46266:7;46387:21;:12;:19;:21::i;:::-;46380:28;;46213:203;:::o;48049:305::-;48210:41;48229:12;:10;:12::i;:::-;48243:7;48210:18;:41::i;:::-;48202:103;;;;-1:-1:-1;;;48202:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48318:28;48328:4;48334:2;48338:7;48318:9;:28::i;45983:154::-;-1:-1:-1;;;;;46099:20:0;;46072:7;46099:20;;;:13;:20;;;;;:30;;46123:5;46099:23;:30::i;:::-;46092:37;;45983:154;;;;;:::o;81096:217::-;81137:4;81151:12;81165:13;81182:21;:19;:21::i;:::-;81150:53;;;;81254:1;81224:4;-1:-1:-1;;;;;81217:22:0;;81240:10;81217:34;;;;;;;;;;;;;-1:-1:-1;;;;;81217:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81217:34:0;:38;;:90;;;81306:1;81275:5;-1:-1:-1;;;;;81268:23:0;;81292:10;81268:35;;;;;;;;;;;;;-1:-1:-1;;;;;81268:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81268:35:0;:39;81217:90;81210:97;;;;81096:217;:::o;48425:151::-;48529:39;48546:4;48552:2;48556:7;48529:39;;;;;;;;;;;;:16;:39::i;82459:981::-;82500:18;:39;82519:19;82536:1;82519:12;:10;:12::i;:::-;:16;;:19::i;:::-;82500:39;;;;;;;;;;;-1:-1:-1;82500:39:0;:48;;;;;82492:70;;;;;-1:-1:-1;;;82492:70:0;;;;;;;;;;;;-1:-1:-1;;;82492:70:0;;;;;;;;;;;;;;;82569:15;82587:21;82597:10;82587:9;:21::i;:::-;82569:39;;82633:1;82623:7;:11;82615:32;;;;;-1:-1:-1;;;82615:32:0;;;;;;;;;;;;-1:-1:-1;;;82615:32:0;;;;;;;;;;;;;;;82659:6;82654:781;82675:7;82671:1;:11;82654:781;;;82698:13;82714:34;82734:10;82746:1;82714:19;:34::i;:::-;82698:50;;82757:21;;:::i;:::-;-1:-1:-1;82781:14:0;;;;:7;:14;;;;;;;;;82757:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82873:44;;;82905:12;:10;:12::i;:::-;82892:6;:10;;;:25;82873:44;82869:559;;;82930:14;;;;:7;:14;;;;;;;;:29;;-1:-1:-1;;82930:29:0;82955:4;82930:29;;;83008:10;;;83004:415;;;83061:41;-1:-1:-1;;;;;83061:3:0;:16;83078:10;83090:11;83061:16;:41::i;:::-;83142:10;;;;;83115:19;83137:16;;;:4;:16;;;:28;;;-1:-1:-1;;;;;83137:28:0;83234:25;;83230:178;;83369:10;;;;;83364:16;;;;:4;:16;;;:29;;;83319:75;;-1:-1:-1;;;;;83319:32:0;;;83352:10;;83319:32;:75::i;:::-;83004:415;;-1:-1:-1;;82684:3:0;;82654:781;;;;82459:981;:::o;46493:164::-;46560:7;;46602:22;:12;46618:5;46602:15;:22::i;:::-;-1:-1:-1;46580:44:0;46493:164;-1:-1:-1;;;46493:164:0:o;76149:35::-;;;:::o;75836:33::-;;;:::o;80441:171::-;80484:7;80526:9;80508:15;:27;80500:50;;;;;-1:-1:-1;;;80500:50:0;;;;;;;;;;;;-1:-1:-1;;;80500:50:0;;;;;;;;;;;;;;;80564:42;80599:6;80564:30;:15;80584:9;80564:19;:30::i;:::-;:34;;:42::i;75915:32::-;;;:::o;44252:169::-;44316:7;44343:70;44360:7;44343:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;45810:89::-;45883:8;45876:15;;;;;;;;-1:-1:-1;;45876:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45850:13;;45876:15;;45883:8;;45876:15;;45883:8;45876:15;;;;;;;;;;;;;;;;;;;;;;;;43975:215;44039:7;-1:-1:-1;;;;;44067:19:0;;44059:74;;;;-1:-1:-1;;;44059:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44153:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;75874:36::-;;;:::o;76110:34::-;;;:::o;73730:210::-;73823:10;-1:-1:-1;;;;;73837:14:0;73823:28;;73815:72;;;;;-1:-1:-1;;;73815:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;73894:40;73912:9;73923:10;73894:17;:40::i;44649:96::-;44730:7;44723:14;;;;;;;;-1:-1:-1;;44723:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44697:13;;44723:14;;44730:7;;44723:14;;44730:7;44723:14;;;;;;;;;;;;;;;;;;;;;;;;73315:67;;;;;;;;;;;;;;:::o;76577:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47460:295::-;47575:12;:10;:12::i;:::-;-1:-1:-1;;;;;47563:24:0;:8;-1:-1:-1;;;;;47563:24:0;;;47555:62;;;;;-1:-1:-1;;;47555:62:0;;;;;;;;;;;;-1:-1:-1;;;47555:62:0;;;;;;;;;;;;;;;47675:8;47630:18;:32;47649:12;:10;:12::i;:::-;-1:-1:-1;;;;;47630:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;47630:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;47630:53:0;;;;;;;;;;;47714:12;:10;:12::i;:::-;-1:-1:-1;;;;;47699:48:0;;47738:8;47699:48;;;;;;;;;;;;;;;;;;;;47460:295;;:::o;75985:39::-;;;:::o;76078:27::-;;;:::o;83500:88::-;83542:16;83574:8;83567:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83500:88;:::o;84293:214::-;84344:4;84361:12;:10;:12::i;:::-;84357:145;;-1:-1:-1;84396:5:0;84389:12;;84357:145;84492:1;84431:18;84492:1;84450:19;84467:1;84450:12;:10;:12::i;:19::-;84431:39;;;;;;;;;;;:49;;;:63;84424:70;;;;48647:285;48779:41;48798:12;:10;:12::i;:::-;48812:7;48779:18;:41::i;:::-;48771:103;;;;-1:-1:-1;;;48771:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48885:39;48899:4;48905:2;48909:7;48918:5;48885:13;:39::i;:::-;48647:285;;;;:::o;79122:1198::-;79313:11;;;;79312:12;79304:36;;;;;-1:-1:-1;;;79304:36:0;;;;;;;;;;;;-1:-1:-1;;;79304:36:0;;;;;;;;;;;;;;;79375:13;:20;79355:9;:16;:40;:98;;;;;79432:14;:21;79408:13;:20;:45;79355:98;:145;;;;;79486:7;:14;79466:9;:16;:34;79355:145;79347:165;;;;;-1:-1:-1;;;79347:165:0;;;;;;;;;;;;-1:-1:-1;;;79347:165:0;;;;;;;;;;;;;;;79547:10;79527:9;:16;:30;79519:53;;;;;-1:-1:-1;;;79519:53:0;;;;;;;;;;;;-1:-1:-1;;;79519:53:0;;;;;;;;;;;;;;;79662:27;:11;79678:10;79662:15;:27::i;:::-;79630:28;;;-1:-1:-1;;;79630:28:0;;79652:4;79630:28;;;;;;-1:-1:-1;;;;;79630:3:0;:13;;;;:28;;;;;;;;;;;;;;:13;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79630:28:0;:59;;79622:76;;;;;-1:-1:-1;;;79622:76:0;;;;;;;;;;;;;;;-1:-1:-1;;;79622:76:0;;;;;;;;;;;;;;;79794:19;:3;79802:10;79794:7;:19::i;:::-;79761:29;;;-1:-1:-1;;;79761:29:0;;79784:4;79761:29;;;;;;-1:-1:-1;;;;;79761:4:0;:14;;;;:29;;;;;;;;;;;;;;:14;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79761:29:0;:52;;79753:70;;;;;-1:-1:-1;;;79753:70:0;;;;;;;;;;;;-1:-1:-1;;;79753:70:0;;;;;;;;;;;;;;;79835:6;79830:460;79851:9;:16;79847:1;:20;79830:460;;;79893:69;;;;;;;;79897:9;79907:1;79897:12;;;;;;;;;;;;;;-1:-1:-1;;;;;79893:69:0;;;;;79911:7;79919:1;79911:10;;;;;;;;;;;;;;-1:-1:-1;;;;;79893:69:0;;;;;79923:13;79937:1;79923:16;;;;;;;;;;;;;;-1:-1:-1;;;;;79893:69:0;;;;;79941:14;79956:1;79941:17;;;;;;;;;;;;;;;;;;;79893:69;;79960:1;79893:69;;;;;;79883:7;;;:4;:7;;;;;;:79;;;;-1:-1:-1;;;;;;79883:79:0;;;-1:-1:-1;;;;;79883:79:0;;;;;;;;;;-1:-1:-1;79883:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80132:16;;;;79883:7;;80132:16;;;;;;;;;;;;-1:-1:-1;;;;;80132:30:0;;80128:155;;80236:14;80251:1;80236:17;;;;;;;;;;;;;;80190:13;80204:1;80190:16;;;;;;;;;;;;;;-1:-1:-1;;;;;80183:34:0;;80226:4;80183:49;;;;;;;;;;;;;-1:-1:-1;;;;;80183:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80183:49:0;:70;;80175:98;;;;;-1:-1:-1;;;80175:98:0;;;;;;;;;;;;-1:-1:-1;;;80175:98:0;;;;;;;;;;;;;;;79869:3;;79830:460;;;-1:-1:-1;;80296:11:0;:18;;-1:-1:-1;;80296:18:0;80310:4;80296:18;;;-1:-1:-1;;;79122:1198:0:o;44816:755::-;44881:13;44915:16;44923:7;44915;:16::i;:::-;44907:76;;;;-1:-1:-1;;;44907:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45022:19;;;;:10;:19;;;;;;;;;44996:45;;;;;;-1:-1:-1;;44996:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;45022:19;44996:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45123:8:0;45117:22;44996:45;;-1:-1:-1;;;;45117:22:0;-1:-1:-1;;45117:22:0;;;;;;;;;;;45113:76;;45168:9;-1:-1:-1;45161:16:0;;45113:76;45293:23;;:27;45289:112;;45368:8;45378:9;45351:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45351:37:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45351:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45337:52;;;;;45289:112;45533:8;45543:18;:7;:16;:18::i;:::-;45516:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45516:46:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45516:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45502:61;;;44816:755;;;:::o;80839:168::-;80891:7;80900;80916:15;80934:12;:10;:12::i;:::-;80961:13;;;;:4;:13;;;;;:18;;;80981:19;;;;-1:-1:-1;;;;;80961:18:0;;;;-1:-1:-1;80981:19:0;;-1:-1:-1;;80839:168:0;;:::o;83797:362::-;83846:20;:18;:20::i;:::-;83838:52;;;;;-1:-1:-1;;;83838:52:0;;;;;;;;;;;;-1:-1:-1;;;83838:52:0;;;;;;;;;;;;;;;83960:17;83980:64;83998:7;84007:3;84020:7;-1:-1:-1;;;;;84020:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;84020:22:0;83980:17;:64::i;:::-;83960:84;;84093:28;;;;;;;;84104:9;84093:28;;;;84115:5;84093:28;;;;;84051:18;:39;84070:19;84087:1;84070:12;:10;:12::i;:19::-;84051:39;;;;;;;;;;;;;;-1:-1:-1;84051:39:0;:70;;;;;;;;;;;;;;-1:-1:-1;;84051:70:0;;;;;;;;;;;84133:20;;;;;;;;;;;;;;;;;83797:362;:::o;75952:28::-;;;:::o;81720:514::-;81761:11;;;;81753:36;;;;;-1:-1:-1;;;81753:36:0;;;;;;;;;;;;-1:-1:-1;;;81753:36:0;;;;;;;;;;;;;;;81805:7;:5;:7::i;:::-;81804:8;81796:26;;;;;-1:-1:-1;;;81796:26:0;;;;;;;;;;;;-1:-1:-1;;;81796:26:0;;;;;;;;;;;;;;;81861:8;81837:21;81847:10;81837:9;:21::i;:::-;:32;:49;;;-1:-1:-1;81873:8:0;:13;81837:49;81829:70;;;;;-1:-1:-1;;;81829:70:0;;;;;;;;;;;;-1:-1:-1;;;81829:70:0;;;;;;;;;;;;;;;81914:10;:8;:10::i;:::-;81906:32;;;;;-1:-1:-1;;;81906:32:0;;;;;;;;;;;;-1:-1:-1;;;81906:32:0;;;;;;;;;;;;;;;81961:8;:10;;;;;;;;;81978:17;81945:13;81996:12;:10;:12::i;:::-;81978:31;;;;;;;;;;;-1:-1:-1;81978:31:0;:39;82024:28;82034:10;82046:5;82024:9;:28::i;:::-;82059:44;82072:5;82079:23;82096:5;82079:16;:23::i;:::-;82059:12;:44::i;:::-;82127:35;;;;;;;;-1:-1:-1;82127:35:0;;;;;;;;;;82149:12;:10;:12::i;:::-;82127:35;;82110:14;;;;:7;:14;;;;;;;;;:52;;;;;;;;;;;;-1:-1:-1;;82110:52:0;;;-1:-1:-1;;82110:52:0;;;;;;;;;;;;;;;;;;;;;;82173:20;:18;:20::i;:::-;82169:60;;;82204:17;:15;:17::i;:::-;81720:514;:::o;47826:156::-;-1:-1:-1;;;;;47939:25:0;;;47915:4;47939:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;47826:156::o;50399:119::-;50456:4;50480:30;:12;50502:7;50480:21;:30::i;1281:106::-;1369:10;1281:106;:::o;56226:158::-;56292:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;56292:29:0;-1:-1:-1;;;;;56292:29:0;;;;;;;;:24;;56346:16;56292:24;56346:7;:16::i;:::-;-1:-1:-1;;;;;56337:39:0;;;;;;;;;;;56226:158;;:::o;13606:471::-;13664:7;13909:6;13905:47;;-1:-1:-1;13939:1:0;13932:8;;13905:47;13976:5;;;13980:1;13976;:5;:1;14000:5;;;;;:10;13992:56;;;;-1:-1:-1;;;13992:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12252:181;12310:7;12342:5;;;12366:6;;;;12358:46;;;;;-1:-1:-1;;;12358:46:0;;;;;;;;;;;;-1:-1:-1;;;12358:46:0;;;;;;;;;;;;;;37980:123;38049:7;38076:19;38084:3;38076:7;:19::i;50685:333::-;50770:4;50795:16;50803:7;50795;:16::i;:::-;50787:73;;;;-1:-1:-1;;;50787:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50871:13;50887:16;50895:7;50887;:16::i;:::-;50871:32;;50933:5;-1:-1:-1;;;;;50922:16:0;:7;-1:-1:-1;;;;;50922:16:0;;:51;;;;50966:7;-1:-1:-1;;;;;50942:31:0;:20;50954:7;50942:11;:20::i;:::-;-1:-1:-1;;;;;50942:31:0;;50922:51;:87;;;;50977:32;50994:5;51001:7;50977:16;:32::i;:::-;50914:96;50685:333;-1:-1:-1;;;;50685:333:0:o;53774:574::-;53892:4;-1:-1:-1;;;;;53872:24:0;:16;53880:7;53872;:16::i;:::-;-1:-1:-1;;;;;53872:24:0;;53864:78;;;;-1:-1:-1;;;53864:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53961:16:0;;53953:65;;;;-1:-1:-1;;;53953:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54031:39;54052:4;54058:2;54062:7;54031:20;:39::i;:::-;54135:29;54152:1;54156:7;54135:8;:29::i;:::-;-1:-1:-1;;;;;54177:19:0;;;;;;:13;:19;;;;;:35;;54204:7;54177:26;:35::i;:::-;-1:-1:-1;;;;;;54223:17:0;;;;;;:13;:17;;;;;:30;;54245:7;54223:21;:30::i;:::-;-1:-1:-1;54266:29:0;:12;54283:7;54292:2;54266:16;:29::i;:::-;;54332:7;54328:2;-1:-1:-1;;;;;54313:27:0;54322:4;-1:-1:-1;;;;;54313:27:0;-1:-1:-1;;;;;;;;;;;54313:27:0;;;;;;;;;53774:574;;;:::o;30614:137::-;30685:7;30720:22;30724:3;30736:5;30720:3;:22::i;12716:136::-;12774:7;12801:43;12805:1;12808;12801:43;;;;;;;;;;;;;;;;;:3;:43::i;60490:177::-;60600:58;;;-1:-1:-1;;;;;60600:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60600:58:0;-1:-1:-1;;;60600:58:0;;;60573:86;;60593:5;;60573:19;:86::i;38442:227::-;38522:7;;;;38582:22;38586:3;38598:5;38582:3;:22::i;:::-;38551:53;;;;-1:-1:-1;38442:227:0;-1:-1:-1;;;;;38442:227:0:o;14553:132::-;14611:7;14638:39;14642:1;14645;14638:39;;;;;;;;;;;;;-1:-1:-1;;;14638:39:0;;;:3;:39::i;39104:204::-;39211:7;39254:44;39259:3;39279;39285:12;39254:4;:44::i;:::-;39246:53;-1:-1:-1;39104:204:0;;;;;;:::o;84513:807::-;84597:15;84615:12;:10;:12::i;:::-;84597:30;-1:-1:-1;84680:4:0;84634:18;:34;84653:14;84597:30;84680:4;84653:11;:14::i;:::-;84634:34;;;;;;;;;;;:43;;;:50;;;;;;;;;;;;;;;;;;84691:11;84709;84762:7;84773:1;84762:12;84758:365;;;-1:-1:-1;;84791:1:0;84807:20;;;:17;:20;;;;84758:365;;;84894:10;84883:7;:21;84879:244;;;84921:17;:33;84939:14;:7;84951:1;84939:11;:14::i;:::-;84921:33;;;;;;;;;;;;84915:39;;84969:13;:11;:13::i;:::-;84963:19;;84879:244;;;85034:17;:33;85052:14;:7;85064:1;85052:11;:14::i;:::-;85034:33;;;;;;;;;;;;85028:39;;85082:17;:33;85100:14;85112:1;85100:7;:11;;:14;;;;:::i;:::-;85082:33;;;;;;;;;;;;85076:39;;84879:244;85129:13;85145:39;85180:3;85162:12;:3;85180;85162:7;:12::i;:::-;85146:13;:28;;;;;;;85145:34;:39::i;:::-;85191:14;;;;:7;:14;;;;;:25;;-1:-1:-1;;85191:25:0;;;;;85129:55;;-1:-1:-1;85240:14:0;85129:55;85240:7;:14::i;:::-;85261:8;:20;;;;;;;-1:-1:-1;85261:20:0;;;;;;;;85293:21;;85223:31;;-1:-1:-1;85275:5:0;;-1:-1:-1;;;;;85293:21:0;;;;;;84513:807;;;;;;;:::o;49814:272::-;49928:28;49938:4;49944:2;49948:7;49928:9;:28::i;:::-;49975:48;49998:4;50004:2;50008:7;50017:5;49975:22;:48::i;:::-;49967:111;;;;-1:-1:-1;;;49967:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39520:744;39576:13;39797:10;39793:53;;-1:-1:-1;39824:10:0;;;;;;;;;;;;-1:-1:-1;;;39824:10:0;;;;;;39793:53;39871:5;39856:12;39912:78;39919:9;;39912:78;;39945:8;;39976:2;39968:10;;;;39912:78;;;40000:19;40032:6;-1:-1:-1;;;;;40022:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40022:17:0;-1:-1:-1;40094:5:0;;-1:-1:-1;40000:39:0;-1:-1:-1;;;40066:10:0;;40110:115;40117:9;;40110:115;;40184:2;40177:4;:9;40172:2;:14;40161:27;;40143:6;40150:7;;;;;;;40143:15;;;;;;;;;;;:45;-1:-1:-1;;;;;40143:45:0;;;;;;;;-1:-1:-1;40211:2:0;40203:10;;;;40110:115;;;-1:-1:-1;40249:6:0;39520:744;-1:-1:-1;;;;39520:744:0:o;72110:967::-;72207:17;72236:4;-1:-1:-1;;;;;72236:20:0;;72257:14;72273:4;72290:8;72300:5;72279:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72236:71;;;;;;;;;;;;;-1:-1:-1;;;;;72236:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;72542:15:0;72610:16;;;72236:71;72610:16;;;;;;;72561:66;;72578:8;;72588:5;;72603:4;;72561:16;:66::i;:::-;73002:6;:16;;;;;;;;;;;72542:85;;-1:-1:-1;73002:23:0;;73023:1;73002:20;:23::i;:::-;72983:6;:16;;;;;;;;;;:42;73039:32;72990:8;73063:7;73039:13;:32::i;:::-;73032:39;72110:967;-1:-1:-1;;;;;72110:967:0:o;51361:110::-;51437:26;51447:2;51451:7;51437:26;;;;;;;;;;;;:9;:26::i;54504:215::-;54604:16;54612:7;54604;:16::i;:::-;54596:73;;;;-1:-1:-1;;;54596:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54680:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;37741:151::-;37825:4;37849:35;37859:3;37879;37849:9;:35::i;35363:110::-;35446:19;;35363:110::o;29701:137::-;29771:4;29795:35;29803:3;29823:5;29795:7;:35::i;29394:131::-;29461:4;29485:32;29490:3;29510:5;29485:4;:32::i;37173:176::-;37262:4;37286:55;37291:3;37311;-1:-1:-1;;;;;37325:14:0;;37286:4;:55::i;27278:204::-;27373:18;;27345:7;;27373:26;-1:-1:-1;27365:73:0;;;;-1:-1:-1;;;27365:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27456:3;:11;;27468:5;27456:18;;;;;;;;;;;;;;;;27449:25;;27278:204;;;;:::o;13155:192::-;13241:7;13277:12;13269:6;;;;13261:29;;;;-1:-1:-1;;;13261:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13313:5:0;;;13155:192::o;62795:761::-;63219:23;63245:69;63273:4;63245:69;;;;;;;;;;;;;;;;;63253:5;-1:-1:-1;;;;;63245:27:0;;;:69;;;;;:::i;:::-;63329:17;;63219:95;;-1:-1:-1;63329:21:0;63325:224;;63471:10;63460:30;;;;;;;;;;;;;;;-1:-1:-1;63460:30:0;63452:85;;;;-1:-1:-1;;;63452:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35828:279;35932:19;;35895:7;;;;35932:27;-1:-1:-1;35924:74:0;;;;-1:-1:-1;;;35924:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36011:22;36036:3;:12;;36049:5;36036:19;;;;;;;;;;;;;;;;;;36011:44;;36074:5;:10;;;36086:5;:12;;;36066:33;;;;;35828:279;;;;;:::o;15181:278::-;15267:7;15302:12;15295:5;15287:28;;;;-1:-1:-1;;;15287:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15326:9;15342:1;15338;:5;;;;;;;15181:278;-1:-1:-1;;;;;15181:278:0:o;36530:319::-;36624:7;36663:17;;;:12;;;:17;;;;;;36714:12;36699:13;36691:36;;;;-1:-1:-1;;;36691:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36781:3;:12;;36805:1;36794:8;:12;36781:26;;;;;;;;;;;;;;;;;;:33;;;36774:40;;;36530:319;;;;;:::o;55614:604::-;55735:4;55762:15;:2;-1:-1:-1;;;;;55762:13:0;;:15::i;:::-;55757:60;;-1:-1:-1;55801:4:0;55794:11;;55757:60;55827:23;55853:252;-1:-1:-1;;;55966:12:0;:10;:12::i;:::-;55993:4;56012:7;56034:5;55869:181;;;;;;-1:-1:-1;;;;;55869:181:0;;;;;;-1:-1:-1;;;;;55869:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;55869:181:0;;;;;;;-1:-1:-1;;;;;55869:181:0;;;;;;;;;;;55853:252;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;55853:15:0;;;:252;:15;:252::i;:::-;55827:278;;56116:13;56143:10;56132:32;;;;;;;;;;;;;;;-1:-1:-1;56132:32:0;-1:-1:-1;;;;;;56183:26:0;-1:-1:-1;;;56183:26:0;;-1:-1:-1;;;55614:604:0;;;;;;:::o;65509:236::-;65686:51;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;65686:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65676:62;;;;;;65509:236::o;66136:174::-;66262:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66252:52;;;;;;66136:174::o;51698:250::-;51794:18;51800:2;51804:7;51794:5;:18::i;:::-;51831:54;51862:1;51866:2;51870:7;51879:5;51831:22;:54::i;:::-;51823:117;;;;-1:-1:-1;;;51823:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35143:125;35214:4;35238:17;;;:12;;;;;:17;;;;;;:22;;;35143:125::o;24980:1544::-;25046:4;25185:19;;;:12;;;:19;;;;;;25221:15;;25217:1300;;25656:18;;-1:-1:-1;;25607:14:0;;;;25656:22;;;;25583:21;;25656:3;;:22;;25943;;;;;;;;;;;;;;25923:42;;26089:9;26060:3;:11;;26072:13;26060:26;;;;;;;;;;;;;;;;;;;:38;;;;26166:23;;;26208:1;26166:12;;;:23;;;;;;26192:17;;;26166:43;;26318:17;;26166:3;;26318:17;;;;;;;;;;;;;;;;;;;;;;26413:3;:12;;:19;26426:5;26413:19;;;;;;;;;;;26406:26;;;26456:4;26449:11;;;;;;;;25217:1300;26500:5;26493:12;;;;;24390:414;24453:4;24475:21;24485:3;24490:5;24475:9;:21::i;:::-;24470:327;;-1:-1:-1;24513:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;24696:18;;24674:19;;;:12;;;:19;;;;;;:40;;;;24729:11;;24470:327;-1:-1:-1;24780:5:0;24773:12;;32643:692;32719:4;32854:17;;;:12;;;:17;;;;;;32888:13;32884:444;;-1:-1:-1;;32973:38:0;;;;;;;;;;;;;;;;;;32955:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;33170:19;;33150:17;;;:12;;;:17;;;;;;;:39;33204:11;;32884:444;33284:5;33248:3;:12;;33272:1;33261:8;:12;33248:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;33311:5;33304:12;;;;;20365:196;20468:12;20500:53;20523:6;20531:4;20537:1;20540:12;20500:22;:53::i;17447:422::-;17814:20;17853:8;;;17447:422::o;52284:404::-;-1:-1:-1;;;;;52364:16:0;;52356:61;;;;;-1:-1:-1;;;52356:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52437:16;52445:7;52437;:16::i;:::-;52436:17;52428:58;;;;;-1:-1:-1;;;52428:58:0;;;;;;;;;;;;-1:-1:-1;;;52428:58:0;;;;;;;;;;;;;;;52499:45;52528:1;52532:2;52536:7;52499:20;:45::i;:::-;-1:-1:-1;;;;;52557:17:0;;;;;;:13;:17;;;;;:30;;52579:7;52557:21;:30::i;:::-;-1:-1:-1;52600:29:0;:12;52617:7;52626:2;52600:16;:29::i;:::-;-1:-1:-1;52647:33:0;;52672:7;;-1:-1:-1;;;;;52647:33:0;;;52664:1;;-1:-1:-1;;;;;;;;;;;52647:33:0;52664:1;;52647:33;52284:404;;:::o;21742:979::-;21872:12;21905:18;21916:6;21905:10;:18::i;:::-;21897:60;;;;;-1:-1:-1;;;21897:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22031:12;22045:23;22072:6;-1:-1:-1;;;;;22072:11:0;22092:8;22103:4;22072:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;22072:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22030:78;;;;22123:7;22119:595;;;22154:10;-1:-1:-1;22147:17:0;;-1:-1:-1;22147:17:0;22119:595;22268:17;;:21;22264:439;;22531:10;22525:17;22592:15;22579:10;22575:2;22571:19;22564:44;22479:148;22667:20;;-1:-1:-1;;;22667:20:0;;;;;;;;;;;;;;;;;22674:12;;22667:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://f60fb734ebb91118620d98e6e705e75c74c999b137759c8d29a4de1d93c6efe3
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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