ETH Price: $2,733.36 (-0.87%)

Contract

0xd91ee91FD0f3fb15C9B9DD47F156396aa8C7c84B
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Burn And Redeem202779082024-07-10 18:31:4746 days ago1720636307IN
0xd91ee91F...aa8C7c84B
0 ETH0.000534498.70805308
Burn And Redeem202778682024-07-10 18:23:4746 days ago1720635827IN
0xd91ee91F...aa8C7c84B
0 ETH0.000571139.30510364
Burn And Redeem200268162024-06-05 16:27:1181 days ago1717604831IN
0xd91ee91F...aa8C7c84B
0 ETH0.0012008919.56526997
Burn And Redeem200267992024-06-05 16:23:4781 days ago1717604627IN
0xd91ee91F...aa8C7c84B
0 ETH0.0012274819.99849576
Burn And Redeem200267832024-06-05 16:20:2381 days ago1717604423IN
0xd91ee91F...aa8C7c84B
0 ETH0.0011608418.91281301
Burn And Redeem200267642024-06-05 16:16:3581 days ago1717604195IN
0xd91ee91F...aa8C7c84B
0 ETH0.0011545718.81418654
Burn And Redeem199347542024-05-23 19:45:4794 days ago1716493547IN
0xd91ee91F...aa8C7c84B
0 ETH0.0006545910.66476097
Burn And Redeem199347362024-05-23 19:42:1194 days ago1716493331IN
0xd91ee91F...aa8C7c84B
0 ETH0.0007487612.19908956
Burn And Redeem199347272024-05-23 19:40:2394 days ago1716493223IN
0xd91ee91F...aa8C7c84B
0 ETH0.0008740214.2398588
Burn And Redeem199347182024-05-23 19:38:3594 days ago1716493115IN
0xd91ee91F...aa8C7c84B
0 ETH0.000853413.90393957
Burn And Redeem199346922024-05-23 19:33:1194 days ago1716492791IN
0xd91ee91F...aa8C7c84B
0 ETH0.0007913312.89259389
Burn And Redeem199346812024-05-23 19:30:5994 days ago1716492659IN
0xd91ee91F...aa8C7c84B
0 ETH0.0008899614.49952011
Burn And Redeem195374652024-03-29 5:05:35150 days ago1711688735IN
0xd91ee91F...aa8C7c84B
0 ETH0.0014655523.87721283
Burn And Redeem195374532024-03-29 5:03:11150 days ago1711688591IN
0xd91ee91F...aa8C7c84B
0 ETH0.0013936422.70561184
Burn And Redeem195374352024-03-29 4:59:35150 days ago1711688375IN
0xd91ee91F...aa8C7c84B
0 ETH0.0013318821.69940206
Burn And Redeem195136012024-03-25 19:36:47153 days ago1711395407IN
0xd91ee91F...aa8C7c84B
0 ETH0.0022022533.27724444
Burn And Redeem195135932024-03-25 19:35:11153 days ago1711395311IN
0xd91ee91F...aa8C7c84B
0 ETH0.002109731.88454802
Burn And Redeem195135722024-03-25 19:30:59153 days ago1711395059IN
0xd91ee91F...aa8C7c84B
0 ETH0.0020565736.33067578
Burn And Redeem194011192024-03-10 0:27:47169 days ago1710030467IN
0xd91ee91F...aa8C7c84B
0 ETH0.0037132260.48491473
Burn And Redeem190727432024-01-23 23:51:11215 days ago1706053871IN
0xd91ee91F...aa8C7c84B
0 ETH0.000482729.11604205
Burn And Redeem189852722024-01-11 17:49:35227 days ago1704995375IN
0xd91ee91F...aa8C7c84B
0 ETH0.0017314430.59583419
Burn And Redeem189653742024-01-08 22:51:23230 days ago1704754283IN
0xd91ee91F...aa8C7c84B
0 ETH0.0010195818.00901553
Burn And Redeem189645032024-01-08 19:55:59230 days ago1704743759IN
0xd91ee91F...aa8C7c84B
0 ETH0.0018105131.99292092
Burn And Redeem189641232024-01-08 18:39:35230 days ago1704739175IN
0xd91ee91F...aa8C7c84B
0 ETH0.0023573641.65617768
Burn And Redeem189008642023-12-30 20:59:59239 days ago1703969999IN
0xd91ee91F...aa8C7c84B
0 ETH0.0009720715.83731708
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
202779082024-07-10 18:31:4746 days ago1720636307
0xd91ee91F...aa8C7c84B
0.63973231 ETH
202778682024-07-10 18:23:4746 days ago1720635827
0xd91ee91F...aa8C7c84B
0.63973231 ETH
200268162024-06-05 16:27:1181 days ago1717604831
0xd91ee91F...aa8C7c84B
1.27946463 ETH
200267992024-06-05 16:23:4781 days ago1717604627
0xd91ee91F...aa8C7c84B
1.20838326 ETH
200267832024-06-05 16:20:2381 days ago1717604423
0xd91ee91F...aa8C7c84B
1.0804368 ETH
200267642024-06-05 16:16:3581 days ago1717604195
0xd91ee91F...aa8C7c84B
0.90984151 ETH
199347542024-05-23 19:45:4794 days ago1716493547
0xd91ee91F...aa8C7c84B
1.03778798 ETH
199347362024-05-23 19:42:1194 days ago1716493331
0xd91ee91F...aa8C7c84B
1.0235717 ETH
199347272024-05-23 19:40:2394 days ago1716493223
0xd91ee91F...aa8C7c84B
0.95249034 ETH
199347182024-05-23 19:38:3594 days ago1716493115
0xd91ee91F...aa8C7c84B
0.85297642 ETH
199346922024-05-23 19:33:1194 days ago1716492791
0xd91ee91F...aa8C7c84B
0.73924623 ETH
199346812024-05-23 19:30:5994 days ago1716492659
0xd91ee91F...aa8C7c84B
0.61129977 ETH
195374652024-03-29 5:05:35150 days ago1711688735
0xd91ee91F...aa8C7c84B
0.66816486 ETH
195374532024-03-29 5:03:11150 days ago1711688591
0xd91ee91F...aa8C7c84B
0.64257557 ETH
195374352024-03-29 4:59:35150 days ago1711688375
0xd91ee91F...aa8C7c84B
0.60419163 ETH
195136012024-03-25 19:36:47153 days ago1711395407
0xd91ee91F...aa8C7c84B
0.15637901 ETH
195135932024-03-25 19:35:11153 days ago1711395311
0xd91ee91F...aa8C7c84B
0.00015637 ETH
194011192024-03-10 0:27:47169 days ago1710030467
0xd91ee91F...aa8C7c84B
17.90752922 ETH
192931462024-02-23 22:03:23184 days ago1708725803
0xd91ee91F...aa8C7c84B
0.38561403 ETH
190727432024-01-23 23:51:11215 days ago1706053871
0xd91ee91F...aa8C7c84B
0.04116 ETH
189852722024-01-11 17:49:35227 days ago1704995375
0xd91ee91F...aa8C7c84B
21.42321372 ETH
189653742024-01-08 22:51:23230 days ago1704754283
0xd91ee91F...aa8C7c84B
31.13170396 ETH
189645032024-01-08 19:55:59230 days ago1704743759
0xd91ee91F...aa8C7c84B
54.24219249 ETH
189641232024-01-08 18:39:35230 days ago1704739175
0xd91ee91F...aa8C7c84B
54.24219249 ETH
189008642023-12-30 20:59:59239 days ago1703969999
0xd91ee91F...aa8C7c84B
1.02755226 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuctionHandler

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-05-06
*/

// File: @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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-upgradeable/math/SafeMathUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

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

// File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol



pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // 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-upgradeable/proxy/Initializable.sol



// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

// File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    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;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

// File: contracts/interfaces/IUnicFactory.sol

pragma solidity >=0.5.0;

interface IUnicFactory {
    event TokenCreated(address indexed caller, address indexed uToken);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);
    function converterImplementation() external view returns (address);

    function getUToken(address uToken) external view returns (uint);
    function uTokens(uint) external view returns (address);
    function uTokensLength() external view returns (uint);
    function getGovernorAlpha(address uToken) external view returns (address);
    function feeDivisor() external view returns (uint);
    function auctionHandler() external view returns (address);
    function uTokenSupply() external view returns (uint);
    function airdropAmount() external view returns (uint);
    function airdropEnabled() external view returns (bool);
    function unic() external view returns (address);
    function isAirdropCollection(address collection) external view returns (bool);
    function receivedAirdrop(address user) external view returns (bool);
    function owner() external view returns (address);
    function proxyTransactionFactory() external view returns (address);

    function createUToken(
        string calldata name,
        string calldata symbol,
        bool enableProxyTransactions
    ) external returns (address, address);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
    function setConverterImplementation(address) external;
    function setFeeDivisor(uint) external;
    function setAuctionHandler(address) external;
    function setSupply(uint) external;
    function setProxyTransactionFactory(address _proxyTransactionFactory) external;
    function setAirdropCollections(address[] calldata, bool) external;
    function setAirdropReceived(address) external;
    function toggleAirdrop() external;
}

// File: @openzeppelin/contracts-upgradeable/introspection/ERC165CheckerUpgradeable.sol



pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165CheckerUpgradeable {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return _supportsERC165Interface(account, _INTERFACE_ID_ERC165) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) &&
            _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        // success determines whether the staticcall succeeded and result determines
        // whether the contract at account indicates support of _interfaceId
        (bool success, bool result) = _callERC165SupportsInterface(account, interfaceId);

        return (success && result);
    }

    /**
     * @notice Calls the function with selector 0x01ffc9a7 (ERC165) and suppresses throw
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return success true if the STATICCALL succeeded, false otherwise
     * @return result true if the STATICCALL succeeded and the contract at account
     * indicates support of the interface with identifier interfaceId, false otherwise
     */
    function _callERC165SupportsInterface(address account, bytes4 interfaceId)
        private
        view
        returns (bool, bool)
    {
        bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId);
        (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams);
        if (result.length < 32) return (false, false);
        return (success, abi.decode(result, (bool)));
    }
}

// File: @openzeppelin/contracts-upgradeable/introspection/IERC165Upgradeable.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165Upgradeable {
    /**
     * @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-upgradeable/token/ERC721/IERC721Upgradeable.sol



pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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-upgradeable/token/ERC1155/IERC1155Upgradeable.sol



pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155Upgradeable is IERC165Upgradeable {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

// File: @openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155ReceiverUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * _Available since v3.1._
 */
interface IERC1155ReceiverUpgradeable is IERC165Upgradeable {

    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

// File: @openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol



pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {
    /*
     * 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;

    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
        // 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 virtual 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;
    }
    uint256[49] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155ReceiverUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155ReceiverUpgradeable is Initializable, ERC165Upgradeable, IERC1155ReceiverUpgradeable {
    function __ERC1155Receiver_init() internal initializer {
        __ERC165_init_unchained();
        __ERC1155Receiver_init_unchained();
    }

    function __ERC1155Receiver_init_unchained() internal initializer {
        _registerInterface(
            ERC1155ReceiverUpgradeable(address(0)).onERC1155Received.selector ^
            ERC1155ReceiverUpgradeable(address(0)).onERC1155BatchReceived.selector
        );
    }
    uint256[50] private __gap;
}

// File: contracts/interfaces/IProxyTransaction.sol

pragma solidity >=0.5.0;

interface IProxyTransaction {
    function forwardCall(address target, uint256 value, bytes calldata callData) external payable returns (bool success, bytes memory returnData);
}

// File: contracts/interfaces/IGetAuctionInfo.sol

pragma solidity 0.6.12;

interface IGetAuctionInfo {
    function onAuction(address uToken, uint nftIndexForUToken) external view returns (bool);
}

// File: contracts/interfaces/IConverter.sol

pragma solidity 0.6.12;

interface IConverter {
    function setConverterTimeLock(address _converterTimeLock) external;
}

// File: @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol



pragma solidity >=0.6.0 <0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable {
    using SafeMathUpgradeable for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

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

// File: @openzeppelin/contracts-upgradeable/token/ERC20/ERC20BurnableUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable {
    function __ERC20Burnable_init() internal initializer {
        __Context_init_unchained();
        __ERC20Burnable_init_unchained();
    }

    function __ERC20Burnable_init_unchained() internal initializer {
    }
    using SafeMathUpgradeable for uint256;

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
    uint256[50] private __gap;
}

// File: contracts/abstract/ERC20VotesUpgradeable.sol

pragma solidity 0.6.12;


/**
 * Expand the ERC20Burnable contract to include a governance voting feature.
 */
abstract contract ERC20VotesUpgradeable is ERC20BurnableUpgradeable  {
    using SafeMathUpgradeable for uint256;

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @dev A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
    external
    view
    returns (address)
    {
        return _delegates[delegator];
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
    external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "UNIC::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "UNIC::delegateBySig: invalid nonce");
        require(now <= expiry, "UNIC::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
    external
    view
    returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
    external
    view
    returns (uint256)
    {
        require(blockNumber < block.number, "UNIC::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
    internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying UNICs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
    internal
    {
        uint32 blockNumber = safe32(block.number, "UNIC::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

// File: contracts/Converter.sol

pragma solidity 0.6.12;












contract Converter is IConverter, IProxyTransaction, Initializable, ERC1155ReceiverUpgradeable, ERC20VotesUpgradeable, OwnableUpgradeable {
    using SafeMathUpgradeable for uint;

    // List of NFTs that have been deposited
    struct NFT {
        address contractAddr;
        uint256 tokenId;
        uint256 amount;
        uint256 triggerPrice;
    }

    mapping(uint256 => NFT) public nfts;
    // Current index and length of nfts
    uint256 public currentNFTIndex = 0;
    // If active, NFTs can’t be withdrawn
    bool public active = false;
    address public issuer;
    uint256 public cap;
    address public converterTimeLock;

    IUnicFactory public factory;

    event Deposited(uint256[] tokenIDs, uint256[] amounts, uint256[] triggerPrices, address indexed contractAddr);
    event Refunded();
    event Issued();
    event PriceUpdate(uint256[] indexed nftIndex, uint[] price);

    bytes private constant VALIDATOR = bytes('JCMY');

    function initialize (
        string memory name,
        string memory symbol,
        address _issuer,
        address _factory
    )
        public
        initializer
        returns (bool)
    {
        require(_issuer != address(0) && _factory != address(0), "Invalid address");
        __Ownable_init();
        __ERC20_init(name, symbol);
        issuer = _issuer;
        factory = IUnicFactory(_factory);
        cap = factory.uTokenSupply();
        return true;
    }

    function burn(address _account, uint256 _amount) public {
        require(msg.sender == factory.auctionHandler(), "Converter: Only auction handler can burn");
        super._burn(_account, _amount);
    }

    function setCurator(address _issuer) external {
        require(active, "Converter: Tokens have not been issued yet");
        require(msg.sender == factory.owner() || msg.sender == issuer, "Converter: Not vault manager or issuer");

        issuer = _issuer;
    }

    function setTriggers(uint256[] calldata _nftIndex, uint256[] calldata _triggerPrices) external {
        require(msg.sender == issuer, "Converter: Only issuer can set trigger prices");
        require(_nftIndex.length <= 50, "Converter: A maximum of 50 trigger prices can be set at once");
        require(_nftIndex.length == _triggerPrices.length, "Array length mismatch");
        for (uint8 i = 0; i < 50; i++) {
            if (_nftIndex.length == i) {
                break;
            }
            // require(!IGetAuctionInfo(factory.auctionHandler()).onAuction(address(this), _nftIndex[i]), "Converter: Already on auction");
            nfts[_nftIndex[i]].triggerPrice = _triggerPrices[i];
        }

        emit PriceUpdate(_nftIndex, _triggerPrices);
    }

    function setConverterTimeLock(address _converterTimeLock) public override {
        require(msg.sender == address(factory), "Converter: Only factory can set converterTimeLock");
        require(_converterTimeLock != address(0), "Invalid address");
        converterTimeLock = _converterTimeLock;
    }

    // deposits an nft using the transferFrom action of the NFT contractAddr
    function deposit(uint256[] calldata tokenIDs, uint256[] calldata amounts, uint256[] calldata triggerPrices, address contractAddr) external {
        require(msg.sender == issuer, "Converter: Only issuer can deposit");
        require(tokenIDs.length <= 50, "Converter: A maximum of 50 tokens can be deposited in one go");
        require(tokenIDs.length > 0, "Converter: You must specify at least one token ID");
        require(tokenIDs.length == triggerPrices.length, "Array length mismatch");

        if (ERC165CheckerUpgradeable.supportsInterface(contractAddr, 0xd9b67a26)){
            IERC1155Upgradeable(contractAddr).safeBatchTransferFrom(msg.sender, address(this), tokenIDs, amounts, VALIDATOR);

            for (uint8 i = 0; i < 50; i++){
                if (tokenIDs.length == i){
                    break;
                }
                nfts[currentNFTIndex++] = NFT(contractAddr, tokenIDs[i], amounts[i], triggerPrices[i]);
            }
        }
        else {
            for (uint8 i = 0; i < 50; i++){
                if (tokenIDs.length == i){
                    break;
                }
                IERC721Upgradeable(contractAddr).transferFrom(msg.sender, address(this), tokenIDs[i]);
                nfts[currentNFTIndex++] = NFT(contractAddr, tokenIDs[i], 1, triggerPrices[i]);
            }
        }

        emit Deposited(tokenIDs, amounts, triggerPrices, contractAddr);
    }

    // Function that locks NFT collateral and issues the uTokens to the issuer
    function issue() external {
        require(msg.sender == issuer, "Converter: Only issuer can issue the tokens");
        require(active == false, "Converter: Token is already active");

        active = true;
        address feeTo = factory.feeTo();
        uint256 feeAmount = 0;
        if (feeTo != address(0)) {
            feeAmount = cap.div(factory.feeDivisor());
            _mint(feeTo, feeAmount);
        }

        uint256 amount = cap - feeAmount;
        _mint(issuer, amount);

        if (!factory.airdropEnabled()) {
            emit Issued();
            return;
        }

        if (!factory.receivedAirdrop(msg.sender)) {
            bool airdropEligible = false;
            for (uint8 i = 0; i < currentNFTIndex; i++) {
                if (factory.isAirdropCollection(nfts[i].contractAddr)) {
                    airdropEligible = true;
                    break;
                }
            }
            if (airdropEligible) {
                if (IERC20Upgradeable(factory.unic()).balanceOf(address(factory)) < factory.airdropAmount()) {
                    emit Issued();
                    return;
                }
                factory.setAirdropReceived(msg.sender);
                IERC20Upgradeable(factory.unic()).transferFrom(address(factory), msg.sender, factory.airdropAmount());
            }
        }

        emit Issued();
    }

    // Function that allows NFTs to be refunded (prior to issue being called)
    function refund(address _to) external {
        require(!active, "Converter: Contract is already active - cannot refund");
        require(msg.sender == issuer, "Converter: Only issuer can refund");

        // Only transfer maximum of 50 at a time to limit gas per call
        uint8 _i = 0;
        uint256 _index = currentNFTIndex;
        bytes memory data;

        while (_index > 0 && _i < 50){
            NFT memory nft = nfts[_index - 1];

            if (ERC165CheckerUpgradeable.supportsInterface(nft.contractAddr, 0xd9b67a26)){
                IERC1155Upgradeable(nft.contractAddr).safeTransferFrom(address(this), _to, nft.tokenId, nft.amount, data);
            }
            else {
                IERC721Upgradeable(nft.contractAddr).safeTransferFrom(address(this), _to, nft.tokenId);
            }

            delete nfts[_index - 1];

            _index--;
            _i++;
        }

        currentNFTIndex = _index;

        emit Refunded();
    }

    function claimNFT(uint256 _nftIndex, address _to) external returns (bool) {
        require(msg.sender == factory.auctionHandler(), "Converter: Not auction handler");

        if (ERC165CheckerUpgradeable.supportsInterface(nfts[_nftIndex].contractAddr, 0xd9b67a26)){
            bytes memory data;
            IERC1155Upgradeable(nfts[_nftIndex].contractAddr).safeTransferFrom(address(this), _to, nfts[_nftIndex].tokenId, nfts[_nftIndex].amount, data);
        }
        else {
            IERC721Upgradeable(nfts[_nftIndex].contractAddr).safeTransferFrom(address(this), _to, nfts[_nftIndex].tokenId);
        }

        return true;
    }

    /**
     * ERC1155 Token ERC1155Receiver
     */
    function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _value, bytes calldata _data) override external returns(bytes4) {
        if(keccak256(_data) == keccak256(VALIDATOR)){
            return 0xf23a6e61;
        }
    }

    function onERC1155BatchReceived(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) override external returns(bytes4) {
        if(keccak256(_data) == keccak256(VALIDATOR)){
            return 0xbc197c81;
        }
    }

    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);
        // Move voting rights
        _moveDelegates(_delegates[from], _delegates[to], amount);
    }

    /**
     * @dev implements the proxy transaction used by {ConverterTimeLock-executeTransaction}
     */
    function forwardCall(address target, uint256 value, bytes calldata callData) external override payable returns (bool success, bytes memory returnData) {
        require(target != address(factory), "Converter: No proxy transactions calling factory allowed");
        require(target != address(factory.unic()), "Converter: No proxy transactions calling unic allowed");
        require(msg.sender == converterTimeLock, "Converter: Caller is not the converterTimeLock contract");
        return target.call{value: value}(callData);
    }

    function getBlockTimestamp() internal view returns (uint) {
        // solium-disable-next-line security/no-block-members
        return block.timestamp;
    }
}

// File: contracts/AuctionHandler.sol

pragma solidity 0.6.12;






contract AuctionHandler is Initializable, OwnableUpgradeable {
    using SafeMathUpgradeable for uint;

    struct AuctionInfo {
        uint startTime;
        uint endTime;
        address uToken;
        uint256 nftIndexForUToken;
        bool claimed;
    }

    struct Bid {
        address bidder;
        uint256 amount;
    }

    // Info of each pool.
    AuctionInfo[] public auctionInfo;

    // Auction index to bid
    mapping(uint256 => Bid) public bids;
    // Auction index to user address to amount
    mapping(uint256 => mapping(address => uint256)) public bidRefunds;
    // uToken address to NFT index to auction index
    mapping(address => mapping(uint256 => uint256)) public auctionIndex;
    // uToken address to NFT index to bool
    mapping(address => mapping(uint256 => bool)) public auctionStarted;
    // uToken address to vault balances
    mapping(address => uint256) public vaultBalances;

    address public factory;
    // 3 days
    uint public duration;
    // 105
    uint8 public minBidMultiplier;
    // 5 minutes?
    uint public auctionExtension;
    // 100 (1%)
    uint8 public feeDivisor;

    address public feeToSetter;
    address public feeTo;

    event AuctionCreated(uint256 indexed auctionId, address indexed uToken, uint256 nftIndexForUToken, uint startTime, uint indexed endTime);
    event BidCreated(uint256 indexed auctionId, address indexed bidder, uint256 amount, uint indexed endTime);
    event BidRemoved(uint256 indexed auctionId, address indexed bidder);
    event ClaimedNFT(uint256 indexed auctionId, address indexed winner);

    function initialize(
        address _factory,
        uint _duration,
        uint8 _minBidMultiplier,
        uint _auctionExtension,
        uint8 _feeDivisor,
        address _feeToSetter,
        address _feeTo
    ) public initializer {
        require(_factory != address(0) && _feeToSetter != address(0) && _feeTo != address(0), "Invalid address");
        require(_minBidMultiplier > 100 && _minBidMultiplier < 200, "Invalid multiplier");
        require(_feeDivisor > 1, "Invalid fee divisor");
        require(_feeDivisor > uint256(100).div(uint256(100).mul(_minBidMultiplier).div(100).sub(100)), "Invalid fee vs multiplier");
        __Ownable_init();
        factory = _factory;
        duration = _duration;
        minBidMultiplier = _minBidMultiplier;
        auctionExtension = _auctionExtension;
        feeDivisor = _feeDivisor;
        feeToSetter = _feeToSetter;
        feeTo = _feeTo;
    }

    function auctionLength() external view returns (uint256) {
        return auctionInfo.length;
    }

    function newAuction(address _uToken, uint256 _nftIndexForUToken) public payable {
        require(IUnicFactory(factory).getUToken(_uToken) != 0 || IUnicFactory(factory).uTokens(0) == _uToken,
            "AuctionHandler: uToken contract must be valid");
        require(Converter(_uToken).active(), "AuctionHandler: Can not bid on inactive uToken");
        (address contractAddr, , , uint256 triggerPrice) = Converter(_uToken).nfts(_nftIndexForUToken);
        // Check that nft index exists on vault contract
        require(contractAddr != address(0), "AuctionHandler: NFT index must exist");
        // Check that bid meets reserve price
        require(triggerPrice <= msg.value, "AuctionHandler: Starting bid must be higher than trigger price");
        require(!auctionStarted[_uToken][_nftIndexForUToken], "AuctionHandler: NFT already on auction");
        auctionStarted[_uToken][_nftIndexForUToken] = true;

        uint256 currentIndex = auctionInfo.length;
        uint auctionEndTime = getBlockTimestamp().add(duration);

        auctionInfo.push(
            AuctionInfo({
                startTime: getBlockTimestamp(),
                endTime: auctionEndTime,
                uToken: _uToken,
                nftIndexForUToken: _nftIndexForUToken,
                claimed: false
            })
        );

        auctionIndex[_uToken][_nftIndexForUToken] = currentIndex;
        uint256 fee = msg.value.div(feeDivisor);
        vaultBalances[_uToken] = vaultBalances[_uToken].add(msg.value.sub(fee));
        bids[currentIndex] = Bid(msg.sender, msg.value);
        sendFee(fee);

        emit AuctionCreated(currentIndex, _uToken, _nftIndexForUToken, getBlockTimestamp(), auctionEndTime);
        emit BidCreated(currentIndex, msg.sender, msg.value, auctionEndTime);
    }

    function bid(uint256 _auctionId) public payable {
        AuctionInfo storage thisAuction = auctionInfo[_auctionId];
        require(getBlockTimestamp() < thisAuction.endTime, "AuctionHandler: Auction for NFT ended");
        require(Converter(thisAuction.uToken).active(), "AuctionHandler: Can not bid on inactive uToken");

        Bid storage topBid = bids[_auctionId];
        require(topBid.bidder != msg.sender, "AuctionHandler: You have an active bid");
        require(topBid.amount.mul(minBidMultiplier) <= msg.value.mul(100), "AuctionHandler: Bid too low");
        require(bidRefunds[_auctionId][msg.sender] == 0, "AuctionHandler: Collect bid refund first");

        // Case where new top bid occurs near end time
        // In this case we add an extension to the auction
        if(getBlockTimestamp() > thisAuction.endTime.sub(auctionExtension)) {
            thisAuction.endTime = getBlockTimestamp().add(auctionExtension);
        }

        bidRefunds[_auctionId][topBid.bidder] = topBid.amount;
        uint256 fee = (msg.value.sub(topBid.amount)).div(feeDivisor);
        vaultBalances[thisAuction.uToken] = vaultBalances[thisAuction.uToken].add(msg.value).sub(topBid.amount).sub(fee);

        topBid.bidder = msg.sender;
        topBid.amount = msg.value;

        sendFee(fee);

        emit BidCreated(_auctionId, msg.sender, msg.value, thisAuction.endTime);
    }

    function unbid(uint256 _auctionId) public {
        Bid memory topBid = bids[_auctionId];
        require(topBid.bidder != msg.sender, "AuctionHandler: Top bidder can not unbid");

        uint256 refundAmount = bidRefunds[_auctionId][msg.sender];
        require(refundAmount > 0, "AuctionHandler: No bid found");
        bidRefunds[_auctionId][msg.sender] = 0;
        (bool sent, bytes memory data) = msg.sender.call{value: refundAmount}("");
        require(sent, "AuctionHandler: Failed to send Ether");

        emit BidRemoved(_auctionId, msg.sender);
    }

    // Claim NFT if address is winning bidder
    function claim(uint256 _auctionId) public {
        AuctionInfo storage thisAuction = auctionInfo[_auctionId];
        require(getBlockTimestamp() > thisAuction.endTime, "AuctionHandler: Auction is not over");
        require(!thisAuction.claimed, "AuctionHandler: Already claimed");
        Bid memory topBid = bids[_auctionId];
        require(msg.sender == topBid.bidder, "AuctionHandler: Only winner can claim");

        thisAuction.claimed = true;

        require(Converter(thisAuction.uToken).claimNFT(thisAuction.nftIndexForUToken, topBid.bidder), "AuctionHandler: Claim failed");

        emit ClaimedNFT(_auctionId, topBid.bidder);
    }

    function burnAndRedeem(address _uToken, uint256 _amount) public {
        require(vaultBalances[_uToken] > 0, "AuctionHandler: No vault balance to redeem from");

        uint256 redeemAmount = _amount.mul(vaultBalances[_uToken]).div(IERC20Upgradeable(_uToken).totalSupply());
        Converter(_uToken).burnFrom(msg.sender, _amount);
        vaultBalances[_uToken] = vaultBalances[_uToken].sub(redeemAmount);

        // Redeem ETH corresponding to uToken amount
        (bool sent, bytes memory data) = msg.sender.call{value: redeemAmount}("");
        require(sent, "AuctionHandler: Failed to send Ether");
    }

    // This function is for fee-taking
    function sendFee(uint256 _fees) internal {
        // Send fee to feeTo address
        (bool sent, bytes memory data) = feeTo.call{value: _fees}("");
        require(sent, "AuctionHandler: Failed to send Ether");
    }

    function setFactory(address _factory) public onlyOwner {
        factory = _factory;
    }

    function setAuctionParameters(uint _duration, uint8 _minBidMultiplier, uint _auctionExtension, uint8 _feeDivisor) public onlyOwner {
        require(_duration > 0 && _auctionExtension > 0, "AuctionHandler: Invalid parameters");
        require(_minBidMultiplier > 100 && _minBidMultiplier < 200, "Invalid multiplier");
        require(_feeDivisor > 1, "Invalid fee divisor");
        require(_feeDivisor > uint256(100).div(uint256(100).mul(_minBidMultiplier).div(100).sub(100)), "Invalid fee vs multiplier");
        duration = _duration;
        minBidMultiplier = _minBidMultiplier;
        auctionExtension = _auctionExtension;
        feeDivisor = _feeDivisor;
    }

    function setFeeTo(address _feeTo) public {
        require(msg.sender == feeToSetter, "AuctionHandler: Not feeToSetter");
        require(_feeTo != address(0), "AuctionHandler: Fee address cannot be zero address");
        feeTo = _feeTo;
    }

    function setFeeToSetter(address _feeToSetter) public {
        require(msg.sender == feeToSetter, "AuctionHandler: Not feeToSetter");
        feeToSetter = _feeToSetter;
    }

    function getBlockTimestamp() internal view returns (uint) {
        // solium-disable-next-line security/no-block-members
        return block.timestamp;
    }

    function onAuction(address uToken, uint256 nftIndexForUToken) external view returns (bool) {
        return auctionStarted[uToken][nftIndexForUToken];
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"uToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftIndexForUToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"BidCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"}],"name":"BidRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"winner","type":"address"}],"name":"ClaimedNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"auctionExtension","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionInfo","outputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"address","name":"uToken","type":"address"},{"internalType":"uint256","name":"nftIndexForUToken","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionId","type":"uint256"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"bidRefunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bids","outputs":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_uToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnAndRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDivisor","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint8","name":"_minBidMultiplier","type":"uint8"},{"internalType":"uint256","name":"_auctionExtension","type":"uint256"},{"internalType":"uint8","name":"_feeDivisor","type":"uint8"},{"internalType":"address","name":"_feeToSetter","type":"address"},{"internalType":"address","name":"_feeTo","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minBidMultiplier","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_uToken","type":"address"},{"internalType":"uint256","name":"_nftIndexForUToken","type":"uint256"}],"name":"newAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"uToken","type":"address"},{"internalType":"uint256","name":"nftIndexForUToken","type":"uint256"}],"name":"onAuction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint8","name":"_minBidMultiplier","type":"uint8"},{"internalType":"uint256","name":"_auctionExtension","type":"uint256"},{"internalType":"uint8","name":"_feeDivisor","type":"uint8"}],"name":"setAuctionParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"name":"setFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeTo","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"name":"setFeeToSetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionId","type":"uint256"}],"name":"unbid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vaultBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50614018806100206000396000f3fe6080604052600436106101b75760003560e01c8063715018a6116100ec578063afb3e63e1161008a578063eba39dab11610064578063eba39dab1461090b578063efe114cf1461097a578063f2fde38b146109d5578063f46901ed14610a26576101b7565b8063afb3e63e1461083a578063bceb4bdb1461089f578063c45a0155146108ca576101b7565b8063957a867c116100c6578063957a867c146106795780639a36f932146106fc5780639dd886cf1461072a578063a2e74af6146107e9576101b7565b8063715018a6146105b05780638da5cb5b146105c7578063920605f514610608576101b7565b80632788aeb211610159578063379607f511610133578063379607f51461048a5780634423c5f1146104c5578063454a2ab3146105315780635bb478081461055f576101b7565b80632788aeb214610391578063325c25a21461040057806334db264b1461042b576101b7565b80630e4cfe97116101955780630e4cfe971461028c5780630f9e39bf146102c75780630fb5a6b4146102f55780631e6871a914610320576101b7565b8063017e7e58146101bc57806302923878146101fd578063094b74151461024b575b600080fd5b3480156101c857600080fd5b506101d1610a77565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102496004803603604081101561021357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a9d565b005b34801561025757600080fd5b506102606113be565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561029857600080fd5b506102c5600480360360208110156102af57600080fd5b81019080803590602001909291905050506113e4565b005b3480156102d357600080fd5b506102dc611723565b604051808260ff16815260200191505060405180910390f35b34801561030157600080fd5b5061030a611736565b6040518082815260200191505060405180910390f35b34801561032c57600080fd5b506103796004803603604081101561034357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061173c565b60405180821515815260200191505060405180910390f35b34801561039d57600080fd5b506103ea600480360360408110156103b457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061176b565b6040518082815260200191505060405180910390f35b34801561040c57600080fd5b50610415611790565b6040518082815260200191505060405180910390f35b34801561043757600080fd5b506104886004803603608081101561044e57600080fd5b8101908080359060200190929190803560ff16906020019092919080359060200190929190803560ff16906020019092919050505061179d565b005b34801561049657600080fd5b506104c3600480360360208110156104ad57600080fd5b8101908080359060200190929190505050611ac3565b005b3480156104d157600080fd5b506104fe600480360360208110156104e857600080fd5b8101908080359060200190929190505050611e8e565b604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b61055d6004803603602081101561054757600080fd5b8101908080359060200190929190505050611ed2565b005b34801561056b57600080fd5b506105ae6004803603602081101561058257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612524565b005b3480156105bc57600080fd5b506105c5612617565b005b3480156105d357600080fd5b506105dc612787565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561061457600080fd5b506106616004803603604081101561062b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506127b1565b60405180821515815260200191505060405180910390f35b34801561068557600080fd5b506106b26004803603602081101561069c57600080fd5b8101908080359060200190929190505050612819565b604051808681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182151581526020019550505050505060405180910390f35b34801561070857600080fd5b50610711612889565b604051808260ff16815260200191505060405180910390f35b34801561073657600080fd5b506107e7600480360360e081101561074d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803560ff16906020019092919080359060200190929190803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061289c565b005b3480156107f557600080fd5b506108386004803603602081101561080c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612d8d565b005b34801561084657600080fd5b506108896004803603602081101561085d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612e94565b6040518082815260200191505060405180910390f35b3480156108ab57600080fd5b506108b4612eac565b6040518082815260200191505060405180910390f35b3480156108d657600080fd5b506108df612eb2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561091757600080fd5b506109646004803603604081101561092e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612ed8565b6040518082815260200191505060405180910390f35b34801561098657600080fd5b506109d36004803603604081101561099d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612efd565b005b3480156109e157600080fd5b50610a24600480360360208110156109f857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613264565b005b348015610a3257600080fd5b50610a7560048036036020811015610a4957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613459565b005b607060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166325b26df6846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610b2857600080fd5b505afa158015610b3c573d6000803e3d6000fd5b505050506040513d6020811015610b5257600080fd5b8101908080519060200190929190505050141580610c4957508173ffffffffffffffffffffffffffffffffffffffff16606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633c402de960006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610bf657600080fd5b505afa158015610c0a573d6000803e3d6000fd5b505050506040513d6020811015610c2057600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16145b610c9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180613d26602d913960400191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166302fb0c5e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ce457600080fd5b505afa158015610cf8573d6000803e3d6000fd5b505050506040513d6020811015610d0e57600080fd5b8101908080519060200190929190505050610d74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613f42602e913960400191505060405180910390fd5b6000808373ffffffffffffffffffffffffffffffffffffffff1663265aa621846040518263ffffffff1660e01b81526004018082815260200191505060806040518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d6080811015610df257600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050935050509150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613de66024913960400191505060405180910390fd5b34811115610f06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603e815260200180613eb1603e913960400191505060405180910390fd5b606960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060009054906101000a900460ff1615610fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613fbd6026913960400191505060405180910390fd5b6001606960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060006101000a81548160ff02191690831515021790555060006065805490509050600061104b606c5461103d6135e6565b6135ee90919063ffffffff16565b905060656040518060a001604052806110626135e6565b81526020018381526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152602001600015158152509080600181540180825580915050600190039060005260206000209060050201600090919091909150600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550505081606860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008781526020019081526020016000208190555060006111c2606f60009054906101000a900460ff1660ff163461367690919063ffffffff16565b90506112286111da82346136ff90919063ffffffff16565b606a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135ee90919063ffffffff16565b606a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060405180604001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001348152506066600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015590505061130681613782565b818773ffffffffffffffffffffffffffffffffffffffff16847f05f9bf100dd0ca9f37f08e0526690286d357ed7d6c5a4ac29730440b6e2dfd62896113496135e6565b604051808381526020018281526020019250505060405180910390a4813373ffffffffffffffffffffffffffffffffffffffff16847f77689ebf788c0f9d9e045fa81e22903cc7a1e34686c3fa4874c9a6a4d8a239f5346040518082815260200191505060405180910390a450505050505050565b606f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6113ec613cd0565b606660008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505090503373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156114f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180613f706028913960400191505060405180910390fd5b60006067600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116115c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41756374696f6e48616e646c65723a204e6f2062696420666f756e640000000081525060200191505060405180910390fd5b60006067600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600060603373ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d8060008114611678576040519150601f19603f3d011682016040523d82523d6000602084013e61167d565b606091505b5091509150816116d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d536024913960400191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16857ffb280d892235c44edc6a8f273938a4f3ad3b134cc20ff8b50d5ee2e13a1d27a260405160405180910390a35050505050565b606d60009054906101000a900460ff1681565b606c5481565b60696020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6067602052816000526040600020602052806000526040600020600091509150505481565b6000606580549050905090565b6117a561386b565b73ffffffffffffffffffffffffffffffffffffffff166117c3612787565b73ffffffffffffffffffffffffffffffffffffffff161461184c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008411801561185c5750600082115b6118b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613e606022913960400191505060405180910390fd5b60648360ff161180156118c7575060c88360ff16105b611939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e76616c6964206d756c7469706c696572000000000000000000000000000081525060200191505060405180910390fd5b60018160ff16116119b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f496e76616c6964206665652064697669736f720000000000000000000000000081525060200191505060405180910390fd5b611a026119f260646119e460646119d68860ff16606461387390919063ffffffff16565b61367690919063ffffffff16565b6136ff90919063ffffffff16565b606461367690919063ffffffff16565b8160ff1611611a79576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f496e76616c696420666565207673206d756c7469706c6965720000000000000081525060200191505060405180910390fd5b83606c8190555082606d60006101000a81548160ff021916908360ff16021790555081606e8190555080606f60006101000a81548160ff021916908360ff16021790555050505050565b600060658281548110611ad257fe5b906000526020600020906005020190508060010154611aef6135e6565b11611b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180613d9d6023913960400191505060405180910390fd5b8060040160009054906101000a900460ff1615611bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41756374696f6e48616e646c65723a20416c726561647920636c61696d65640081525060200191505060405180910390fd5b611bd2613cd0565b606660008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815250509050806000015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613d016025913960400191505060405180910390fd5b60018260040160006101000a81548160ff0219169083151502179055508160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166362432b58836003015483600001516040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b158015611d9457600080fd5b505af1158015611da8573d6000803e3d6000fd5b505050506040513d6020811015611dbe57600080fd5b8101908080519060200190929190505050611e41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41756374696f6e48616e646c65723a20436c61696d206661696c65640000000081525060200191505060405180910390fd5b806000015173ffffffffffffffffffffffffffffffffffffffff16837f6c31918c2dabe0275b23bef69f1a9e93053553a1e9fc048dde2389137628a8dd60405160405180910390a3505050565b60666020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b600060658281548110611ee157fe5b906000526020600020906005020190508060010154611efe6135e6565b10611f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613f986025913960400191505060405180910390fd5b8060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302fb0c5e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611fbe57600080fd5b505afa158015611fd2573d6000803e3d6000fd5b505050506040513d6020811015611fe857600080fd5b810190808051906020019092919050505061204e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613f42602e913960400191505060405180910390fd5b60006066600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561210e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613dc06026913960400191505060405180910390fd5b61212260643461387390919063ffffffff16565b61214b606d60009054906101000a900460ff1660ff16836001015461387390919063ffffffff16565b11156121bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f41756374696f6e48616e646c65723a2042696420746f6f206c6f77000000000081525060200191505060405180910390fd5b60006067600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414612268576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180613e0a6028913960400191505060405180910390fd5b612281606e5483600101546136ff90919063ffffffff16565b6122896135e6565b11156122b4576122ab606e5461229d6135e6565b6135ee90919063ffffffff16565b82600101819055505b80600101546067600085815260200190815260200160002060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600061236e606f60009054906101000a900460ff1660ff166123608460010154346136ff90919063ffffffff16565b61367690919063ffffffff16565b905061240e8161240084600101546123f234606a60008a60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135ee90919063ffffffff16565b6136ff90919063ffffffff16565b6136ff90919063ffffffff16565b606a60008560020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550338260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503482600101819055506124ca81613782565b82600101543373ffffffffffffffffffffffffffffffffffffffff16857f77689ebf788c0f9d9e045fa81e22903cc7a1e34686c3fa4874c9a6a4d8a239f5346040518082815260200191505060405180910390a450505050565b61252c61386b565b73ffffffffffffffffffffffffffffffffffffffff1661254a612787565b73ffffffffffffffffffffffffffffffffffffffff16146125d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80606b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61261f61386b565b73ffffffffffffffffffffffffffffffffffffffff1661263d612787565b73ffffffffffffffffffffffffffffffffffffffff16146126c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000606960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff16905092915050565b6065818154811061282657fe5b90600052602060002090600502016000915090508060000154908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030154908060040160009054906101000a900460ff16905085565b606f60009054906101000a900460ff1681565b600060019054906101000a900460ff16806128bb57506128ba6138f9565b5b806128d1575060008054906101000a900460ff16155b612926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612976576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16141580156129e05750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015612a195750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b612a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f496e76616c69642061646472657373000000000000000000000000000000000081525060200191505060405180910390fd5b60648660ff16118015612aa1575060c88660ff16105b612b13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e76616c6964206d756c7469706c696572000000000000000000000000000081525060200191505060405180910390fd5b60018460ff1611612b8c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f496e76616c6964206665652064697669736f720000000000000000000000000081525060200191505060405180910390fd5b612bdc612bcc6064612bbe6064612bb08b60ff16606461387390919063ffffffff16565b61367690919063ffffffff16565b6136ff90919063ffffffff16565b606461367690919063ffffffff16565b8460ff1611612c53576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f496e76616c696420666565207673206d756c7469706c6965720000000000000081525060200191505060405180910390fd5b612c5b61390a565b87606b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086606c8190555085606d60006101000a81548160ff021916908360ff16021790555084606e8190555083606f60006101000a81548160ff021916908360ff16021790555082606f60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081607060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015612d835760008060016101000a81548160ff0219169083151502179055505b5050505050505050565b606f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612e50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41756374696f6e48616e646c65723a204e6f7420666565546f5365747465720081525060200191505060405180910390fd5b80606f60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606a6020528060005260406000206000915090505481565b606e5481565b606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6068602052816000526040600020602052806000526040600020600091509150505481565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411612f95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613e82602f913960400191505060405180910390fd5b600061307b8373ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612fe057600080fd5b505afa158015612ff4573d6000803e3d6000fd5b505050506040513d602081101561300a57600080fd5b810190808051906020019092919050505061306d606a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548561387390919063ffffffff16565b61367690919063ffffffff16565b90508273ffffffffffffffffffffffffffffffffffffffff166379cc679033846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156130ee57600080fd5b505af1158015613102573d6000803e3d6000fd5b5050505061315881606a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546136ff90919063ffffffff16565b606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600060603373ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d80600081146131fd576040519150601f19603f3d011682016040523d82523d6000602084013e613202565b606091505b50915091508161325d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d536024913960400191505060405180910390fd5b5050505050565b61326c61386b565b73ffffffffffffffffffffffffffffffffffffffff1661328a612787565b73ffffffffffffffffffffffffffffffffffffffff1614613313576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613399576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613d776026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461351c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41756374696f6e48616e646c65723a204e6f7420666565546f5365747465720081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156135a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613f106032913960400191505060405180910390fd5b80607060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600042905090565b60008082840190508381101561366c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008082116136ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b8183816136f657fe5b04905092915050565b600082821115613777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60006060607060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d8060008114613806576040519150601f19603f3d011682016040523d82523d6000602084013e61380b565b606091505b509150915081613866576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d536024913960400191505060405180910390fd5b505050565b600033905090565b60008083141561388657600090506138f3565b600082840290508284828161389757fe5b04146138ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613eef6021913960400191505060405180910390fd5b809150505b92915050565b600061390430613a18565b15905090565b600060019054906101000a900460ff168061392957506139286138f9565b5b8061393f575060008054906101000a900460ff16155b613994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156139e4576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6139ec613a2b565b6139f4613b29565b8015613a155760008060016101000a81548160ff0219169083151502179055505b50565b600080823b905060008111915050919050565b600060019054906101000a900460ff1680613a4a5750613a496138f9565b5b80613a60575060008054906101000a900460ff16155b613ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015613b05576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015613b265760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613b485750613b476138f9565b5b80613b5e575060008054906101000a900460ff16155b613bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015613c03576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000613c0d61386b565b905080603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508015613ccd5760008060016101000a81548160ff0219169083151502179055505b50565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152509056fe41756374696f6e48616e646c65723a204f6e6c792077696e6e65722063616e20636c61696d41756374696f6e48616e646c65723a2075546f6b656e20636f6e7472616374206d7573742062652076616c696441756374696f6e48616e646c65723a204661696c656420746f2073656e642045746865724f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737341756374696f6e48616e646c65723a2041756374696f6e206973206e6f74206f76657241756374696f6e48616e646c65723a20596f75206861766520616e206163746976652062696441756374696f6e48616e646c65723a204e465420696e646578206d75737420657869737441756374696f6e48616e646c65723a20436f6c6c6563742062696420726566756e64206669727374496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656441756374696f6e48616e646c65723a20496e76616c696420706172616d657465727341756374696f6e48616e646c65723a204e6f207661756c742062616c616e636520746f2072656465656d2066726f6d41756374696f6e48616e646c65723a205374617274696e6720626964206d75737420626520686967686572207468616e2074726967676572207072696365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741756374696f6e48616e646c65723a2046656520616464726573732063616e6e6f74206265207a65726f206164647265737341756374696f6e48616e646c65723a2043616e206e6f7420626964206f6e20696e6163746976652075546f6b656e41756374696f6e48616e646c65723a20546f70206269646465722063616e206e6f7420756e62696441756374696f6e48616e646c65723a2041756374696f6e20666f72204e465420656e64656441756374696f6e48616e646c65723a204e465420616c7265616479206f6e2061756374696f6ea264697066735822122068a5dc8f1d5c731cb2d11c35460edf6c5b7158f3fa2bbaab06531018f2a6ff9064736f6c634300060c0033

Deployed Bytecode

0x6080604052600436106101b75760003560e01c8063715018a6116100ec578063afb3e63e1161008a578063eba39dab11610064578063eba39dab1461090b578063efe114cf1461097a578063f2fde38b146109d5578063f46901ed14610a26576101b7565b8063afb3e63e1461083a578063bceb4bdb1461089f578063c45a0155146108ca576101b7565b8063957a867c116100c6578063957a867c146106795780639a36f932146106fc5780639dd886cf1461072a578063a2e74af6146107e9576101b7565b8063715018a6146105b05780638da5cb5b146105c7578063920605f514610608576101b7565b80632788aeb211610159578063379607f511610133578063379607f51461048a5780634423c5f1146104c5578063454a2ab3146105315780635bb478081461055f576101b7565b80632788aeb214610391578063325c25a21461040057806334db264b1461042b576101b7565b80630e4cfe97116101955780630e4cfe971461028c5780630f9e39bf146102c75780630fb5a6b4146102f55780631e6871a914610320576101b7565b8063017e7e58146101bc57806302923878146101fd578063094b74151461024b575b600080fd5b3480156101c857600080fd5b506101d1610a77565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102496004803603604081101561021357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a9d565b005b34801561025757600080fd5b506102606113be565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561029857600080fd5b506102c5600480360360208110156102af57600080fd5b81019080803590602001909291905050506113e4565b005b3480156102d357600080fd5b506102dc611723565b604051808260ff16815260200191505060405180910390f35b34801561030157600080fd5b5061030a611736565b6040518082815260200191505060405180910390f35b34801561032c57600080fd5b506103796004803603604081101561034357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061173c565b60405180821515815260200191505060405180910390f35b34801561039d57600080fd5b506103ea600480360360408110156103b457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061176b565b6040518082815260200191505060405180910390f35b34801561040c57600080fd5b50610415611790565b6040518082815260200191505060405180910390f35b34801561043757600080fd5b506104886004803603608081101561044e57600080fd5b8101908080359060200190929190803560ff16906020019092919080359060200190929190803560ff16906020019092919050505061179d565b005b34801561049657600080fd5b506104c3600480360360208110156104ad57600080fd5b8101908080359060200190929190505050611ac3565b005b3480156104d157600080fd5b506104fe600480360360208110156104e857600080fd5b8101908080359060200190929190505050611e8e565b604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b61055d6004803603602081101561054757600080fd5b8101908080359060200190929190505050611ed2565b005b34801561056b57600080fd5b506105ae6004803603602081101561058257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612524565b005b3480156105bc57600080fd5b506105c5612617565b005b3480156105d357600080fd5b506105dc612787565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561061457600080fd5b506106616004803603604081101561062b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506127b1565b60405180821515815260200191505060405180910390f35b34801561068557600080fd5b506106b26004803603602081101561069c57600080fd5b8101908080359060200190929190505050612819565b604051808681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182151581526020019550505050505060405180910390f35b34801561070857600080fd5b50610711612889565b604051808260ff16815260200191505060405180910390f35b34801561073657600080fd5b506107e7600480360360e081101561074d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803560ff16906020019092919080359060200190929190803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061289c565b005b3480156107f557600080fd5b506108386004803603602081101561080c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612d8d565b005b34801561084657600080fd5b506108896004803603602081101561085d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612e94565b6040518082815260200191505060405180910390f35b3480156108ab57600080fd5b506108b4612eac565b6040518082815260200191505060405180910390f35b3480156108d657600080fd5b506108df612eb2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561091757600080fd5b506109646004803603604081101561092e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612ed8565b6040518082815260200191505060405180910390f35b34801561098657600080fd5b506109d36004803603604081101561099d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612efd565b005b3480156109e157600080fd5b50610a24600480360360208110156109f857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613264565b005b348015610a3257600080fd5b50610a7560048036036020811015610a4957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613459565b005b607060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166325b26df6846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610b2857600080fd5b505afa158015610b3c573d6000803e3d6000fd5b505050506040513d6020811015610b5257600080fd5b8101908080519060200190929190505050141580610c4957508173ffffffffffffffffffffffffffffffffffffffff16606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633c402de960006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610bf657600080fd5b505afa158015610c0a573d6000803e3d6000fd5b505050506040513d6020811015610c2057600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16145b610c9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180613d26602d913960400191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166302fb0c5e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ce457600080fd5b505afa158015610cf8573d6000803e3d6000fd5b505050506040513d6020811015610d0e57600080fd5b8101908080519060200190929190505050610d74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613f42602e913960400191505060405180910390fd5b6000808373ffffffffffffffffffffffffffffffffffffffff1663265aa621846040518263ffffffff1660e01b81526004018082815260200191505060806040518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d6080811015610df257600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050935050509150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613de66024913960400191505060405180910390fd5b34811115610f06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603e815260200180613eb1603e913960400191505060405180910390fd5b606960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060009054906101000a900460ff1615610fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613fbd6026913960400191505060405180910390fd5b6001606960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060006101000a81548160ff02191690831515021790555060006065805490509050600061104b606c5461103d6135e6565b6135ee90919063ffffffff16565b905060656040518060a001604052806110626135e6565b81526020018381526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152602001600015158152509080600181540180825580915050600190039060005260206000209060050201600090919091909150600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550505081606860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008781526020019081526020016000208190555060006111c2606f60009054906101000a900460ff1660ff163461367690919063ffffffff16565b90506112286111da82346136ff90919063ffffffff16565b606a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135ee90919063ffffffff16565b606a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060405180604001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001348152506066600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015590505061130681613782565b818773ffffffffffffffffffffffffffffffffffffffff16847f05f9bf100dd0ca9f37f08e0526690286d357ed7d6c5a4ac29730440b6e2dfd62896113496135e6565b604051808381526020018281526020019250505060405180910390a4813373ffffffffffffffffffffffffffffffffffffffff16847f77689ebf788c0f9d9e045fa81e22903cc7a1e34686c3fa4874c9a6a4d8a239f5346040518082815260200191505060405180910390a450505050505050565b606f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6113ec613cd0565b606660008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505090503373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156114f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180613f706028913960400191505060405180910390fd5b60006067600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116115c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41756374696f6e48616e646c65723a204e6f2062696420666f756e640000000081525060200191505060405180910390fd5b60006067600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600060603373ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d8060008114611678576040519150601f19603f3d011682016040523d82523d6000602084013e61167d565b606091505b5091509150816116d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d536024913960400191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16857ffb280d892235c44edc6a8f273938a4f3ad3b134cc20ff8b50d5ee2e13a1d27a260405160405180910390a35050505050565b606d60009054906101000a900460ff1681565b606c5481565b60696020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6067602052816000526040600020602052806000526040600020600091509150505481565b6000606580549050905090565b6117a561386b565b73ffffffffffffffffffffffffffffffffffffffff166117c3612787565b73ffffffffffffffffffffffffffffffffffffffff161461184c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008411801561185c5750600082115b6118b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613e606022913960400191505060405180910390fd5b60648360ff161180156118c7575060c88360ff16105b611939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e76616c6964206d756c7469706c696572000000000000000000000000000081525060200191505060405180910390fd5b60018160ff16116119b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f496e76616c6964206665652064697669736f720000000000000000000000000081525060200191505060405180910390fd5b611a026119f260646119e460646119d68860ff16606461387390919063ffffffff16565b61367690919063ffffffff16565b6136ff90919063ffffffff16565b606461367690919063ffffffff16565b8160ff1611611a79576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f496e76616c696420666565207673206d756c7469706c6965720000000000000081525060200191505060405180910390fd5b83606c8190555082606d60006101000a81548160ff021916908360ff16021790555081606e8190555080606f60006101000a81548160ff021916908360ff16021790555050505050565b600060658281548110611ad257fe5b906000526020600020906005020190508060010154611aef6135e6565b11611b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180613d9d6023913960400191505060405180910390fd5b8060040160009054906101000a900460ff1615611bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41756374696f6e48616e646c65723a20416c726561647920636c61696d65640081525060200191505060405180910390fd5b611bd2613cd0565b606660008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815250509050806000015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613d016025913960400191505060405180910390fd5b60018260040160006101000a81548160ff0219169083151502179055508160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166362432b58836003015483600001516040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b158015611d9457600080fd5b505af1158015611da8573d6000803e3d6000fd5b505050506040513d6020811015611dbe57600080fd5b8101908080519060200190929190505050611e41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f41756374696f6e48616e646c65723a20436c61696d206661696c65640000000081525060200191505060405180910390fd5b806000015173ffffffffffffffffffffffffffffffffffffffff16837f6c31918c2dabe0275b23bef69f1a9e93053553a1e9fc048dde2389137628a8dd60405160405180910390a3505050565b60666020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b600060658281548110611ee157fe5b906000526020600020906005020190508060010154611efe6135e6565b10611f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613f986025913960400191505060405180910390fd5b8060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302fb0c5e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611fbe57600080fd5b505afa158015611fd2573d6000803e3d6000fd5b505050506040513d6020811015611fe857600080fd5b810190808051906020019092919050505061204e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613f42602e913960400191505060405180910390fd5b60006066600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561210e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613dc06026913960400191505060405180910390fd5b61212260643461387390919063ffffffff16565b61214b606d60009054906101000a900460ff1660ff16836001015461387390919063ffffffff16565b11156121bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f41756374696f6e48616e646c65723a2042696420746f6f206c6f77000000000081525060200191505060405180910390fd5b60006067600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414612268576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180613e0a6028913960400191505060405180910390fd5b612281606e5483600101546136ff90919063ffffffff16565b6122896135e6565b11156122b4576122ab606e5461229d6135e6565b6135ee90919063ffffffff16565b82600101819055505b80600101546067600085815260200190815260200160002060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600061236e606f60009054906101000a900460ff1660ff166123608460010154346136ff90919063ffffffff16565b61367690919063ffffffff16565b905061240e8161240084600101546123f234606a60008a60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135ee90919063ffffffff16565b6136ff90919063ffffffff16565b6136ff90919063ffffffff16565b606a60008560020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550338260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503482600101819055506124ca81613782565b82600101543373ffffffffffffffffffffffffffffffffffffffff16857f77689ebf788c0f9d9e045fa81e22903cc7a1e34686c3fa4874c9a6a4d8a239f5346040518082815260200191505060405180910390a450505050565b61252c61386b565b73ffffffffffffffffffffffffffffffffffffffff1661254a612787565b73ffffffffffffffffffffffffffffffffffffffff16146125d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80606b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61261f61386b565b73ffffffffffffffffffffffffffffffffffffffff1661263d612787565b73ffffffffffffffffffffffffffffffffffffffff16146126c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000606960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff16905092915050565b6065818154811061282657fe5b90600052602060002090600502016000915090508060000154908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030154908060040160009054906101000a900460ff16905085565b606f60009054906101000a900460ff1681565b600060019054906101000a900460ff16806128bb57506128ba6138f9565b5b806128d1575060008054906101000a900460ff16155b612926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612976576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16141580156129e05750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015612a195750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b612a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f496e76616c69642061646472657373000000000000000000000000000000000081525060200191505060405180910390fd5b60648660ff16118015612aa1575060c88660ff16105b612b13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e76616c6964206d756c7469706c696572000000000000000000000000000081525060200191505060405180910390fd5b60018460ff1611612b8c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f496e76616c6964206665652064697669736f720000000000000000000000000081525060200191505060405180910390fd5b612bdc612bcc6064612bbe6064612bb08b60ff16606461387390919063ffffffff16565b61367690919063ffffffff16565b6136ff90919063ffffffff16565b606461367690919063ffffffff16565b8460ff1611612c53576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f496e76616c696420666565207673206d756c7469706c6965720000000000000081525060200191505060405180910390fd5b612c5b61390a565b87606b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086606c8190555085606d60006101000a81548160ff021916908360ff16021790555084606e8190555083606f60006101000a81548160ff021916908360ff16021790555082606f60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081607060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015612d835760008060016101000a81548160ff0219169083151502179055505b5050505050505050565b606f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612e50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41756374696f6e48616e646c65723a204e6f7420666565546f5365747465720081525060200191505060405180910390fd5b80606f60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606a6020528060005260406000206000915090505481565b606e5481565b606b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6068602052816000526040600020602052806000526040600020600091509150505481565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411612f95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613e82602f913960400191505060405180910390fd5b600061307b8373ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612fe057600080fd5b505afa158015612ff4573d6000803e3d6000fd5b505050506040513d602081101561300a57600080fd5b810190808051906020019092919050505061306d606a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548561387390919063ffffffff16565b61367690919063ffffffff16565b90508273ffffffffffffffffffffffffffffffffffffffff166379cc679033846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156130ee57600080fd5b505af1158015613102573d6000803e3d6000fd5b5050505061315881606a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546136ff90919063ffffffff16565b606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600060603373ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d80600081146131fd576040519150601f19603f3d011682016040523d82523d6000602084013e613202565b606091505b50915091508161325d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d536024913960400191505060405180910390fd5b5050505050565b61326c61386b565b73ffffffffffffffffffffffffffffffffffffffff1661328a612787565b73ffffffffffffffffffffffffffffffffffffffff1614613313576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613399576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613d776026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461351c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41756374696f6e48616e646c65723a204e6f7420666565546f5365747465720081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156135a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613f106032913960400191505060405180910390fd5b80607060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600042905090565b60008082840190508381101561366c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008082116136ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b8183816136f657fe5b04905092915050565b600082821115613777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60006060607060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d8060008114613806576040519150601f19603f3d011682016040523d82523d6000602084013e61380b565b606091505b509150915081613866576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d536024913960400191505060405180910390fd5b505050565b600033905090565b60008083141561388657600090506138f3565b600082840290508284828161389757fe5b04146138ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613eef6021913960400191505060405180910390fd5b809150505b92915050565b600061390430613a18565b15905090565b600060019054906101000a900460ff168061392957506139286138f9565b5b8061393f575060008054906101000a900460ff16155b613994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156139e4576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6139ec613a2b565b6139f4613b29565b8015613a155760008060016101000a81548160ff0219169083151502179055505b50565b600080823b905060008111915050919050565b600060019054906101000a900460ff1680613a4a5750613a496138f9565b5b80613a60575060008054906101000a900460ff16155b613ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015613b05576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015613b265760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613b485750613b476138f9565b5b80613b5e575060008054906101000a900460ff16155b613bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613e32602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015613c03576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000613c0d61386b565b905080603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508015613ccd5760008060016101000a81548160ff0219169083151502179055505b50565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152509056fe41756374696f6e48616e646c65723a204f6e6c792077696e6e65722063616e20636c61696d41756374696f6e48616e646c65723a2075546f6b656e20636f6e7472616374206d7573742062652076616c696441756374696f6e48616e646c65723a204661696c656420746f2073656e642045746865724f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737341756374696f6e48616e646c65723a2041756374696f6e206973206e6f74206f76657241756374696f6e48616e646c65723a20596f75206861766520616e206163746976652062696441756374696f6e48616e646c65723a204e465420696e646578206d75737420657869737441756374696f6e48616e646c65723a20436f6c6c6563742062696420726566756e64206669727374496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656441756374696f6e48616e646c65723a20496e76616c696420706172616d657465727341756374696f6e48616e646c65723a204e6f207661756c742062616c616e636520746f2072656465656d2066726f6d41756374696f6e48616e646c65723a205374617274696e6720626964206d75737420626520686967686572207468616e2074726967676572207072696365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741756374696f6e48616e646c65723a2046656520616464726573732063616e6e6f74206265207a65726f206164647265737341756374696f6e48616e646c65723a2043616e206e6f7420626964206f6e20696e6163746976652075546f6b656e41756374696f6e48616e646c65723a20546f70206269646465722063616e206e6f7420756e62696441756374696f6e48616e646c65723a2041756374696f6e20666f72204e465420656e64656441756374696f6e48616e646c65723a204e465420616c7265616479206f6e2061756374696f6ea264697066735822122068a5dc8f1d5c731cb2d11c35460edf6c5b7158f3fa2bbaab06531018f2a6ff9064736f6c634300060c0033

Deployed Bytecode Sourcemap

78308:9711:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79519:20;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;81004:1823;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;79486:26;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;84257:575;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;79347:29;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;79308:20;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;79093:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;78850:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;80895:101;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;86559:679;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;84887:660;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;78760:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;82835:1414;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;86459:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;22806:148;;;;;;;;;;;;;:::i;:::-;;22155:87;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;87858:158;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;78690:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79454:23;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;79953:934;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;87502:178;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;79207:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;79402:28;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;79264:22;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;78975:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85555:625;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;23109:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;87246:248;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;79519:20;;;;;;;;;;;;;:::o;81004:1823::-;81147:1;81116:7;;;;;;;;;;;81103:31;;;81135:7;81103:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:45;;:92;;;;81188:7;81152:43;;81165:7;;;;;;;;;;;81152:29;;;81182:1;81152:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:43;;;81103:92;81095:163;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81287:7;81277:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81269:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81367:20;81393;81427:7;81417:23;;;81441:18;81417:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81366:94;;;;;;81561:1;81537:26;;:12;:26;;;;81529:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81686:9;81670:12;:25;;81662:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81782:14;:23;81797:7;81782:23;;;;;;;;;;;;;;;:43;81806:18;81782:43;;;;;;;;;;;;;;;;;;;;;81781:44;81773:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81925:4;81879:14;:23;81894:7;81879:23;;;;;;;;;;;;;;;:43;81903:18;81879:43;;;;;;;;;;;;:50;;;;;;;;;;;;;;;;;;81942:20;81965:11;:18;;;;81942:41;;81994:19;82016:33;82040:8;;82016:19;:17;:19::i;:::-;:23;;:33;;;;:::i;:::-;81994:55;;82062:11;82093:242;;;;;;;;82135:19;:17;:19::i;:::-;82093:242;;;;82182:14;82093:242;;;;82223:7;82093:242;;;;;;82268:18;82093:242;;;;82314:5;82093:242;;;;;82062:284;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82403:12;82359;:21;82372:7;82359:21;;;;;;;;;;;;;;;:41;82381:18;82359:41;;;;;;;;;;;:56;;;;82426:11;82440:25;82454:10;;;;;;;;;;;82440:25;;:9;:13;;:25;;;;:::i;:::-;82426:39;;82501:46;82528:18;82542:3;82528:9;:13;;:18;;;;:::i;:::-;82501:13;:22;82515:7;82501:22;;;;;;;;;;;;;;;;:26;;:46;;;;:::i;:::-;82476:13;:22;82490:7;82476:22;;;;;;;;;;;;;;;:71;;;;82579:26;;;;;;;;82583:10;82579:26;;;;;;82595:9;82579:26;;;82558:4;:18;82563:12;82558:18;;;;;;;;;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82616:12;82624:3;82616:7;:12::i;:::-;82725:14;82675:7;82646:94;;82661:12;82646:94;82684:18;82704:19;:17;:19::i;:::-;82646:94;;;;;;;;;;;;;;;;;;;;;;;;82804:14;82781:10;82756:63;;82767:12;82756:63;82793:9;82756:63;;;;;;;;;;;;;;;;;;81004:1823;;;;;;;:::o;79486:26::-;;;;;;;;;;;;;:::o;84257:575::-;84310:17;;:::i;:::-;84330:4;:16;84335:10;84330:16;;;;;;;;;;;84310:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84382:10;84365:27;;:6;:13;;;:27;;;;84357:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84450:20;84473:10;:22;84484:10;84473:22;;;;;;;;;;;:34;84496:10;84473:34;;;;;;;;;;;;;;;;84450:57;;84541:1;84526:12;:16;84518:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84623:1;84586:10;:22;84597:10;84586:22;;;;;;;;;;;:34;84609:10;84586:34;;;;;;;;;;;;;;;:38;;;;84636:9;84647:17;84668:10;:15;;84691:12;84668:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84635:73;;;;84727:4;84719:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84813:10;84790:34;;84801:10;84790:34;;;;;;;;;;84257:575;;;;;:::o;79347:29::-;;;;;;;;;;;;;:::o;79308:20::-;;;;:::o;79093:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;78850:65::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;80895:101::-;80943:7;80970:11;:18;;;;80963:25;;80895:101;:::o;86559:679::-;22386:12;:10;:12::i;:::-;22375:23;;:7;:5;:7::i;:::-;:23;;;22367:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86721:1:::1;86709:9;:13;:38;;;;;86746:1;86726:17;:21;86709:38;86701:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86825:3;86805:17;:23;;;:50;;;;;86852:3;86832:17;:23;;;86805:50;86797:81;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;86911:1;86897:11;:15;;;86889:47;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;86969:71;86986:53;87035:3;86986:44;87026:3;86986:35;87003:17;86986:35;;86994:3;86986:16;;:35;;;;:::i;:::-;:39;;:44;;;;:::i;:::-;:48;;:53;;;;:::i;:::-;86977:3;86969:16;;:71;;;;:::i;:::-;86955:11;:85;;;86947:123;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;87092:9;87081:8;:20;;;;87131:17;87112:16;;:36;;;;;;;;;;;;;;;;;;87178:17;87159:16;:36;;;;87219:11;87206:10;;:24;;;;;;;;;;;;;;;;;;86559:679:::0;;;;:::o;84887:660::-;84940:31;84974:11;84986:10;84974:23;;;;;;;;;;;;;;;;;;84940:57;;85038:11;:19;;;85016;:17;:19::i;:::-;:41;85008:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85117:11;:19;;;;;;;;;;;;85116:20;85108:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85183:17;;:::i;:::-;85203:4;:16;85208:10;85203:16;;;;;;;;;;;85183:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85252:6;:13;;;85238:27;;:10;:27;;;85230:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85342:4;85320:11;:19;;;:26;;;;;;;;;;;;;;;;;;85377:11;:18;;;;;;;;;;;;85367:38;;;85406:11;:29;;;85437:6;:13;;;85367:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85359:125;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85525:6;:13;;;85502:37;;85513:10;85502:37;;;;;;;;;;84887:660;;;:::o;78760:35::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;82835:1414::-;82894:31;82928:11;82940:10;82928:23;;;;;;;;;;;;;;;;;;82894:57;;82992:11;:19;;;82970;:17;:19::i;:::-;:41;82962:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83082:11;:18;;;;;;;;;;;;83072:36;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83064:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83174:18;83195:4;:16;83200:10;83195:16;;;;;;;;;;;83174:37;;83247:10;83230:27;;:6;:13;;;;;;;;;;;;:27;;;;83222:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83358:18;83372:3;83358:9;:13;;:18;;;;:::i;:::-;83319:35;83337:16;;;;;;;;;;;83319:35;;:6;:13;;;:17;;:35;;;;:::i;:::-;:57;;83311:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83465:1;83427:10;:22;83438:10;83427:22;;;;;;;;;;;:34;83450:10;83427:34;;;;;;;;;;;;;;;;:39;83419:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83665:41;83689:16;;83665:11;:19;;;:23;;:41;;;;:::i;:::-;83643:19;:17;:19::i;:::-;:63;83640:158;;;83745:41;83769:16;;83745:19;:17;:19::i;:::-;:23;;:41;;;;:::i;:::-;83723:11;:19;;:63;;;;83640:158;83850:6;:13;;;83810:10;:22;83821:10;83810:22;;;;;;;;;;;:37;83833:6;:13;;;;;;;;;;;;83810:37;;;;;;;;;;;;;;;:53;;;;83874:11;83888:46;83923:10;;;;;;;;;;;83888:46;;83889:28;83903:6;:13;;;83889:9;:13;;:28;;;;:::i;:::-;83888:34;;:46;;;;:::i;:::-;83874:60;;83981:76;84053:3;83981:67;84034:6;:13;;;83981:48;84019:9;83981:13;:33;83995:11;:18;;;;;;;;;;;;83981:33;;;;;;;;;;;;;;;;:37;;:48;;;;:::i;:::-;:52;;:67;;;;:::i;:::-;:71;;:76;;;;:::i;:::-;83945:13;:33;83959:11;:18;;;;;;;;;;;;83945:33;;;;;;;;;;;;;;;:112;;;;84086:10;84070:6;:13;;;:26;;;;;;;;;;;;;;;;;;84123:9;84107:6;:13;;:25;;;;84145:12;84153:3;84145:7;:12::i;:::-;84221:11;:19;;;84198:10;84175:66;;84186:10;84175:66;84210:9;84175:66;;;;;;;;;;;;;;;;;;82835:1414;;;;:::o;86459:92::-;22386:12;:10;:12::i;:::-;22375:23;;:7;:5;:7::i;:::-;:23;;;22367:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86535:8:::1;86525:7;;:18;;;;;;;;;;;;;;;;;;86459:92:::0;:::o;22806:148::-;22386:12;:10;:12::i;:::-;22375:23;;:7;:5;:7::i;:::-;:23;;;22367:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22913:1:::1;22876:40;;22897:6;;;;;;;;;;;22876:40;;;;;;;;;;;;22944:1;22927:6;;:19;;;;;;;;;;;;;;;;;;22806:148::o:0;22155:87::-;22201:7;22228:6;;;;;;;;;;;22221:13;;22155:87;:::o;87858:158::-;87943:4;87967:14;:22;87982:6;87967:22;;;;;;;;;;;;;;;:41;87990:17;87967:41;;;;;;;;;;;;;;;;;;;;;87960:48;;87858:158;;;;:::o;78690:32::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;79454:23::-;;;;;;;;;;;;;:::o;79953:934::-;18980:13;;;;;;;;;;;:33;;;;18997:16;:14;:16::i;:::-;18980:33;:50;;;;19018:12;;;;;;;;;;19017:13;18980:50;18972:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19094:19;19117:13;;;;;;;;;;;19116:14;19094:36;;19145:14;19141:101;;;19192:4;19176:13;;:20;;;;;;;;;;;;;;;;;;19226:4;19211:12;;:19;;;;;;;;;;;;;;;;;;19141:101;80241:1:::1;80221:22;;:8;:22;;;;:52;;;;;80271:1;80247:26;;:12;:26;;;;80221:52;:76;;;;;80295:1;80277:20;;:6;:20;;;;80221:76;80213:104;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;80356:3;80336:17;:23;;;:50;;;;;80383:3;80363:17;:23;;;80336:50;80328:81;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;80442:1;80428:11;:15;;;80420:47;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;80500:71;80517:53;80566:3;80517:44;80557:3;80517:35;80534:17;80517:35;;80525:3;80517:16;;:35;;;;:::i;:::-;:39;;:44;;;;:::i;:::-;:48;;:53;;;;:::i;:::-;80508:3;80500:16;;:71;;;;:::i;:::-;80486:11;:85;;;80478:123;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;80612:16;:14;:16::i;:::-;80649:8;80639:7;;:18;;;;;;;;;;;;;;;;;;80679:9;80668:8;:20;;;;80718:17;80699:16;;:36;;;;;;;;;;;;;;;;;;80765:17;80746:16;:36;;;;80806:11;80793:10;;:24;;;;;;;;;;;;;;;;;;80842:12;80828:11;;:26;;;;;;;;;;;;;;;;;;80873:6;80865:5;;:14;;;;;;;;;;;;;;;;;;19272::::0;19268:68;;;19319:5;19303:13;;:21;;;;;;;;;;;;;;;;;;19268:68;79953:934;;;;;;;;:::o;87502:178::-;87588:11;;;;;;;;;;;87574:25;;:10;:25;;;87566:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87660:12;87646:11;;:26;;;;;;;;;;;;;;;;;;87502:178;:::o;79207:48::-;;;;;;;;;;;;;;;;;:::o;79402:28::-;;;;:::o;79264:22::-;;;;;;;;;;;;;:::o;78975:67::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;85555:625::-;85663:1;85638:13;:22;85652:7;85638:22;;;;;;;;;;;;;;;;:26;85630:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85729:20;85752:81;85810:7;85792:38;;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85752:35;85764:13;:22;85778:7;85764:22;;;;;;;;;;;;;;;;85752:7;:11;;:35;;;;:::i;:::-;:39;;:81;;;;:::i;:::-;85729:104;;85854:7;85844:27;;;85872:10;85884:7;85844:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85928:40;85955:12;85928:13;:22;85942:7;85928:22;;;;;;;;;;;;;;;;:26;;:40;;;;:::i;:::-;85903:13;:22;85917:7;85903:22;;;;;;;;;;;;;;;:65;;;;86036:9;86047:17;86068:10;:15;;86091:12;86068:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86035:73;;;;86127:4;86119:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85555:625;;;;;:::o;23109:244::-;22386:12;:10;:12::i;:::-;22375:23;;:7;:5;:7::i;:::-;:23;;;22367:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23218:1:::1;23198:22;;:8;:22;;;;23190:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23308:8;23279:38;;23300:6;;;;;;;;;;;23279:38;;;;;;;;;;;;23337:8;23328:6;;:17;;;;;;;;;;;;;;;;;;23109:244:::0;:::o;87246:248::-;87320:11;;;;;;;;;;;87306:25;;:10;:25;;;87298:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87404:1;87386:20;;:6;:20;;;;87378:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87480:6;87472:5;;:14;;;;;;;;;;;;;;;;;;87246:248;:::o;87688:162::-;87740:4;87827:15;87820:22;;87688:162;:::o;5707:179::-;5765:7;5785:9;5801:1;5797;:5;5785:17;;5826:1;5821;:6;;5813:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5877:1;5870:8;;;5707:179;;;;:::o;7284:153::-;7342:7;7374:1;7370;:5;7362:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7428:1;7424;:5;;;;;;7417:12;;7284:153;;;;:::o;6169:158::-;6227:7;6260:1;6255;:6;;6247:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6318:1;6314;:5;6307:12;;6169:158;;;;:::o;86228:223::-;86319:9;86330:17;86351:5;;;;;;;;;;;:10;;86369:5;86351:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86318:61;;;;86398:4;86390:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86228:223;;;:::o;20426:106::-;20479:15;20514:10;20507:17;;20426:106;:::o;6586:220::-;6644:7;6673:1;6668;:6;6664:20;;;6683:1;6676:8;;;;6664:20;6695:9;6711:1;6707;:5;6695:17;;6740:1;6735;6731;:5;;;;;;:10;6723:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6797:1;6790:8;;;6586:220;;;;;:::o;19436:125::-;19484:4;19509:44;19547:4;19509:29;:44::i;:::-;19508:45;19501:52;;19436:125;:::o;21741:129::-;18980:13;;;;;;;;;;;:33;;;;18997:16;:14;:16::i;:::-;18980:33;:50;;;;19018:12;;;;;;;;;;19017:13;18980:50;18972:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19094:19;19117:13;;;;;;;;;;;19116:14;19094:36;;19145:14;19141:101;;;19192:4;19176:13;;:20;;;;;;;;;;;;;;;;;;19226:4;19211:12;;:19;;;;;;;;;;;;;;;;;;19141:101;21799:26:::1;:24;:26::i;:::-;21836;:24;:26::i;:::-;19272:14:::0;19268:68;;;19319:5;19303:13;;:21;;;;;;;;;;;;;;;;;;19268:68;21741:129;:::o;11182:422::-;11242:4;11450:12;11561:7;11549:20;11541:28;;11595:1;11588:4;:8;11581:15;;;11182:422;;;:::o;20355:65::-;18980:13;;;;;;;;;;;:33;;;;18997:16;:14;:16::i;:::-;18980:33;:50;;;;19018:12;;;;;;;;;;19017:13;18980:50;18972:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19094:19;19117:13;;;;;;;;;;;19116:14;19094:36;;19145:14;19141:101;;;19192:4;19176:13;;:20;;;;;;;;;;;;;;;;;;19226:4;19211:12;;:19;;;;;;;;;;;;;;;;;;19141:101;19272:14;19268:68;;;19319:5;19303:13;;:21;;;;;;;;;;;;;;;;;;19268:68;20355:65;:::o;21878:196::-;18980:13;;;;;;;;;;;:33;;;;18997:16;:14;:16::i;:::-;18980:33;:50;;;;19018:12;;;;;;;;;;19017:13;18980:50;18972:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19094:19;19117:13;;;;;;;;;;;19116:14;19094:36;;19145:14;19141:101;;;19192:4;19176:13;;:20;;;;;;;;;;;;;;;;;;19226:4;19211:12;;:19;;;;;;;;;;;;;;;;;;19141:101;21946:17:::1;21966:12;:10;:12::i;:::-;21946:32;;21998:9;21989:6;;:18;;;;;;;;;;;;;;;;;;22056:9;22023:43;;22052:1;22023:43;;;;;;;;;;;;19254:1;19272:14:::0;19268:68;;;19319:5;19303:13;;:21;;;;;;;;;;;;;;;;;;19268:68;21878:196;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://68a5dc8f1d5c731cb2d11c35460edf6c5b7158f3fa2bbaab06531018f2a6ff90

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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