ETH Price: $2,029.03 (+2.69%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap Pipt To Eth137896252021-12-12 10:01:381541 days ago1639303298IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0407879449.24938431
Swap Pipt To Erc...129842572021-08-08 11:47:501667 days ago1628423270IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0242738927
Swap Pipt To Eth129481212021-08-02 20:36:511672 days ago1627936611IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0545480567
Swap Pipt To Eth129481172021-08-02 20:35:241672 days ago1627936524IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0532454165.4
Swap Pipt To Eth129481072021-08-02 20:32:351672 days ago1627936355IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0545480567
Swap Pipt To Eth129309302021-07-31 3:25:221675 days ago1627701922IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0244474830
Swap Pipt To Erc...129157302021-07-28 17:34:531678 days ago1627493693IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0393447544
Swap Pipt To Eth128342752021-07-15 22:41:361690 days ago1626388896IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0312357239
Swap Pipt To Eth128342572021-07-15 22:38:421690 days ago1626388722IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0331971240
Swap Pipt To Eth128237392021-07-14 7:15:161692 days ago1626246916IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0216317926
Swap Pipt To Eth127025102021-06-25 9:42:101711 days ago1624614130IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0174284821
Swap Pipt To Eth126919792021-06-23 18:27:411713 days ago1624472861IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0148979818
Swap Pipt To Eth126623302021-06-19 3:05:251717 days ago1624071925IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0116188214
Swap Pipt To Eth126353072021-06-14 22:29:421721 days ago1623709782IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0098161912
Swap Pipt To Eth126276202021-06-13 17:58:151723 days ago1623607095IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0138114616.6
Swap Pipt To Eth126019332021-06-09 18:30:561727 days ago1623263456IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0224080527
Swap Pipt To Eth125821212021-06-06 16:55:201730 days ago1622998520IN
0x56FA426e...4a7ccf7Cb
0 ETH0.015323819
Swap Pipt To Eth125564472021-06-02 17:31:481734 days ago1622655108IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0299525736
Swap Pipt To Eth125518052021-06-02 0:23:301734 days ago1622593410IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0171127321
Swap Pipt To Eth125477632021-06-01 9:33:021735 days ago1622539982IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0162983220
Swap Pipt To Erc...124901972021-05-23 11:14:161744 days ago1621768456IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0600972468
Swap Pipt To Eth124711782021-05-20 12:00:081747 days ago1621512008IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0510033161.3
Swap Pipt To Eth123914302021-05-08 4:11:031759 days ago1620447063IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0386239245.6
Swap Pipt To Eth123901082021-05-07 23:18:361759 days ago1620429516IN
0x56FA426e...4a7ccf7Cb
0 ETH0.0432435453
Swap Pipt To Erc...123571592021-05-02 21:21:041764 days ago1619990464IN
0x56FA426e...4a7ccf7Cb
0 ETH0.031653435
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer244451142026-02-13 3:15:5917 days ago1770952559
0x56FA426e...4a7ccf7Cb
0.00568813 ETH
Transfer244451142026-02-13 3:15:5917 days ago1770952559
0x56FA426e...4a7ccf7Cb
0.00568813 ETH
Transfer242714212026-01-19 21:10:5941 days ago1768857059
0x56FA426e...4a7ccf7Cb
0.00765071 ETH
Transfer242714212026-01-19 21:10:5941 days ago1768857059
0x56FA426e...4a7ccf7Cb
0.00765071 ETH
Deposit242714212026-01-19 21:10:5941 days ago1768857059
0x56FA426e...4a7ccf7Cb
0.01 ETH
Swap Eth To Pipt...242714212026-01-19 21:10:5941 days ago1768857059
0x56FA426e...4a7ccf7Cb
0.01 ETH
Transfer242714192026-01-19 21:10:3541 days ago1768857035
0x56FA426e...4a7ccf7Cb
0.0004899 ETH
Transfer242714192026-01-19 21:10:3541 days ago1768857035
0x56FA426e...4a7ccf7Cb
0.0004899 ETH
Deposit242714192026-01-19 21:10:3541 days ago1768857035
0x56FA426e...4a7ccf7Cb
0.00256 ETH
Swap Eth To Pipt242714192026-01-19 21:10:3541 days ago1768857035
0x56FA426e...4a7ccf7Cb
0.00256 ETH
Transfer240357242025-12-17 23:50:4774 days ago1766015447
0x56FA426e...4a7ccf7Cb
0.00016221 ETH
Transfer240357242025-12-17 23:50:4774 days ago1766015447
0x56FA426e...4a7ccf7Cb
0.00016221 ETH
Deposit240357242025-12-17 23:50:4774 days ago1766015447
0x56FA426e...4a7ccf7Cb
0.0016 ETH
Swap Eth To Pipt240357242025-12-17 23:50:4774 days ago1766015447
0x56FA426e...4a7ccf7Cb
0.0016 ETH
Transfer235387072025-10-09 7:32:35144 days ago1759995155
0x56FA426e...4a7ccf7Cb
0.00582788 ETH
Transfer235387072025-10-09 7:32:35144 days ago1759995155
0x56FA426e...4a7ccf7Cb
0.00582788 ETH
-137896252021-12-12 10:01:381541 days ago1639303298
0x56FA426e...4a7ccf7Cb
0.16237913 ETH
-137896252021-12-12 10:01:381541 days ago1639303298
0x56FA426e...4a7ccf7Cb
0.16237913 ETH
-129481212021-08-02 20:36:511672 days ago1627936611
0x56FA426e...4a7ccf7Cb
20.0478552 ETH
-129481212021-08-02 20:36:511672 days ago1627936611
0x56FA426e...4a7ccf7Cb
20.0478552 ETH
-129481172021-08-02 20:35:241672 days ago1627936524
0x56FA426e...4a7ccf7Cb
24.86304137 ETH
-129481172021-08-02 20:35:241672 days ago1627936524
0x56FA426e...4a7ccf7Cb
24.86304137 ETH
-129481072021-08-02 20:32:351672 days ago1627936355
0x56FA426e...4a7ccf7Cb
33.89746386 ETH
-129481072021-08-02 20:32:351672 days ago1627936355
0x56FA426e...4a7ccf7Cb
33.89746386 ETH
-129309302021-07-31 3:25:221675 days ago1627701922
0x56FA426e...4a7ccf7Cb
0.20686467 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x47186821...76623C67d
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Erc20PiptSwap

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 2 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

/*
https://powerpool.finance/

          wrrrw r wrr
         ppwr rrr wppr0       prwwwrp                                 prwwwrp                   wr0
        rr 0rrrwrrprpwp0      pp   pr  prrrr0 pp   0r  prrrr0  0rwrrr pp   pr  prrrr0  prrrr0    r0
        rrp pr   wr00rrp      prwww0  pp   wr pp w00r prwwwpr  0rw    prwww0  pp   wr pp   wr    r0
        r0rprprwrrrp pr0      pp      wr   pr pp rwwr wr       0r     pp      wr   pr wr   pr    r0
         prwr wrr0wpwr        00        www0   0w0ww    www0   0w     00        www0    www0   0www0
          wrr ww0rrrr

*/
// SPDX-License-Identifier: MIT

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


pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

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

        return c;
    }

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

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

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

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

// File: contracts/interfaces/BMathInterface.sol

pragma solidity 0.6.12;

interface BMathInterface {
  function calcInGivenOut(
    uint256 tokenBalanceIn,
    uint256 tokenWeightIn,
    uint256 tokenBalanceOut,
    uint256 tokenWeightOut,
    uint256 tokenAmountOut,
    uint256 swapFee
  ) external pure returns (uint256 tokenAmountIn);
}

// File: contracts/interfaces/BPoolInterface.sol

pragma solidity 0.6.12;



interface BPoolInterface is IERC20, BMathInterface {
  function joinPool(uint256 poolAmountOut, uint256[] calldata maxAmountsIn) external;

  function exitPool(uint256 poolAmountIn, uint256[] calldata minAmountsOut) external;

  function swapExactAmountIn(
    address,
    uint256,
    address,
    uint256,
    uint256
  ) external returns (uint256, uint256);

  function swapExactAmountOut(
    address,
    uint256,
    address,
    uint256,
    uint256
  ) external returns (uint256, uint256);

  function joinswapExternAmountIn(
    address,
    uint256,
    uint256
  ) external returns (uint256);

  function joinswapPoolAmountOut(
    address,
    uint256,
    uint256
  ) external returns (uint256);

  function exitswapPoolAmountIn(
    address,
    uint256,
    uint256
  ) external returns (uint256);

  function exitswapExternAmountOut(
    address,
    uint256,
    uint256
  ) external returns (uint256);

  function getDenormalizedWeight(address) external view returns (uint256);

  function getBalance(address) external view returns (uint256);

  function getSwapFee() external view returns (uint256);

  function getTotalDenormalizedWeight() external view returns (uint256);

  function getCommunityFee()
    external
    view
    returns (
      uint256,
      uint256,
      uint256,
      address
    );

  function calcAmountWithCommunityFee(
    uint256,
    uint256,
    address
  ) external view returns (uint256, uint256);

  function getRestrictions() external view returns (address);

  function isPublicSwap() external view returns (bool);

  function isFinalized() external view returns (bool);

  function isBound(address t) external view returns (bool);

  function getCurrentTokens() external view returns (address[] memory tokens);

  function getFinalTokens() external view returns (address[] memory tokens);

  function setSwapFee(uint256) external;

  function setCommunityFeeAndReceiver(
    uint256,
    uint256,
    uint256,
    address
  ) external;

  function setController(address) external;

  function setPublicSwap(bool) external;

  function finalize() external;

  function bind(
    address,
    uint256,
    uint256
  ) external;

  function rebind(
    address,
    uint256,
    uint256
  ) external;

  function unbind(address) external;

  function callVoting(
    address voting,
    bytes4 signature,
    bytes calldata args,
    uint256 value
  ) external;

  function getMinWeight() external view returns (uint256);

  function getMaxBoundTokens() external view returns (uint256);
}

// File: contracts/interfaces/TokenInterface.sol

pragma solidity 0.6.12;


interface TokenInterface is IERC20 {
  function deposit() external payable;

  function withdraw(uint256) external;
}

// File: contracts/interfaces/IPoolRestrictions.sol

pragma solidity 0.6.12;

interface IPoolRestrictions {
  function getMaxTotalSupply(address _pool) external view returns (uint256);

  function isVotingSignatureAllowed(address _votingAddress, bytes4 _signature) external view returns (bool);

  function isVotingSenderAllowed(address _votingAddress, address _sender) external view returns (bool);

  function isWithoutFee(address _addr) external view returns (bool);
}

// File: contracts/interfaces/IUniswapV2Pair.sol

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
  event Approval(address indexed owner, address indexed spender, uint256 value);
  event Transfer(address indexed from, address indexed to, uint256 value);

  function name() external pure returns (string memory);

  function symbol() external pure returns (string memory);

  function decimals() external pure returns (uint8);

  function totalSupply() external view returns (uint256);

  function balanceOf(address owner) external view returns (uint256);

  function allowance(address owner, address spender) external view returns (uint256);

  function approve(address spender, uint256 value) external returns (bool);

  function transfer(address to, uint256 value) external returns (bool);

  function transferFrom(
    address from,
    address to,
    uint256 value
  ) external returns (bool);

  function DOMAIN_SEPARATOR() external view returns (bytes32);

  function PERMIT_TYPEHASH() external pure returns (bytes32);

  function nonces(address owner) external view returns (uint256);

  function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  event Mint(address indexed sender, uint256 amount0, uint256 amount1);
  event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to);
  event Swap(
    address indexed sender,
    uint256 amount0In,
    uint256 amount1In,
    uint256 amount0Out,
    uint256 amount1Out,
    address indexed to
  );
  event Sync(uint112 reserve0, uint112 reserve1);

  function MINIMUM_LIQUIDITY() external pure returns (uint256);

  function factory() external view returns (address);

  function token0() external view returns (address);

  function token1() external view returns (address);

  function getReserves()
    external
    view
    returns (
      uint112 reserve0,
      uint112 reserve1,
      uint32 blockTimestampLast
    );

  function price0CumulativeLast() external view returns (uint256);

  function price1CumulativeLast() external view returns (uint256);

  function kLast() external view returns (uint256);

  function mint(address to) external returns (uint256 liquidity);

  function burn(address to) external returns (uint256 amount0, uint256 amount1);

  function swap(
    uint256 amount0Out,
    uint256 amount1Out,
    address to,
    bytes calldata data
  ) external;

  function skim(address to) external;

  function sync() external;

  function initialize(address, address) external;
}

// File: contracts/interfaces/IUniswapV2Factory.sol

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
  event PairCreated(address indexed token0, address indexed token1, address pair, uint256);

  function feeTo() external view returns (address);

  function feeToSetter() external view returns (address);

  function migrator() external view returns (address);

  function getPair(address tokenA, address tokenB) external view returns (address pair);

  function allPairs(uint256) external view returns (address pair);

  function allPairsLength() external view returns (uint256);

  function createPair(address tokenA, address tokenB) external returns (address pair);

  function setFeeTo(address) external;

  function setFeeToSetter(address) external;

  function setMigrator(address) external;
}

// File: contracts/lib/SafeMathUniswap.sol

pragma solidity =0.6.12;

// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)

library SafeMathUniswap {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x, 'ds-math-add-overflow');
    }

    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x, 'ds-math-sub-underflow');
    }

    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow');
    }
}

// File: contracts/lib/UniswapV2Library.sol

pragma solidity >=0.5.0;



library UniswapV2Library {
    using SafeMathUniswap for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'e18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}

// File: contracts/EthPiptSwap.sol

pragma solidity 0.6.12;











contract EthPiptSwap is Ownable {
  using SafeMath for uint256;
  using SafeERC20 for IERC20;
  using SafeERC20 for TokenInterface;
  using SafeERC20 for BPoolInterface;

  TokenInterface public weth;
  TokenInterface public cvp;
  BPoolInterface public pipt;

  uint256[] public feeLevels;
  uint256[] public feeAmounts;
  address public feePayout;
  address public feeManager;

  mapping(address => address) public uniswapEthPairByTokenAddress;
  mapping(address => bool) public reApproveTokens;
  uint256 public defaultSlippage;

  struct CalculationStruct {
    uint256 tokenAmount;
    uint256 ethAmount;
    uint256 tokenReserve;
    uint256 ethReserve;
  }

  event SetTokenSetting(address indexed token, bool indexed reApprove, address indexed uniswapPair);
  event SetDefaultSlippage(uint256 newDefaultSlippage);
  event SetFees(
    address indexed sender,
    uint256[] newFeeLevels,
    uint256[] newFeeAmounts,
    address indexed feePayout,
    address indexed feeManager
  );

  event EthToPiptSwap(
    address indexed user,
    uint256 ethInAmount,
    uint256 ethSwapFee,
    uint256 poolOutAmount,
    uint256 poolCommunityFee
  );
  event OddEth(address indexed user, uint256 amount);
  event PiptToEthSwap(
    address indexed user,
    uint256 poolInAmount,
    uint256 poolCommunityFee,
    uint256 ethOutAmount,
    uint256 ethSwapFee
  );
  event PayoutCVP(address indexed receiver, uint256 wethAmount, uint256 cvpAmount);

  constructor(
    address _weth,
    address _cvp,
    address _pipt,
    address _feeManager
  ) public Ownable() {
    weth = TokenInterface(_weth);
    cvp = TokenInterface(_cvp);
    pipt = BPoolInterface(_pipt);
    feeManager = _feeManager;
    defaultSlippage = 0.02 ether;
  }

  modifier onlyFeeManagerOrOwner() {
    require(msg.sender == feeManager || msg.sender == owner(), "NOT_FEE_MANAGER");
    _;
  }

  receive() external payable {
    if (msg.sender != tx.origin) {
      return;
    }
    swapEthToPipt(defaultSlippage);
  }

  function swapEthToPipt(uint256 _slippage) public payable returns (uint256 poolAmountOutAfterFee, uint256 oddEth) {
    (, uint256 swapAmount) = calcEthFee(msg.value);

    address[] memory tokens = pipt.getCurrentTokens();

    (, , uint256 poolAmountOut) = calcSwapEthToPiptInputs(swapAmount, tokens, _slippage);

    weth.deposit{ value: msg.value }();

    return _swapWethToPiptByPoolOut(msg.value, poolAmountOut);
  }

  function swapEthToPiptByPoolOut(uint256 _poolAmountOut)
    external
    payable
    returns (uint256 poolAmountOutAfterFee, uint256 oddEth)
  {
    weth.deposit{ value: msg.value }();

    return _swapWethToPiptByPoolOut(msg.value, _poolAmountOut);
  }

  function swapPiptToEth(uint256 _poolAmountIn) external returns (uint256 ethOutAmount) {
    ethOutAmount = _swapPiptToWeth(_poolAmountIn);

    weth.withdraw(ethOutAmount);
    msg.sender.transfer(ethOutAmount);
  }

  function convertOddToCvpAndSendToPayout(address[] memory oddTokens) external {
    require(msg.sender == tx.origin && !Address.isContract(msg.sender), "CONTRACT_NOT_ALLOWED");

    uint256 len = oddTokens.length;

    for (uint256 i = 0; i < len; i++) {
      uint256 tokenBalance = TokenInterface(oddTokens[i]).balanceOf(address(this));
      IUniswapV2Pair tokenPair = _uniswapPairFor(oddTokens[i]);

      (uint256 tokenReserve, uint256 ethReserve, ) = tokenPair.getReserves();
      uint256 wethOut = UniswapV2Library.getAmountOut(tokenBalance, tokenReserve, ethReserve);

      TokenInterface(oddTokens[i]).safeTransfer(address(tokenPair), tokenBalance);

      tokenPair.swap(uint256(0), wethOut, address(this), new bytes(0));
    }

    uint256 wethBalance = weth.balanceOf(address(this));

    IUniswapV2Pair cvpPair = _uniswapPairFor(address(cvp));

    (uint256 cvpReserve, uint256 ethReserve, ) = cvpPair.getReserves();
    uint256 cvpOut = UniswapV2Library.getAmountOut(wethBalance, ethReserve, cvpReserve);

    weth.safeTransfer(address(cvpPair), wethBalance);

    cvpPair.swap(cvpOut, uint256(0), address(this), new bytes(0));

    cvp.safeTransfer(feePayout, cvpOut);

    emit PayoutCVP(feePayout, wethBalance, cvpOut);
  }

  function setFees(
    uint256[] calldata _feeLevels,
    uint256[] calldata _feeAmounts,
    address _feePayout,
    address _feeManager
  ) external onlyFeeManagerOrOwner {
    feeLevels = _feeLevels;
    feeAmounts = _feeAmounts;
    feePayout = _feePayout;
    feeManager = _feeManager;

    emit SetFees(msg.sender, _feeLevels, _feeAmounts, _feePayout, _feeManager);
  }

  function setTokensSettings(
    address[] memory _tokens,
    address[] memory _pairs,
    bool[] memory _reapprove
  ) external onlyOwner {
    uint256 len = _tokens.length;
    require(len == _pairs.length && len == _reapprove.length, "LENGTHS_NOT_EQUAL");
    for (uint256 i = 0; i < len; i++) {
      uniswapEthPairByTokenAddress[_tokens[i]] = _pairs[i];
      reApproveTokens[_tokens[i]] = _reapprove[i];
      emit SetTokenSetting(_tokens[i], _reapprove[i], _pairs[i]);
    }
  }

  function fetchUnswapPairsFromFactory(address _factory, address[] calldata _tokens) external onlyOwner {
    uint256 len = _tokens.length;
    for (uint256 i = 0; i < len; i++) {
      uniswapEthPairByTokenAddress[_tokens[i]] = IUniswapV2Factory(_factory).getPair(_tokens[i], address(weth));
    }
  }

  function setDefaultSlippage(uint256 _defaultSlippage) external onlyOwner {
    defaultSlippage = _defaultSlippage;
    emit SetDefaultSlippage(_defaultSlippage);
  }

  function calcSwapEthToPiptInputs(
    uint256 _ethValue,
    address[] memory _tokens,
    uint256 _slippage
  )
    public
    view
    returns (
      uint256[] memory tokensInPipt,
      uint256[] memory ethInUniswap,
      uint256 poolOut
    )
  {
    _ethValue = _ethValue.sub(_ethValue.mul(_slippage).div(1 ether));

    // get shares and eth required for each share
    CalculationStruct[] memory calculations = new CalculationStruct[](_tokens.length);

    uint256 totalEthRequired = 0;
    {
      uint256 piptTotalSupply = pipt.totalSupply();
      // get pool out for 1 ether as 100% for calculate shares
      // poolOut by 1 ether first token join = piptTotalSupply.mul(1 ether).div(pipt.getBalance(_tokens[0]))
      // poolRatio = poolOut/totalSupply
      uint256 poolRatio =
        piptTotalSupply.mul(1 ether).div(pipt.getBalance(_tokens[0])).mul(1 ether).div(piptTotalSupply);

      for (uint256 i = 0; i < _tokens.length; i++) {
        // token share relatively 1 ether of first token
        calculations[i].tokenAmount = poolRatio.mul(pipt.getBalance(_tokens[i])).div(1 ether);

        (calculations[i].tokenReserve, calculations[i].ethReserve, ) = _uniswapPairFor(_tokens[i]).getReserves();
        calculations[i].ethAmount = UniswapV2Library.getAmountIn(
          calculations[i].tokenAmount,
          calculations[i].ethReserve,
          calculations[i].tokenReserve
        );
        totalEthRequired = totalEthRequired.add(calculations[i].ethAmount);
      }
    }

    // calculate eth and tokensIn based on shares and normalize if totalEthRequired more than 100%
    tokensInPipt = new uint256[](_tokens.length);
    ethInUniswap = new uint256[](_tokens.length);
    for (uint256 i = 0; i < _tokens.length; i++) {
      ethInUniswap[i] = _ethValue.mul(calculations[i].ethAmount.mul(1 ether).div(totalEthRequired)).div(1 ether);
      tokensInPipt[i] = calculations[i].tokenAmount.mul(_ethValue.mul(1 ether).div(totalEthRequired)).div(1 ether);
    }

    poolOut = pipt.totalSupply().mul(tokensInPipt[0]).div(pipt.getBalance(_tokens[0]));
  }

  function calcSwapPiptToEthInputs(uint256 _poolAmountIn, address[] memory _tokens)
    public
    view
    returns (
      uint256[] memory tokensOutPipt,
      uint256[] memory ethOutUniswap,
      uint256 totalEthOut,
      uint256 poolAmountFee
    )
  {
    tokensOutPipt = new uint256[](_tokens.length);
    ethOutUniswap = new uint256[](_tokens.length);

    (, , uint256 communityExitFee, ) = pipt.getCommunityFee();

    uint256 poolAmountInAfterFee;
    (poolAmountInAfterFee, poolAmountFee) = pipt.calcAmountWithCommunityFee(
      _poolAmountIn,
      communityExitFee,
      address(this)
    );

    uint256 poolRatio = poolAmountInAfterFee.mul(1 ether).div(pipt.totalSupply());

    totalEthOut = 0;
    for (uint256 i = 0; i < _tokens.length; i++) {
      tokensOutPipt[i] = poolRatio.mul(pipt.getBalance(_tokens[i])).div(1 ether);

      (uint256 tokenReserve, uint256 ethReserve, ) = _uniswapPairFor(_tokens[i]).getReserves();
      ethOutUniswap[i] = UniswapV2Library.getAmountOut(tokensOutPipt[i], tokenReserve, ethReserve);
      totalEthOut = totalEthOut.add(ethOutUniswap[i]);
    }
  }

  function calcNeedEthToPoolOut(uint256 _poolAmountOut, uint256 _slippage) public view returns (uint256) {
    uint256 ratio = _poolAmountOut.mul(1 ether).div(pipt.totalSupply()).add(10);

    address[] memory tokens = pipt.getCurrentTokens();
    uint256 len = tokens.length;

    CalculationStruct[] memory calculations = new CalculationStruct[](len);
    uint256[] memory tokensInPipt = new uint256[](len);

    uint256 totalEthSwap = 0;
    for (uint256 i = 0; i < len; i++) {
      IUniswapV2Pair tokenPair = _uniswapPairFor(tokens[i]);

      (calculations[i].tokenReserve, calculations[i].ethReserve, ) = tokenPair.getReserves();
      tokensInPipt[i] = ratio.mul(pipt.getBalance(tokens[i])).div(1 ether);
      totalEthSwap = UniswapV2Library
        .getAmountIn(tokensInPipt[i], calculations[i].ethReserve, calculations[i].tokenReserve)
        .add(totalEthSwap);
    }
    return totalEthSwap.add(totalEthSwap.mul(_slippage).div(1 ether));
  }

  function calcEthFee(uint256 ethAmount) public view returns (uint256 ethFee, uint256 ethAfterFee) {
    ethFee = 0;
    uint256 len = feeLevels.length;
    for (uint256 i = 0; i < len; i++) {
      if (ethAmount >= feeLevels[i]) {
        ethFee = ethAmount.mul(feeAmounts[i]).div(1 ether);
        break;
      }
    }
    ethAfterFee = ethAmount.sub(ethFee);
  }

  function getFeeLevels() external view returns (uint256[] memory) {
    return feeLevels;
  }

  function getFeeAmounts() external view returns (uint256[] memory) {
    return feeAmounts;
  }

  function _uniswapPairFor(address token) internal view returns (IUniswapV2Pair) {
    return IUniswapV2Pair(uniswapEthPairByTokenAddress[token]);
  }

  function _swapWethToPiptByPoolOut(uint256 _wethAmount, uint256 _poolAmountOut)
    internal
    returns (uint256 poolAmountOutAfterFee, uint256 oddEth)
  {
    require(_wethAmount > 0, "ETH_REQUIRED");

    {
      address poolRestrictions = pipt.getRestrictions();
      if (address(poolRestrictions) != address(0)) {
        uint256 maxTotalSupply = IPoolRestrictions(poolRestrictions).getMaxTotalSupply(address(pipt));
        require(pipt.totalSupply().add(_poolAmountOut) <= maxTotalSupply, "PIPT_MAX_SUPPLY");
      }
    }

    (uint256 feeAmount, uint256 swapAmount) = calcEthFee(_wethAmount);

    uint256 ratio = _poolAmountOut.mul(1 ether).div(pipt.totalSupply()).add(10);

    address[] memory tokens = pipt.getCurrentTokens();
    uint256 len = tokens.length;

    CalculationStruct[] memory calculations = new CalculationStruct[](len);
    uint256[] memory tokensInPipt = new uint256[](len);

    uint256 totalEthSwap = 0;
    for (uint256 i = 0; i < len; i++) {
      IUniswapV2Pair tokenPair = _uniswapPairFor(tokens[i]);

      (calculations[i].tokenReserve, calculations[i].ethReserve, ) = tokenPair.getReserves();
      tokensInPipt[i] = ratio.mul(pipt.getBalance(tokens[i])).div(1 ether);
      calculations[i].ethAmount = UniswapV2Library.getAmountIn(
        tokensInPipt[i],
        calculations[i].ethReserve,
        calculations[i].tokenReserve
      );

      weth.safeTransfer(address(tokenPair), calculations[i].ethAmount);

      tokenPair.swap(tokensInPipt[i], uint256(0), address(this), new bytes(0));
      totalEthSwap = totalEthSwap.add(calculations[i].ethAmount);

      if (reApproveTokens[tokens[i]]) {
        TokenInterface(tokens[i]).approve(address(pipt), 0);
      }

      TokenInterface(tokens[i]).approve(address(pipt), tokensInPipt[i]);
    }

    uint256 poolAmountOutFee;
    {
      (, uint256 communityJoinFee, , ) = pipt.getCommunityFee();
      (poolAmountOutAfterFee, poolAmountOutFee) = pipt.calcAmountWithCommunityFee(
        _poolAmountOut,
        communityJoinFee,
        address(this)
      );
    }

    emit EthToPiptSwap(msg.sender, swapAmount, feeAmount, _poolAmountOut, poolAmountOutFee);

    pipt.joinPool(_poolAmountOut, tokensInPipt);
    pipt.safeTransfer(msg.sender, poolAmountOutAfterFee);

    oddEth = swapAmount.sub(totalEthSwap);
    if (oddEth > 0) {
      weth.withdraw(oddEth);
      msg.sender.transfer(oddEth);
      emit OddEth(msg.sender, oddEth);
    }
  }

  function _swapPiptToWeth(uint256 _poolAmountIn) internal returns (uint256) {
    address[] memory tokens = pipt.getCurrentTokens();
    uint256 len = tokens.length;

    (uint256[] memory tokensOutPipt, uint256[] memory ethOutUniswap, uint256 totalEthOut, uint256 poolAmountFee) =
      calcSwapPiptToEthInputs(_poolAmountIn, tokens);

    pipt.safeTransferFrom(msg.sender, address(this), _poolAmountIn);

    pipt.approve(address(pipt), _poolAmountIn);

    pipt.exitPool(_poolAmountIn, tokensOutPipt);

    for (uint256 i = 0; i < len; i++) {
      IUniswapV2Pair tokenPair = _uniswapPairFor(tokens[i]);
      TokenInterface(tokens[i]).safeTransfer(address(tokenPair), tokensOutPipt[i]);
      tokenPair.swap(uint256(0), ethOutUniswap[i], address(this), new bytes(0));
    }

    (uint256 ethFeeAmount, uint256 ethOutAmount) = calcEthFee(totalEthOut);

    emit PiptToEthSwap(msg.sender, _poolAmountIn, poolAmountFee, ethOutAmount, ethFeeAmount);

    return ethOutAmount;
  }
}

// File: contracts/Erc20PiptSwap.sol

pragma solidity 0.6.12;


contract Erc20PiptSwap is EthPiptSwap {
  event Erc20ToPiptSwap(
    address indexed user,
    address indexed swapToken,
    uint256 erc20InAmount,
    uint256 ethInAmount,
    uint256 poolOutAmount
  );
  event PiptToErc20Swap(
    address indexed user,
    address indexed swapToken,
    uint256 poolInAmount,
    uint256 ethOutAmount,
    uint256 erc20OutAmount
  );

  constructor(
    address _weth,
    address _cvp,
    address _pipt,
    address _feeManager
  ) public EthPiptSwap(_weth, _cvp, _pipt, _feeManager) {}

  function swapErc20ToPipt(
    address _swapToken,
    uint256 _swapAmount,
    uint256 _slippage
  ) external returns (uint256 poolAmountOut) {
    IERC20(_swapToken).safeTransferFrom(msg.sender, address(this), _swapAmount);

    IUniswapV2Pair tokenPair = _uniswapPairFor(_swapToken);
    (uint256 ethAmount, bool isInverse) = getAmountOutForUniswap(tokenPair, _swapAmount, true);
    IERC20(_swapToken).safeTransfer(address(tokenPair), _swapAmount);
    tokenPair.swap(isInverse ? ethAmount : uint256(0), isInverse ? uint256(0) : ethAmount, address(this), new bytes(0));

    (, uint256 ethSwapAmount) = calcEthFee(ethAmount);
    address[] memory tokens = pipt.getCurrentTokens();
    (, , poolAmountOut) = calcSwapEthToPiptInputs(ethSwapAmount, tokens, _slippage);

    _swapWethToPiptByPoolOut(ethAmount, poolAmountOut);

    emit Erc20ToPiptSwap(msg.sender, _swapToken, _swapAmount, ethAmount, poolAmountOut);
  }

  function swapPiptToErc20(address _swapToken, uint256 _poolAmountIn) external returns (uint256 erc20Out) {
    uint256 ethOut = _swapPiptToWeth(_poolAmountIn);

    IUniswapV2Pair tokenPair = _uniswapPairFor(_swapToken);

    bool isInverse;
    (erc20Out, isInverse) = getAmountOutForUniswap(tokenPair, ethOut, false);

    weth.safeTransfer(address(tokenPair), ethOut);

    tokenPair.swap(isInverse ? uint256(0) : erc20Out, isInverse ? erc20Out : uint256(0), address(this), new bytes(0));

    IERC20(_swapToken).safeTransfer(msg.sender, erc20Out);

    emit PiptToErc20Swap(msg.sender, _swapToken, _poolAmountIn, ethOut, erc20Out);
  }

  function calcSwapErc20ToPiptInputs(
    address _swapToken,
    uint256 _swapAmount,
    address[] memory _tokens,
    uint256 _slippage,
    bool _withFee
  )
    external
    view
    returns (
      uint256[] memory tokensInPipt,
      uint256[] memory ethInUniswap,
      uint256 poolOut
    )
  {
    uint256 ethAmount = getAmountOutForUniswapValue(_uniswapPairFor(_swapToken), _swapAmount, true);
    if (_withFee) {
      (, ethAmount) = calcEthFee(ethAmount);
    }
    return calcSwapEthToPiptInputs(ethAmount, _tokens, _slippage);
  }

  function calcNeedErc20ToPoolOut(
    address _swapToken,
    uint256 _poolAmountOut,
    uint256 _slippage
  ) external view returns (uint256) {
    uint256 resultEth = calcNeedEthToPoolOut(_poolAmountOut, _slippage);

    IUniswapV2Pair tokenPair = _uniswapPairFor(_swapToken);
    (uint256 token1Reserve, uint256 token2Reserve, ) = tokenPair.getReserves();
    if (tokenPair.token0() == address(weth)) {
      return UniswapV2Library.getAmountIn(resultEth.mul(1003).div(1000), token2Reserve, token1Reserve);
    } else {
      return UniswapV2Library.getAmountIn(resultEth.mul(1003).div(1000), token1Reserve, token2Reserve);
    }
  }

  function calcSwapPiptToErc20Inputs(
    address _swapToken,
    uint256 _poolAmountIn,
    address[] memory _tokens,
    bool _withFee
  )
    external
    view
    returns (
      uint256[] memory tokensOutPipt,
      uint256[] memory ethOutUniswap,
      uint256 totalErc20Out,
      uint256 poolAmountFee
    )
  {
    uint256 totalEthOut;

    (tokensOutPipt, ethOutUniswap, totalEthOut, poolAmountFee) = calcSwapPiptToEthInputs(_poolAmountIn, _tokens);
    if (_withFee) {
      (, totalEthOut) = calcEthFee(totalEthOut);
    }
    totalErc20Out = getAmountOutForUniswapValue(_uniswapPairFor(_swapToken), totalEthOut, false);
  }

  function calcErc20Fee(address _swapToken, uint256 _swapAmount)
    external
    view
    returns (
      uint256 erc20Fee,
      uint256 erc20AfterFee,
      uint256 ethFee,
      uint256 ethAfterFee
    )
  {
    IUniswapV2Pair tokenPair = _uniswapPairFor(_swapToken);

    uint256 ethAmount = getAmountOutForUniswapValue(tokenPair, _swapAmount, true);

    (ethFee, ethAfterFee) = calcEthFee(ethAmount);

    if (ethFee != 0) {
      erc20Fee = getAmountOutForUniswapValue(tokenPair, ethFee, false);
    }
    erc20AfterFee = getAmountOutForUniswapValue(tokenPair, ethAfterFee, false);
  }

  function getAmountOutForUniswap(
    IUniswapV2Pair _tokenPair,
    uint256 _swapAmount,
    bool _isEthOut
  ) public view returns (uint256 ethAmount, bool isInverse) {
    isInverse = _tokenPair.token0() == address(weth);
    if (_isEthOut ? isInverse : !isInverse) {
      (uint256 ethReserve, uint256 tokenReserve, ) = _tokenPair.getReserves();
      ethAmount = UniswapV2Library.getAmountOut(_swapAmount, tokenReserve, ethReserve);
    } else {
      (uint256 tokenReserve, uint256 ethReserve, ) = _tokenPair.getReserves();
      ethAmount = UniswapV2Library.getAmountOut(_swapAmount, tokenReserve, ethReserve);
    }
  }

  function getAmountOutForUniswapValue(
    IUniswapV2Pair _tokenPair,
    uint256 _swapAmount,
    bool _isEthOut
  ) public view returns (uint256 ethAmount) {
    (ethAmount, ) = getAmountOutForUniswap(_tokenPair, _swapAmount, _isEthOut);
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_cvp","type":"address"},{"internalType":"address","name":"_pipt","type":"address"},{"internalType":"address","name":"_feeManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"swapToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"erc20InAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethInAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"poolOutAmount","type":"uint256"}],"name":"Erc20ToPiptSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethInAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethSwapFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"poolOutAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"poolCommunityFee","type":"uint256"}],"name":"EthToPiptSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OddEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"wethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cvpAmount","type":"uint256"}],"name":"PayoutCVP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"swapToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolInAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethOutAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"erc20OutAmount","type":"uint256"}],"name":"PiptToErc20Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolInAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"poolCommunityFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethOutAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethSwapFee","type":"uint256"}],"name":"PiptToEthSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDefaultSlippage","type":"uint256"}],"name":"SetDefaultSlippage","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"newFeeLevels","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"newFeeAmounts","type":"uint256[]"},{"indexed":true,"internalType":"address","name":"feePayout","type":"address"},{"indexed":true,"internalType":"address","name":"feeManager","type":"address"}],"name":"SetFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"bool","name":"reApprove","type":"bool"},{"indexed":true,"internalType":"address","name":"uniswapPair","type":"address"}],"name":"SetTokenSetting","type":"event"},{"inputs":[{"internalType":"address","name":"_swapToken","type":"address"},{"internalType":"uint256","name":"_swapAmount","type":"uint256"}],"name":"calcErc20Fee","outputs":[{"internalType":"uint256","name":"erc20Fee","type":"uint256"},{"internalType":"uint256","name":"erc20AfterFee","type":"uint256"},{"internalType":"uint256","name":"ethFee","type":"uint256"},{"internalType":"uint256","name":"ethAfterFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"calcEthFee","outputs":[{"internalType":"uint256","name":"ethFee","type":"uint256"},{"internalType":"uint256","name":"ethAfterFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_swapToken","type":"address"},{"internalType":"uint256","name":"_poolAmountOut","type":"uint256"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"calcNeedErc20ToPoolOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolAmountOut","type":"uint256"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"calcNeedEthToPoolOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_swapToken","type":"address"},{"internalType":"uint256","name":"_swapAmount","type":"uint256"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256","name":"_slippage","type":"uint256"},{"internalType":"bool","name":"_withFee","type":"bool"}],"name":"calcSwapErc20ToPiptInputs","outputs":[{"internalType":"uint256[]","name":"tokensInPipt","type":"uint256[]"},{"internalType":"uint256[]","name":"ethInUniswap","type":"uint256[]"},{"internalType":"uint256","name":"poolOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethValue","type":"uint256"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"calcSwapEthToPiptInputs","outputs":[{"internalType":"uint256[]","name":"tokensInPipt","type":"uint256[]"},{"internalType":"uint256[]","name":"ethInUniswap","type":"uint256[]"},{"internalType":"uint256","name":"poolOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_swapToken","type":"address"},{"internalType":"uint256","name":"_poolAmountIn","type":"uint256"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"bool","name":"_withFee","type":"bool"}],"name":"calcSwapPiptToErc20Inputs","outputs":[{"internalType":"uint256[]","name":"tokensOutPipt","type":"uint256[]"},{"internalType":"uint256[]","name":"ethOutUniswap","type":"uint256[]"},{"internalType":"uint256","name":"totalErc20Out","type":"uint256"},{"internalType":"uint256","name":"poolAmountFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolAmountIn","type":"uint256"},{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"calcSwapPiptToEthInputs","outputs":[{"internalType":"uint256[]","name":"tokensOutPipt","type":"uint256[]"},{"internalType":"uint256[]","name":"ethOutUniswap","type":"uint256[]"},{"internalType":"uint256","name":"totalEthOut","type":"uint256"},{"internalType":"uint256","name":"poolAmountFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"oddTokens","type":"address[]"}],"name":"convertOddToCvpAndSendToPayout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cvp","outputs":[{"internalType":"contract TokenInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultSlippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeLevels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePayout","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"fetchUnswapPairsFromFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IUniswapV2Pair","name":"_tokenPair","type":"address"},{"internalType":"uint256","name":"_swapAmount","type":"uint256"},{"internalType":"bool","name":"_isEthOut","type":"bool"}],"name":"getAmountOutForUniswap","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"},{"internalType":"bool","name":"isInverse","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IUniswapV2Pair","name":"_tokenPair","type":"address"},{"internalType":"uint256","name":"_swapAmount","type":"uint256"},{"internalType":"bool","name":"_isEthOut","type":"bool"}],"name":"getAmountOutForUniswapValue","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeeAmounts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeeLevels","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pipt","outputs":[{"internalType":"contract BPoolInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reApproveTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_defaultSlippage","type":"uint256"}],"name":"setDefaultSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_feeLevels","type":"uint256[]"},{"internalType":"uint256[]","name":"_feeAmounts","type":"uint256[]"},{"internalType":"address","name":"_feePayout","type":"address"},{"internalType":"address","name":"_feeManager","type":"address"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"address[]","name":"_pairs","type":"address[]"},{"internalType":"bool[]","name":"_reapprove","type":"bool[]"}],"name":"setTokensSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_swapToken","type":"address"},{"internalType":"uint256","name":"_swapAmount","type":"uint256"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"swapErc20ToPipt","outputs":[{"internalType":"uint256","name":"poolAmountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"swapEthToPipt","outputs":[{"internalType":"uint256","name":"poolAmountOutAfterFee","type":"uint256"},{"internalType":"uint256","name":"oddEth","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolAmountOut","type":"uint256"}],"name":"swapEthToPiptByPoolOut","outputs":[{"internalType":"uint256","name":"poolAmountOutAfterFee","type":"uint256"},{"internalType":"uint256","name":"oddEth","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_swapToken","type":"address"},{"internalType":"uint256","name":"_poolAmountIn","type":"uint256"}],"name":"swapPiptToErc20","outputs":[{"internalType":"uint256","name":"erc20Out","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolAmountIn","type":"uint256"}],"name":"swapPiptToEth","outputs":[{"internalType":"uint256","name":"ethOutAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"uniswapEthPairByTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract TokenInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x60806040523480156200001157600080fd5b506040516200535338038062005353833981810160405260808110156200003757600080fd5b50805160208201516040830151606090930151919290918383838360006200005e6200010c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039586166001600160a01b0319918216179091556002805494861694821694909417909355600380549285169284169290921790915560078054919093169116179055505066470de4df820000600a5550620001109050565b3390565b61523380620001206000396000f3fe6080604052600436106101985760003560e01c806303108b04146101be578063032a96681461021157806307953a93146102585780630b2a9b00146102bd5780630ffe62521461036b578063175360a1146104d75780632828eea8146106415780633929aa59146106845780633eb26b03146106b55780633fc8cef3146106ca57806343394190146106df57806344bd1afd146106f45780634bdde33a1461071e5780634d923532146107785780635487404a1461092a57806364c667ee1461093f578063715018a61461095c5780637ecdb40a14610971578063857af01b146109fc5780638b01808c14610a265780638da5cb5b14610a505780638dccc56714610a65578063a2e6413714610ac4578063a45098f714610aee578063afc41f7a14610b21578063b386711814610b60578063b4b48e5514610b7d578063bbf8eadc14610c32578063bea0ea6014610d0e578063c6135f4314610d4d578063d0fb020314610e04578063d3853b5b14610e19578063d8f14f2b14610e52578063edc001bd14610e67578063f2fde38b14610e97576101b9565b366101b9573332146101a9576101b7565b6101b4600a54610eca565b50505b005b600080fd5b3480156101ca57600080fd5b506101ff600480360360608110156101e157600080fd5b506001600160a01b0381351690602081013590604001351515611084565b60408051918252519081900360200190f35b34801561021d57600080fd5b506102446004803603602081101561023457600080fd5b50356001600160a01b031661109a565b604080519115158252519081900360200190f35b34801561026457600080fd5b5061026d6110af565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102a9578181015183820152602001610291565b505050509050019250505060405180910390f35b3480156102c957600080fd5b506101b7600480360360208110156102e057600080fd5b810190602081018135600160201b8111156102fa57600080fd5b82018360208201111561030c57600080fd5b803590602001918460208302840111600160201b8311171561032d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611107945050505050565b34801561037757600080fd5b506104306004803603608081101561038e57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156103bd57600080fd5b8201836020820111156103cf57600080fd5b803590602001918460208302840111600160201b831117156103f057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505050351515905061166c565b604051808060200180602001858152602001848152602001838103835287818151815260200191508051906020019060200280838360005b83811015610480578181015183820152602001610468565b50505050905001838103825286818151815260200191508051906020019060200280838360005b838110156104bf5781810151838201526020016104a7565b50505050905001965050505050505060405180910390f35b3480156104e357600080fd5b506105a1600480360360a08110156104fa57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561052957600080fd5b82018360208201111561053b57600080fd5b803590602001918460208302840111600160201b8311171561055c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550508235935050506020013515156116be565b604051808060200180602001848152602001838103835286818151815260200191508051906020019060200280838360005b838110156105eb5781810151838201526020016105d3565b50505050905001838103825285818151815260200191508051906020019060200280838360005b8381101561062a578181015183820152602001610612565b505050509050019550505050505060405180910390f35b34801561064d57600080fd5b5061066b6004803603602081101561066457600080fd5b503561170a565b6040805192835260208301919091528051918290030190f35b34801561069057600080fd5b50610699611798565b604080516001600160a01b039092168252519081900360200190f35b3480156106c157600080fd5b5061026d6117a7565b3480156106d657600080fd5b506106996117fd565b3480156106eb57600080fd5b5061069961180c565b34801561070057600080fd5b506101b76004803603602081101561071757600080fd5b503561181b565b34801561072a57600080fd5b5061075f6004803603606081101561074157600080fd5b506001600160a01b03813516906020810135906040013515156118ae565b6040805192835290151560208301528051918290030190f35b34801561078457600080fd5b506101b76004803603606081101561079b57600080fd5b810190602081018135600160201b8111156107b557600080fd5b8201836020820111156107c757600080fd5b803590602001918460208302840111600160201b831117156107e857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083757600080fd5b82018360208201111561084957600080fd5b803590602001918460208302840111600160201b8311171561086a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b957600080fd5b8201836020820111156108cb57600080fd5b803590602001918460208302840111600160201b831117156108ec57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611a7e945050505050565b34801561093657600080fd5b506101ff611c96565b61066b6004803603602081101561095557600080fd5b5035610eca565b34801561096857600080fd5b506101b7611c9c565b34801561097d57600080fd5b506101b76004803603604081101561099457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156109be57600080fd5b8201836020820111156109d057600080fd5b803590602001918460208302840111600160201b831117156109f157600080fd5b509092509050611d2c565b348015610a0857600080fd5b506101ff60048036036020811015610a1f57600080fd5b5035611e87565b348015610a3257600080fd5b506101ff60048036036020811015610a4957600080fd5b5035611ea5565b348015610a5c57600080fd5b50610699611f4b565b348015610a7157600080fd5b50610a9e60048036036040811015610a8857600080fd5b506001600160a01b038135169060200135611f5a565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610ad057600080fd5b506101ff60048036036020811015610ae757600080fd5b5035611fb9565b348015610afa57600080fd5b5061069960048036036020811015610b1157600080fd5b50356001600160a01b0316611fc6565b348015610b2d57600080fd5b506101ff60048036036060811015610b4457600080fd5b506001600160a01b038135169060208101359060400135611fe1565b61066b60048036036020811015610b7657600080fd5b5035612149565b348015610b8957600080fd5b5061043060048036036040811015610ba057600080fd5b81359190810190604081016020820135600160201b811115610bc157600080fd5b820183602082011115610bd357600080fd5b803590602001918460208302840111600160201b83111715610bf457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506121c8945050505050565b348015610c3e57600080fd5b506101b760048036036080811015610c5557600080fd5b810190602081018135600160201b811115610c6f57600080fd5b820183602082011115610c8157600080fd5b803590602001918460208302840111600160201b83111715610ca257600080fd5b919390929091602081019035600160201b811115610cbf57600080fd5b820183602082011115610cd157600080fd5b803590602001918460208302840111600160201b83111715610cf257600080fd5b91935091506001600160a01b03813581169160200135166125cb565b348015610d1a57600080fd5b506101ff60048036036060811015610d3157600080fd5b506001600160a01b03813516906020810135906040013561272a565b348015610d5957600080fd5b506105a160048036036060811015610d7057600080fd5b81359190810190604081016020820135600160201b811115610d9157600080fd5b820183602082011115610da357600080fd5b803590602001918460208302840111600160201b83111715610dc457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505091359250612a1f915050565b348015610e1057600080fd5b50610699613050565b348015610e2557600080fd5b506101ff60048036036040811015610e3c57600080fd5b506001600160a01b03813516906020013561305f565b348015610e5e57600080fd5b5061069961321b565b348015610e7357600080fd5b506101ff60048036036040811015610e8a57600080fd5b508035906020013561322a565b348015610ea357600080fd5b506101b760048036036020811015610eba57600080fd5b50356001600160a01b0316613654565b6000806000610ed83461170a565b9150506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610f2b57600080fd5b505afa158015610f3f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610f6857600080fd5b8101908080516040519392919084600160201b821115610f8757600080fd5b908301906020820185811115610f9c57600080fd5b82518660208202830111600160201b82111715610fb857600080fd5b82525081516020918201928201910280838360005b83811015610fe5578181015183820152602001610fcd565b5050505090500160405250505090506000611001838388612a1f565b92505050600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561105557600080fd5b505af1158015611069573d6000803e3d6000fd5b5050505050611078348261373a565b94509450505050915091565b60006110918484846118ae565b50949350505050565b60096020526000908152604090205460ff1681565b606060048054806020026020016040519081016040528092919081815260200182805480156110fd57602002820191906000526020600020905b8154815260200190600101908083116110e9575b5050505050905090565b333214801561111c575061111a336143e6565b155b611164576040805162461bcd60e51b815260206004820152601460248201527310d3d395149050d517d393d517d0531313d5d15160621b604482015290519081900360640190fd5b805160005b818110156113db57600083828151811061117f57fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156111d357600080fd5b505afa1580156111e7573d6000803e3d6000fd5b505050506040513d60208110156111fd57600080fd5b505184519091506000906112249086908590811061121757fe5b60200260200101516143ec565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561126257600080fd5b505afa158015611276573d6000803e3d6000fd5b505050506040513d606081101561128c57600080fd5b5080516020909101516001600160701b03918216935016905060006112b285848461440a565b90506112e584868a89815181106112c557fe5b60200260200101516001600160a01b03166144e29092919063ffffffff16565b604080516000808252602082019283905263022c0d9f60e01b835260248201818152604483018590523060648401819052608060848501908152845160a486018190526001600160a01b038b169663022c0d9f96899590939092909160c48501918083838b5b8381101561136357818101518382015260200161134b565b50505050905090810190601f1680156113905780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156113b257600080fd5b505af11580156113c6573d6000803e3d6000fd5b50506001909701965061116995505050505050565b50600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561142757600080fd5b505afa15801561143b573d6000803e3d6000fd5b505050506040513d602081101561145157600080fd5b505160025490915060009061146e906001600160a01b03166143ec565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156114ac57600080fd5b505afa1580156114c0573d6000803e3d6000fd5b505050506040513d60608110156114d657600080fd5b5080516020909101516001600160701b03918216935016905060006114fc85838561440a565b600154909150611516906001600160a01b031685876144e2565b604080516000808252602082019283905263022c0d9f60e01b835260248201848152604483018290523060648401819052608060848501908152845160a486018190526001600160a01b038b169663022c0d9f9689969590939092909160c48501918083838a5b8381101561159557818101518382015260200161157d565b50505050905090810190601f1680156115c25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156115e457600080fd5b505af11580156115f8573d6000803e3d6000fd5b505060065460025461161993506001600160a01b03908116925016836144e2565b600654604080518781526020810184905281516001600160a01b03909316927f85dc9ac52b6013481d4ffbf17eacd0201080b84284b03e133365bf5736f87d75929181900390910190a250505050505050565b606080600080600061167e88886121c8565b9297509095509092509050851561169c576116988161170a565b9150505b6116b06116a88a6143ec565b826000611084565b925050945094509450949050565b6060806000806116d86116d08a6143ec565b896001611084565b905084156116ed576116e98161170a565b9150505b6116f8818888612a1f565b93509350935050955095509592505050565b6004546000908190815b81811015611785576004818154811061172957fe5b9060005260206000200154851061177d57611776670de0b6b3a76400006117706005848154811061175657fe5b90600052602060002001548861453990919063ffffffff16565b90614592565b9350611785565b600101611714565b5061179084846145d1565b915050915091565b6003546001600160a01b031681565b606060058054806020026020016040519081016040528092919081815260200182805480156110fd57602002820191906000526020600020908154815260200190600101908083116110e9575050505050905090565b6001546001600160a01b031681565b6006546001600160a01b031681565b611823614613565b6000546001600160a01b03908116911614611873576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b600a8190556040805182815290517f736741f2e67b4d201474b6dba54baed127c2ebe4b99e751e0ef45afc5c6ee5ac9181900360200190a150565b600080600160009054906101000a90046001600160a01b03166001600160a01b0316856001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561190957600080fd5b505afa15801561191d573d6000803e3d6000fd5b505050506040513d602081101561193357600080fd5b50516001600160a01b03161490508261194d57801561194f565b805b156119e757600080866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561199057600080fd5b505afa1580156119a4573d6000803e3d6000fd5b505050506040513d60608110156119ba57600080fd5b5080516020909101516001600160701b0391821693501690506119de86828461440a565b93505050611a76565b600080866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611a2357600080fd5b505afa158015611a37573d6000803e3d6000fd5b505050506040513d6060811015611a4d57600080fd5b5080516020909101516001600160701b039182169350169050611a7186838361440a565b935050505b935093915050565b611a86614613565b6000546001600160a01b03908116911614611ad6576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b8251825181148015611ae85750815181145b611b2d576040805162461bcd60e51b815260206004820152601160248201527013115391d51214d7d393d517d154555053607a1b604482015290519081900360640190fd5b60005b81811015611c8f57838181518110611b4457fe5b602002602001015160086000878481518110611b5c57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550828181518110611bb457fe5b602002602001015160096000878481518110611bcc57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550838181518110611c1757fe5b60200260200101516001600160a01b0316838281518110611c3457fe5b60200260200101511515868381518110611c4a57fe5b60200260200101516001600160a01b03167f9b37efc6175537fc5ac9b6bf56a5f4eaf0dc4f40f8116b36837f7fed9056e8db60405160405180910390a4600101611b30565b5050505050565b600a5481565b611ca4614613565b6000546001600160a01b03908116911614611cf4576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b600080546040516001600160a01b0390911690600080516020615189833981519152908390a3600080546001600160a01b0319169055565b611d34614613565b6000546001600160a01b03908116911614611d84576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b8060005b81811015611c8f57846001600160a01b031663e6a43905858584818110611dab57fe5b6001546040805160e087901b6001600160e01b0319168152602093840295909501356001600160a01b0390811660048701529091166024850152516044808501949293509091829003018186803b158015611e0557600080fd5b505afa158015611e19573d6000803e3d6000fd5b505050506040513d6020811015611e2f57600080fd5b505160086000868685818110611e4157fe5b6001600160a01b03602091820293909301358316845283019390935260409091016000208054939091166001600160a01b03199093169290921790915550600101611d88565b60048181548110611e9457fe5b600091825260209091200154905081565b6000611eb082614617565b60015460408051632e1a7d4d60e01b81526004810184905290519293506001600160a01b0390911691632e1a7d4d9160248082019260009290919082900301818387803b158015611f0057600080fd5b505af1158015611f14573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015611f45573d6000803e3d6000fd5b50919050565b6000546001600160a01b031690565b6000806000806000611f6b876143ec565b90506000611f7b82886001611084565b9050611f868161170a565b90945092508315611fa057611f9d82856000611084565b95505b611fac82846000611084565b9450505092959194509250565b60058181548110611e9457fe5b6008602052600090815260409020546001600160a01b031681565b600080611fee848461322a565b90506000611ffb866143ec565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561203957600080fd5b505afa15801561204d573d6000803e3d6000fd5b505050506040513d606081101561206357600080fd5b50805160209182015160015460408051630dfe168160e01b815290516001600160701b0394851697509390921694506001600160a01b039081169390871692630dfe1681926004808201939291829003018186803b1580156120c457600080fd5b505afa1580156120d8573d6000803e3d6000fd5b505050506040513d60208110156120ee57600080fd5b50516001600160a01b031614156121265761211b6121146103e8611770876103eb614539565b8284614a82565b945050505050612142565b61211b61213b6103e8611770876103eb614539565b8383614a82565b9392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561219c57600080fd5b505af11580156121b0573d6000803e3d6000fd5b50505050506121bf348461373a565b91509150915091565b60608060008084516001600160401b03811180156121e557600080fd5b5060405190808252806020026020018201604052801561220f578160200160208202803683370190505b50935084516001600160401b038111801561222957600080fd5b50604051908082528060200260200182016040528015612253578160200160208202803683370190505b5092506000600360009054906101000a90046001600160a01b03166001600160a01b03166390ad688b6040518163ffffffff1660e01b815260040160806040518083038186803b1580156122a657600080fd5b505afa1580156122ba573d6000803e3d6000fd5b505050506040513d60808110156122d057600080fd5b506040908101516003548251631122d04760e11b8152600481018b90526024810183905230604482015283519294506000936001600160a01b0390921692632245a08e92606480840193919291829003018186803b15801561233157600080fd5b505afa158015612345573d6000803e3d6000fd5b505050506040513d604081101561235b57600080fd5b508051602091820151600354604080516318160ddd60e01b815290519297509294506000936123f0936001600160a01b03909216926318160ddd926004808201939291829003018186803b1580156123b257600080fd5b505afa1580156123c6573d6000803e3d6000fd5b505050506040513d60208110156123dc57600080fd5b505161177084670de0b6b3a7640000614539565b90506000945060005b88518110156125be5760035489516124ad91670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908e908790811061243557fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561247a57600080fd5b505afa15801561248e573d6000803e3d6000fd5b505050506040513d60208110156124a457600080fd5b50518590614539565b8882815181106124b957fe5b6020026020010181815250506000806124d78b848151811061121757fe5b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561250f57600080fd5b505afa158015612523573d6000803e3d6000fd5b505050506040513d606081101561253957600080fd5b5080516020909101518b516001600160701b03928316945091169150612574908b908590811061256557fe5b6020026020010151838361440a565b89848151811061258057fe5b6020026020010181815250506125b289848151811061259b57fe5b602002602001015189614b5a90919063ffffffff16565b975050506001016123f9565b5050505092959194509250565b6007546001600160a01b03163314806125fc57506125e7611f4b565b6001600160a01b0316336001600160a01b0316145b61263f576040805162461bcd60e51b815260206004820152600f60248201526e2727aa2fa322a2afa6a0a720a3a2a960891b604482015290519081900360640190fd5b61264b60048787615045565b5061265860058585615045565b50600680546001600160a01b03199081166001600160a01b03858116918217909355600780549092169284169283179091556040805181815290810188905233907f135646ff0b37ad6450ec7feabebbaf3289860f4abe23d7aace3bc48e15232459908a908a908a908a908060208082019060608301908890880280828437600083820152601f01601f19169091018481038352858152602090810191508690860280828437600083820152604051601f909101601f19169092018290039850909650505050505050a4505050505050565b60006127416001600160a01b038516333086614bb2565b600061274c856143ec565b905060008061275d838760016118ae565b90925090506127766001600160a01b03881684886144e2565b826001600160a01b031663022c0d9f82612791576000612793565b835b8361279e57846127a1565b60005b604080516000808252602082019092523091506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561281b578181015183820152602001612803565b50505050905090810190601f1680156128485780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561286a57600080fd5b505af115801561287e573d6000803e3d6000fd5b50505050600061288d8361170a565b9150506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156128e057600080fd5b505afa1580156128f4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561291d57600080fd5b8101908080516040519392919084600160201b82111561293c57600080fd5b90830190602082018581111561295157600080fd5b82518660208202830111600160201b8211171561296d57600080fd5b82525081516020918201928201910280838360005b8381101561299a578181015183820152602001612982565b5050505090500160405250505090506129b4828289612a1f565b97506129c491508590508761373a565b5050604080518981526020810186905280820188905290516001600160a01b038b169133917fb2383c1452cfa9876e7eb3c9ade99c1353f1b2dbe5f2612cdb0446f181b030e89181900360600190a350505050509392505050565b6060806000612a44612a3d670de0b6b3a76400006117708988614539565b87906145d1565b9550606085516001600160401b0381118015612a5f57600080fd5b50604051908082528060200260200182016040528015612a9957816020015b612a86615090565b815260200190600190039081612a7e5790505b509050600080600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612aed57600080fd5b505afa158015612b01573d6000803e3d6000fd5b505050506040513d6020811015612b1757600080fd5b810190808051906020019092919050505090506000612bf982611770670de0b6b3a7640000612bf3600360009054906101000a90046001600160a01b03166001600160a01b031663f8b2cb4f8f600081518110612b7057fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612bb557600080fd5b505afa158015612bc9573d6000803e3d6000fd5b505050506040513d6020811015612bdf57600080fd5b505161177088670de0b6b3a7640000614539565b90614539565b905060005b8951811015612dba576003548a51612c3a91670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908f908790811061243557fe5b858281518110612c4657fe5b60200260200101516000018181525050612c658a828151811061121757fe5b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015612c9d57600080fd5b505afa158015612cb1573d6000803e3d6000fd5b505050506040513d6060811015612cc757600080fd5b50805160209091015186516001600160701b039283169290911690879084908110612cee57fe5b6020026020010151604001878481518110612d0557fe5b602002602001015160600182815250828152505050612d6a858281518110612d2957fe5b602002602001015160000151868381518110612d4157fe5b602002602001015160600151878481518110612d5957fe5b602002602001015160400151614a82565b858281518110612d7657fe5b60200260200101516020018181525050612db0858281518110612d9557fe5b60200260200101516020015185614b5a90919063ffffffff16565b9350600101612bfe565b50505086516001600160401b0381118015612dd457600080fd5b50604051908082528060200260200182016040528015612dfe578160200160208202803683370190505b50945086516001600160401b0381118015612e1857600080fd5b50604051908082528060200260200182016040528015612e42578160200160208202803683370190505b50935060005b8751811015612f1457612e9d670de0b6b3a7640000611770612e9685611770670de0b6b3a7640000898881518110612e7c57fe5b60200260200101516020015161453990919063ffffffff16565b8c90614539565b858281518110612ea957fe5b6020908102919091010152612ef5670de0b6b3a7640000611770612ecf85828e85614539565b868581518110612edb57fe5b60200260200101516000015161453990919063ffffffff16565b868281518110612f0157fe5b6020908102919091010152600101612e48565b506003548751613043916001600160a01b03169063f8b2cb4f908a90600090612f3957fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612f7e57600080fd5b505afa158015612f92573d6000803e3d6000fd5b505050506040513d6020811015612fa857600080fd5b50518651611770908890600090612fbb57fe5b6020026020010151600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561301157600080fd5b505afa158015613025573d6000803e3d6000fd5b505050506040513d602081101561303b57600080fd5b505190614539565b9250505093509350939050565b6007546001600160a01b031681565b60008061306b83614617565b90506000613078856143ec565b90506000613088828460006118ae565b60015491955091506130a4906001600160a01b031683856144e2565b816001600160a01b031663022c0d9f826130be57856130c1565b60005b836130cd5760006130cf565b865b604080516000808252602082019092523091506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613149578181015183820152602001613131565b50505050905090810190601f1680156131765780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561319857600080fd5b505af11580156131ac573d6000803e3d6000fd5b506131c5925050506001600160a01b03871633866144e2565b604080518681526020810185905280820186905290516001600160a01b0388169133917f3d8b014eb05b16fa729de7d54b5b93c42f1d2b265f79a9648875d8eb84569d7c9181900360600190a350505092915050565b6002546001600160a01b031681565b600080613289600a613283600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612bb557600080fd5b90614b5a565b90506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156132db57600080fd5b505afa1580156132ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561331857600080fd5b8101908080516040519392919084600160201b82111561333757600080fd5b90830190602082018581111561334c57600080fd5b82518660208202830111600160201b8211171561336857600080fd5b82525081516020918201928201910280838360005b8381101561339557818101518382015260200161337d565b5050505090500160405250505090506000815190506060816001600160401b03811180156133c257600080fd5b506040519080825280602002602001820160405280156133fc57816020015b6133e9615090565b8152602001906001900390816133e15790505b5090506060826001600160401b038111801561341757600080fd5b50604051908082528060200260200182016040528015613441578160200160208202803683370190505b5090506000805b8481101561362457600061346187838151811061121757fe5b9050806001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561349c57600080fd5b505afa1580156134b0573d6000803e3d6000fd5b505050506040513d60608110156134c657600080fd5b50805160209091015186516001600160701b0392831692909116908790859081106134ed57fe5b602002602001015160400187858151811061350457fe5b6020908102919091010151606001919091525260035487516135c291670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908c908890811061354a57fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561358f57600080fd5b505afa1580156135a3573d6000803e3d6000fd5b505050506040513d60208110156135b957600080fd5b50518b90614539565b8483815181106135ce57fe5b602002602001018181525050613619836132838685815181106135ed57fe5b602002602001015188868151811061360157fe5b602002602001015160600151898781518110612d5957fe5b925050600101613448565b5061364561363e670de0b6b3a7640000611770848c614539565b8290614b5a565b96505050505050505b92915050565b61365c614613565b6000546001600160a01b039081169116146136ac576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b6001600160a01b0381166136f15760405162461bcd60e51b81526004018080602001828103825260268152602001806150ce6026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602061518983398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060008411613781576040805162461bcd60e51b815260206004820152600c60248201526b11551217d49154555254915160a21b604482015290519081900360640190fd5b600354604080516318832b9760e31b815290516000926001600160a01b03169163c4195cb8916004808301926020929190829003018186803b1580156137c657600080fd5b505afa1580156137da573d6000803e3d6000fd5b505050506040513d60208110156137f057600080fd5b505190506001600160a01b03811615613946576003546040805163afff324960e01b81526001600160a01b039283166004820152905160009284169163afff3249916024808301926020929190829003018186803b15801561385157600080fd5b505afa158015613865573d6000803e3d6000fd5b505050506040513d602081101561387b57600080fd5b5051600354604080516318160ddd60e01b8152905192935083926138ff9289926001600160a01b03909116916318160ddd91600480820192602092909190829003018186803b1580156138cd57600080fd5b505afa1580156138e1573d6000803e3d6000fd5b505050506040513d60208110156138f757600080fd5b505190614b5a565b1115613944576040805162461bcd60e51b815260206004820152600f60248201526e504950545f4d41585f535550504c5960881b604482015290519081900360640190fd5b505b506000806139538661170a565b9150915060006139ed600a613283600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156139af57600080fd5b505afa1580156139c3573d6000803e3d6000fd5b505050506040513d60208110156139d957600080fd5b50516117708a670de0b6b3a7640000614539565b90506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015613a3f57600080fd5b505afa158015613a53573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613a7c57600080fd5b8101908080516040519392919084600160201b821115613a9b57600080fd5b908301906020820185811115613ab057600080fd5b82518660208202830111600160201b82111715613acc57600080fd5b82525081516020918201928201910280838360005b83811015613af9578181015183820152602001613ae1565b5050505090500160405250505090506000815190506060816001600160401b0381118015613b2657600080fd5b50604051908082528060200260200182016040528015613b6057816020015b613b4d615090565b815260200190600190039081613b455790505b5090506060826001600160401b0381118015613b7b57600080fd5b50604051908082528060200260200182016040528015613ba5578160200160208202803683370190505b5090506000805b84811015614061576000613bc587838151811061121757fe5b9050806001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613c0057600080fd5b505afa158015613c14573d6000803e3d6000fd5b505050506040513d6060811015613c2a57600080fd5b50805160209091015186516001600160701b039283169290911690879085908110613c5157fe5b6020026020010151604001878581518110613c6857fe5b602090810291909101015160600191909152526003548751613cae91670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908c908890811061354a57fe5b848381518110613cba57fe5b602002602001018181525050613d01848381518110613cd557fe5b6020026020010151868481518110613ce957fe5b602002602001015160600151878581518110612d5957fe5b858381518110613d0d57fe5b60200260200101516020018181525050613d4e81868481518110613d2d57fe5b60209081029190910181015101516001546001600160a01b031691906144e2565b806001600160a01b031663022c0d9f858481518110613d6957fe5b602002602001015160003060006001600160401b0381118015613d8b57600080fd5b506040519080825280601f01601f191660200182016040528015613db6576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613e1e578181015183820152602001613e06565b50505050905090810190601f168015613e4b5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015613e6d57600080fd5b505af1158015613e81573d6000803e3d6000fd5b50505050613eaf858381518110613e9457fe5b60200260200101516020015184614b5a90919063ffffffff16565b925060096000888481518110613ec157fe5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615613f9a57868281518110613ef957fe5b60200260200101516001600160a01b031663095ea7b3600360009054906101000a90046001600160a01b031660006040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015613f6d57600080fd5b505af1158015613f81573d6000803e3d6000fd5b505050506040513d6020811015613f9757600080fd5b50505b868281518110613fa657fe5b60200260200101516001600160a01b031663095ea7b3600360009054906101000a90046001600160a01b0316868581518110613fde57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561402c57600080fd5b505af1158015614040573d6000803e3d6000fd5b505050506040513d602081101561405657600080fd5b505050600101613bac565b50600080600360009054906101000a90046001600160a01b03166001600160a01b03166390ad688b6040518163ffffffff1660e01b815260040160806040518083038186803b1580156140b357600080fd5b505afa1580156140c7573d6000803e3d6000fd5b505050506040513d60808110156140dd57600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291905050505050915050600360009054906101000a90046001600160a01b03166001600160a01b0316632245a08e8e83306040518463ffffffff1660e01b815260040180848152602001838152602001826001600160a01b031681526020019350505050604080518083038186803b15801561418257600080fd5b505afa158015614196573d6000803e3d6000fd5b505050506040513d60408110156141ac57600080fd5b810190808051906020019092919080519060200190929190505050809350819d50505050336001600160a01b03167ff7093a83d1acda4f50efce57c1c9c84e33f0ac8d1dce73a8c7481a8088d8b2e6898b8f856040518085815260200184815260200183815260200182815260200194505050505060405180910390a2600360009054906101000a90046001600160a01b03166001600160a01b0316634f69c0d48d856040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156142a457818101518382015260200161428c565b505050509050019350505050600060405180830381600087803b1580156142ca57600080fd5b505af11580156142de573d6000803e3d6000fd5b50506003546142fa92506001600160a01b03169050338d6144e2565b61430488836145d1565b995089156143d65760015460408051632e1a7d4d60e01b8152600481018d905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b15801561435957600080fd5b505af115801561436d573d6000803e3d6000fd5b50506040513392508c156108fc0291508c906000818181858888f1935050505015801561439e573d6000803e3d6000fd5b50604080518b8152905133917f9a97090a4f9b5abe836088fa365c3dac3128c8c9bdc5cad5f4c6bda184fa043f919081900360200190a25b5050505050505050509250929050565b3b151590565b6001600160a01b039081166000908152600860205260409020541690565b600080841161444a5760405162461bcd60e51b815260040180806020018281038252602b8152602001806151d3602b913960400191505060405180910390fd5b60008311801561445a5750600082115b6144955760405162461bcd60e51b81526004018080602001828103825260288152602001806151206028913960400191505060405180910390fd5b60006144a3856103e5614c12565b905060006144b18285614c12565b905060006144cb836144c5886103e8614c12565b90614c75565b90508082816144d657fe5b04979650505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052614534908490614cc4565b505050565b6000826145485750600061364e565b8282028284828161455557fe5b04146121425760405162461bcd60e51b81526004018080602001828103825260218152602001806151486021913960400191505060405180910390fd5b600061214283836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250614d75565b600061214283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614e17565b3390565b60006060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561466957600080fd5b505afa15801561467d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156146a657600080fd5b8101908080516040519392919084600160201b8211156146c557600080fd5b9083019060208201858111156146da57600080fd5b82518660208202830111600160201b821117156146f657600080fd5b82525081516020918201928201910280838360005b8381101561472357818101518382015260200161470b565b50505050905001604052505050905060008151905060608060008061474888876121c8565b6003549397509195509350915061476a906001600160a01b031633308b614bb2565b6003546040805163095ea7b360e01b81526001600160a01b0390921660048301819052602483018b90529051909163095ea7b39160448083019260209291908290030181600087803b1580156147bf57600080fd5b505af11580156147d3573d6000803e3d6000fd5b505050506040513d60208110156147e957600080fd5b50506003546040805163b02f0b7360e01b8152600481018b8152602482019283528751604483015287516001600160a01b039094169363b02f0b73938d938a93926064909101906020858101910280838360005b8381101561485557818101518382015260200161483d565b505050509050019350505050600060405180830381600087803b15801561487b57600080fd5b505af115801561488f573d6000803e3d6000fd5b5050505060005b85811015614a195760006148af88838151811061121757fe5b90506148d5818784815181106148c157fe5b60200260200101518a85815181106112c557fe5b806001600160a01b031663022c0d9f60008785815181106148f257fe5b60200260200101513060006001600160401b038111801561491257600080fd5b506040519080825280601f01601f19166020018201604052801561493d576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156149a557818101518382015260200161498d565b50505050905090810190601f1680156149d25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156149f457600080fd5b505af1158015614a08573d6000803e3d6000fd5b505060019093019250614896915050565b50600080614a268461170a565b604080518d81526020810187905280820183905260608101849052905192945090925033917f32f099d0ac2a3a3a9b94fdb99b030574e3065fa12da504405e6262c1ae5585219181900360800190a29998505050505050505050565b6000808411614ac25760405162461bcd60e51b815260040180806020018281038252602c8152602001806150f4602c913960400191505060405180910390fd5b600083118015614ad25750600082115b614b0d5760405162461bcd60e51b81526004018080602001828103825260288152602001806151206028913960400191505060405180910390fd5b6000614b256103e8614b1f8688614c12565b90614c12565b90506000614b396103e5614b1f8689614e71565b9050614b506001828481614b4957fe5b0490614c75565b9695505050505050565b600082820183811015612142576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052614c0c908590614cc4565b50505050565b6000811580614c2d57505080820282828281614c2a57fe5b04145b61364e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561364e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6060614d19826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614ec19092919063ffffffff16565b80519091501561453457808060200190516020811015614d3857600080fd5b50516145345760405162461bcd60e51b815260040180806020018281038252602a8152602001806151a9602a913960400191505060405180910390fd5b60008183614e015760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614dc6578181015183820152602001614dae565b50505050905090810190601f168015614df35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614e0d57fe5b0495945050505050565b60008184841115614e695760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614dc6578181015183820152602001614dae565b505050900390565b8082038281111561364e576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6060614ed08484600085614ed8565b949350505050565b6060614ee3856143e6565b614f34576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310614f735780518252601f199092019160209182019101614f54565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614fd5576040519150601f19603f3d011682016040523d82523d6000602084013e614fda565b606091505b50915091508115614fee579150614ed09050565b805115614ffe5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315614dc6578181015183820152602001614dae565b828054828255906000526020600020908101928215615080579160200282015b82811115615080578235825591602001919060010190615065565b5061508c9291506150b8565b5090565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b5b8082111561508c57600081556001016150b956fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a26469706673582212200fc88a9d36f2b5bcd0e6042beb78907cc1236878659050320dc956c8077c375a64736f6c634300060c0033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000038e4adb44ef08f22f5b5b76a8f0c2d0dcbe7dca1000000000000000000000000b4bebd34f6daafd808f73de0d10235a92fbb6c3d000000000000000000000000b258302c3f209491d604165549079680708581cc

Deployed Bytecode

0x6080604052600436106101985760003560e01c806303108b04146101be578063032a96681461021157806307953a93146102585780630b2a9b00146102bd5780630ffe62521461036b578063175360a1146104d75780632828eea8146106415780633929aa59146106845780633eb26b03146106b55780633fc8cef3146106ca57806343394190146106df57806344bd1afd146106f45780634bdde33a1461071e5780634d923532146107785780635487404a1461092a57806364c667ee1461093f578063715018a61461095c5780637ecdb40a14610971578063857af01b146109fc5780638b01808c14610a265780638da5cb5b14610a505780638dccc56714610a65578063a2e6413714610ac4578063a45098f714610aee578063afc41f7a14610b21578063b386711814610b60578063b4b48e5514610b7d578063bbf8eadc14610c32578063bea0ea6014610d0e578063c6135f4314610d4d578063d0fb020314610e04578063d3853b5b14610e19578063d8f14f2b14610e52578063edc001bd14610e67578063f2fde38b14610e97576101b9565b366101b9573332146101a9576101b7565b6101b4600a54610eca565b50505b005b600080fd5b3480156101ca57600080fd5b506101ff600480360360608110156101e157600080fd5b506001600160a01b0381351690602081013590604001351515611084565b60408051918252519081900360200190f35b34801561021d57600080fd5b506102446004803603602081101561023457600080fd5b50356001600160a01b031661109a565b604080519115158252519081900360200190f35b34801561026457600080fd5b5061026d6110af565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102a9578181015183820152602001610291565b505050509050019250505060405180910390f35b3480156102c957600080fd5b506101b7600480360360208110156102e057600080fd5b810190602081018135600160201b8111156102fa57600080fd5b82018360208201111561030c57600080fd5b803590602001918460208302840111600160201b8311171561032d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611107945050505050565b34801561037757600080fd5b506104306004803603608081101561038e57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156103bd57600080fd5b8201836020820111156103cf57600080fd5b803590602001918460208302840111600160201b831117156103f057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505050351515905061166c565b604051808060200180602001858152602001848152602001838103835287818151815260200191508051906020019060200280838360005b83811015610480578181015183820152602001610468565b50505050905001838103825286818151815260200191508051906020019060200280838360005b838110156104bf5781810151838201526020016104a7565b50505050905001965050505050505060405180910390f35b3480156104e357600080fd5b506105a1600480360360a08110156104fa57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561052957600080fd5b82018360208201111561053b57600080fd5b803590602001918460208302840111600160201b8311171561055c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550508235935050506020013515156116be565b604051808060200180602001848152602001838103835286818151815260200191508051906020019060200280838360005b838110156105eb5781810151838201526020016105d3565b50505050905001838103825285818151815260200191508051906020019060200280838360005b8381101561062a578181015183820152602001610612565b505050509050019550505050505060405180910390f35b34801561064d57600080fd5b5061066b6004803603602081101561066457600080fd5b503561170a565b6040805192835260208301919091528051918290030190f35b34801561069057600080fd5b50610699611798565b604080516001600160a01b039092168252519081900360200190f35b3480156106c157600080fd5b5061026d6117a7565b3480156106d657600080fd5b506106996117fd565b3480156106eb57600080fd5b5061069961180c565b34801561070057600080fd5b506101b76004803603602081101561071757600080fd5b503561181b565b34801561072a57600080fd5b5061075f6004803603606081101561074157600080fd5b506001600160a01b03813516906020810135906040013515156118ae565b6040805192835290151560208301528051918290030190f35b34801561078457600080fd5b506101b76004803603606081101561079b57600080fd5b810190602081018135600160201b8111156107b557600080fd5b8201836020820111156107c757600080fd5b803590602001918460208302840111600160201b831117156107e857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083757600080fd5b82018360208201111561084957600080fd5b803590602001918460208302840111600160201b8311171561086a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b957600080fd5b8201836020820111156108cb57600080fd5b803590602001918460208302840111600160201b831117156108ec57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611a7e945050505050565b34801561093657600080fd5b506101ff611c96565b61066b6004803603602081101561095557600080fd5b5035610eca565b34801561096857600080fd5b506101b7611c9c565b34801561097d57600080fd5b506101b76004803603604081101561099457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156109be57600080fd5b8201836020820111156109d057600080fd5b803590602001918460208302840111600160201b831117156109f157600080fd5b509092509050611d2c565b348015610a0857600080fd5b506101ff60048036036020811015610a1f57600080fd5b5035611e87565b348015610a3257600080fd5b506101ff60048036036020811015610a4957600080fd5b5035611ea5565b348015610a5c57600080fd5b50610699611f4b565b348015610a7157600080fd5b50610a9e60048036036040811015610a8857600080fd5b506001600160a01b038135169060200135611f5a565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610ad057600080fd5b506101ff60048036036020811015610ae757600080fd5b5035611fb9565b348015610afa57600080fd5b5061069960048036036020811015610b1157600080fd5b50356001600160a01b0316611fc6565b348015610b2d57600080fd5b506101ff60048036036060811015610b4457600080fd5b506001600160a01b038135169060208101359060400135611fe1565b61066b60048036036020811015610b7657600080fd5b5035612149565b348015610b8957600080fd5b5061043060048036036040811015610ba057600080fd5b81359190810190604081016020820135600160201b811115610bc157600080fd5b820183602082011115610bd357600080fd5b803590602001918460208302840111600160201b83111715610bf457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506121c8945050505050565b348015610c3e57600080fd5b506101b760048036036080811015610c5557600080fd5b810190602081018135600160201b811115610c6f57600080fd5b820183602082011115610c8157600080fd5b803590602001918460208302840111600160201b83111715610ca257600080fd5b919390929091602081019035600160201b811115610cbf57600080fd5b820183602082011115610cd157600080fd5b803590602001918460208302840111600160201b83111715610cf257600080fd5b91935091506001600160a01b03813581169160200135166125cb565b348015610d1a57600080fd5b506101ff60048036036060811015610d3157600080fd5b506001600160a01b03813516906020810135906040013561272a565b348015610d5957600080fd5b506105a160048036036060811015610d7057600080fd5b81359190810190604081016020820135600160201b811115610d9157600080fd5b820183602082011115610da357600080fd5b803590602001918460208302840111600160201b83111715610dc457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505091359250612a1f915050565b348015610e1057600080fd5b50610699613050565b348015610e2557600080fd5b506101ff60048036036040811015610e3c57600080fd5b506001600160a01b03813516906020013561305f565b348015610e5e57600080fd5b5061069961321b565b348015610e7357600080fd5b506101ff60048036036040811015610e8a57600080fd5b508035906020013561322a565b348015610ea357600080fd5b506101b760048036036020811015610eba57600080fd5b50356001600160a01b0316613654565b6000806000610ed83461170a565b9150506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610f2b57600080fd5b505afa158015610f3f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610f6857600080fd5b8101908080516040519392919084600160201b821115610f8757600080fd5b908301906020820185811115610f9c57600080fd5b82518660208202830111600160201b82111715610fb857600080fd5b82525081516020918201928201910280838360005b83811015610fe5578181015183820152602001610fcd565b5050505090500160405250505090506000611001838388612a1f565b92505050600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561105557600080fd5b505af1158015611069573d6000803e3d6000fd5b5050505050611078348261373a565b94509450505050915091565b60006110918484846118ae565b50949350505050565b60096020526000908152604090205460ff1681565b606060048054806020026020016040519081016040528092919081815260200182805480156110fd57602002820191906000526020600020905b8154815260200190600101908083116110e9575b5050505050905090565b333214801561111c575061111a336143e6565b155b611164576040805162461bcd60e51b815260206004820152601460248201527310d3d395149050d517d393d517d0531313d5d15160621b604482015290519081900360640190fd5b805160005b818110156113db57600083828151811061117f57fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156111d357600080fd5b505afa1580156111e7573d6000803e3d6000fd5b505050506040513d60208110156111fd57600080fd5b505184519091506000906112249086908590811061121757fe5b60200260200101516143ec565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561126257600080fd5b505afa158015611276573d6000803e3d6000fd5b505050506040513d606081101561128c57600080fd5b5080516020909101516001600160701b03918216935016905060006112b285848461440a565b90506112e584868a89815181106112c557fe5b60200260200101516001600160a01b03166144e29092919063ffffffff16565b604080516000808252602082019283905263022c0d9f60e01b835260248201818152604483018590523060648401819052608060848501908152845160a486018190526001600160a01b038b169663022c0d9f96899590939092909160c48501918083838b5b8381101561136357818101518382015260200161134b565b50505050905090810190601f1680156113905780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156113b257600080fd5b505af11580156113c6573d6000803e3d6000fd5b50506001909701965061116995505050505050565b50600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561142757600080fd5b505afa15801561143b573d6000803e3d6000fd5b505050506040513d602081101561145157600080fd5b505160025490915060009061146e906001600160a01b03166143ec565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156114ac57600080fd5b505afa1580156114c0573d6000803e3d6000fd5b505050506040513d60608110156114d657600080fd5b5080516020909101516001600160701b03918216935016905060006114fc85838561440a565b600154909150611516906001600160a01b031685876144e2565b604080516000808252602082019283905263022c0d9f60e01b835260248201848152604483018290523060648401819052608060848501908152845160a486018190526001600160a01b038b169663022c0d9f9689969590939092909160c48501918083838a5b8381101561159557818101518382015260200161157d565b50505050905090810190601f1680156115c25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156115e457600080fd5b505af11580156115f8573d6000803e3d6000fd5b505060065460025461161993506001600160a01b03908116925016836144e2565b600654604080518781526020810184905281516001600160a01b03909316927f85dc9ac52b6013481d4ffbf17eacd0201080b84284b03e133365bf5736f87d75929181900390910190a250505050505050565b606080600080600061167e88886121c8565b9297509095509092509050851561169c576116988161170a565b9150505b6116b06116a88a6143ec565b826000611084565b925050945094509450949050565b6060806000806116d86116d08a6143ec565b896001611084565b905084156116ed576116e98161170a565b9150505b6116f8818888612a1f565b93509350935050955095509592505050565b6004546000908190815b81811015611785576004818154811061172957fe5b9060005260206000200154851061177d57611776670de0b6b3a76400006117706005848154811061175657fe5b90600052602060002001548861453990919063ffffffff16565b90614592565b9350611785565b600101611714565b5061179084846145d1565b915050915091565b6003546001600160a01b031681565b606060058054806020026020016040519081016040528092919081815260200182805480156110fd57602002820191906000526020600020908154815260200190600101908083116110e9575050505050905090565b6001546001600160a01b031681565b6006546001600160a01b031681565b611823614613565b6000546001600160a01b03908116911614611873576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b600a8190556040805182815290517f736741f2e67b4d201474b6dba54baed127c2ebe4b99e751e0ef45afc5c6ee5ac9181900360200190a150565b600080600160009054906101000a90046001600160a01b03166001600160a01b0316856001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561190957600080fd5b505afa15801561191d573d6000803e3d6000fd5b505050506040513d602081101561193357600080fd5b50516001600160a01b03161490508261194d57801561194f565b805b156119e757600080866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561199057600080fd5b505afa1580156119a4573d6000803e3d6000fd5b505050506040513d60608110156119ba57600080fd5b5080516020909101516001600160701b0391821693501690506119de86828461440a565b93505050611a76565b600080866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611a2357600080fd5b505afa158015611a37573d6000803e3d6000fd5b505050506040513d6060811015611a4d57600080fd5b5080516020909101516001600160701b039182169350169050611a7186838361440a565b935050505b935093915050565b611a86614613565b6000546001600160a01b03908116911614611ad6576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b8251825181148015611ae85750815181145b611b2d576040805162461bcd60e51b815260206004820152601160248201527013115391d51214d7d393d517d154555053607a1b604482015290519081900360640190fd5b60005b81811015611c8f57838181518110611b4457fe5b602002602001015160086000878481518110611b5c57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550828181518110611bb457fe5b602002602001015160096000878481518110611bcc57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550838181518110611c1757fe5b60200260200101516001600160a01b0316838281518110611c3457fe5b60200260200101511515868381518110611c4a57fe5b60200260200101516001600160a01b03167f9b37efc6175537fc5ac9b6bf56a5f4eaf0dc4f40f8116b36837f7fed9056e8db60405160405180910390a4600101611b30565b5050505050565b600a5481565b611ca4614613565b6000546001600160a01b03908116911614611cf4576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b600080546040516001600160a01b0390911690600080516020615189833981519152908390a3600080546001600160a01b0319169055565b611d34614613565b6000546001600160a01b03908116911614611d84576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b8060005b81811015611c8f57846001600160a01b031663e6a43905858584818110611dab57fe5b6001546040805160e087901b6001600160e01b0319168152602093840295909501356001600160a01b0390811660048701529091166024850152516044808501949293509091829003018186803b158015611e0557600080fd5b505afa158015611e19573d6000803e3d6000fd5b505050506040513d6020811015611e2f57600080fd5b505160086000868685818110611e4157fe5b6001600160a01b03602091820293909301358316845283019390935260409091016000208054939091166001600160a01b03199093169290921790915550600101611d88565b60048181548110611e9457fe5b600091825260209091200154905081565b6000611eb082614617565b60015460408051632e1a7d4d60e01b81526004810184905290519293506001600160a01b0390911691632e1a7d4d9160248082019260009290919082900301818387803b158015611f0057600080fd5b505af1158015611f14573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015611f45573d6000803e3d6000fd5b50919050565b6000546001600160a01b031690565b6000806000806000611f6b876143ec565b90506000611f7b82886001611084565b9050611f868161170a565b90945092508315611fa057611f9d82856000611084565b95505b611fac82846000611084565b9450505092959194509250565b60058181548110611e9457fe5b6008602052600090815260409020546001600160a01b031681565b600080611fee848461322a565b90506000611ffb866143ec565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561203957600080fd5b505afa15801561204d573d6000803e3d6000fd5b505050506040513d606081101561206357600080fd5b50805160209182015160015460408051630dfe168160e01b815290516001600160701b0394851697509390921694506001600160a01b039081169390871692630dfe1681926004808201939291829003018186803b1580156120c457600080fd5b505afa1580156120d8573d6000803e3d6000fd5b505050506040513d60208110156120ee57600080fd5b50516001600160a01b031614156121265761211b6121146103e8611770876103eb614539565b8284614a82565b945050505050612142565b61211b61213b6103e8611770876103eb614539565b8383614a82565b9392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561219c57600080fd5b505af11580156121b0573d6000803e3d6000fd5b50505050506121bf348461373a565b91509150915091565b60608060008084516001600160401b03811180156121e557600080fd5b5060405190808252806020026020018201604052801561220f578160200160208202803683370190505b50935084516001600160401b038111801561222957600080fd5b50604051908082528060200260200182016040528015612253578160200160208202803683370190505b5092506000600360009054906101000a90046001600160a01b03166001600160a01b03166390ad688b6040518163ffffffff1660e01b815260040160806040518083038186803b1580156122a657600080fd5b505afa1580156122ba573d6000803e3d6000fd5b505050506040513d60808110156122d057600080fd5b506040908101516003548251631122d04760e11b8152600481018b90526024810183905230604482015283519294506000936001600160a01b0390921692632245a08e92606480840193919291829003018186803b15801561233157600080fd5b505afa158015612345573d6000803e3d6000fd5b505050506040513d604081101561235b57600080fd5b508051602091820151600354604080516318160ddd60e01b815290519297509294506000936123f0936001600160a01b03909216926318160ddd926004808201939291829003018186803b1580156123b257600080fd5b505afa1580156123c6573d6000803e3d6000fd5b505050506040513d60208110156123dc57600080fd5b505161177084670de0b6b3a7640000614539565b90506000945060005b88518110156125be5760035489516124ad91670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908e908790811061243557fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561247a57600080fd5b505afa15801561248e573d6000803e3d6000fd5b505050506040513d60208110156124a457600080fd5b50518590614539565b8882815181106124b957fe5b6020026020010181815250506000806124d78b848151811061121757fe5b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561250f57600080fd5b505afa158015612523573d6000803e3d6000fd5b505050506040513d606081101561253957600080fd5b5080516020909101518b516001600160701b03928316945091169150612574908b908590811061256557fe5b6020026020010151838361440a565b89848151811061258057fe5b6020026020010181815250506125b289848151811061259b57fe5b602002602001015189614b5a90919063ffffffff16565b975050506001016123f9565b5050505092959194509250565b6007546001600160a01b03163314806125fc57506125e7611f4b565b6001600160a01b0316336001600160a01b0316145b61263f576040805162461bcd60e51b815260206004820152600f60248201526e2727aa2fa322a2afa6a0a720a3a2a960891b604482015290519081900360640190fd5b61264b60048787615045565b5061265860058585615045565b50600680546001600160a01b03199081166001600160a01b03858116918217909355600780549092169284169283179091556040805181815290810188905233907f135646ff0b37ad6450ec7feabebbaf3289860f4abe23d7aace3bc48e15232459908a908a908a908a908060208082019060608301908890880280828437600083820152601f01601f19169091018481038352858152602090810191508690860280828437600083820152604051601f909101601f19169092018290039850909650505050505050a4505050505050565b60006127416001600160a01b038516333086614bb2565b600061274c856143ec565b905060008061275d838760016118ae565b90925090506127766001600160a01b03881684886144e2565b826001600160a01b031663022c0d9f82612791576000612793565b835b8361279e57846127a1565b60005b604080516000808252602082019092523091506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561281b578181015183820152602001612803565b50505050905090810190601f1680156128485780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561286a57600080fd5b505af115801561287e573d6000803e3d6000fd5b50505050600061288d8361170a565b9150506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156128e057600080fd5b505afa1580156128f4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561291d57600080fd5b8101908080516040519392919084600160201b82111561293c57600080fd5b90830190602082018581111561295157600080fd5b82518660208202830111600160201b8211171561296d57600080fd5b82525081516020918201928201910280838360005b8381101561299a578181015183820152602001612982565b5050505090500160405250505090506129b4828289612a1f565b97506129c491508590508761373a565b5050604080518981526020810186905280820188905290516001600160a01b038b169133917fb2383c1452cfa9876e7eb3c9ade99c1353f1b2dbe5f2612cdb0446f181b030e89181900360600190a350505050509392505050565b6060806000612a44612a3d670de0b6b3a76400006117708988614539565b87906145d1565b9550606085516001600160401b0381118015612a5f57600080fd5b50604051908082528060200260200182016040528015612a9957816020015b612a86615090565b815260200190600190039081612a7e5790505b509050600080600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612aed57600080fd5b505afa158015612b01573d6000803e3d6000fd5b505050506040513d6020811015612b1757600080fd5b810190808051906020019092919050505090506000612bf982611770670de0b6b3a7640000612bf3600360009054906101000a90046001600160a01b03166001600160a01b031663f8b2cb4f8f600081518110612b7057fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612bb557600080fd5b505afa158015612bc9573d6000803e3d6000fd5b505050506040513d6020811015612bdf57600080fd5b505161177088670de0b6b3a7640000614539565b90614539565b905060005b8951811015612dba576003548a51612c3a91670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908f908790811061243557fe5b858281518110612c4657fe5b60200260200101516000018181525050612c658a828151811061121757fe5b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015612c9d57600080fd5b505afa158015612cb1573d6000803e3d6000fd5b505050506040513d6060811015612cc757600080fd5b50805160209091015186516001600160701b039283169290911690879084908110612cee57fe5b6020026020010151604001878481518110612d0557fe5b602002602001015160600182815250828152505050612d6a858281518110612d2957fe5b602002602001015160000151868381518110612d4157fe5b602002602001015160600151878481518110612d5957fe5b602002602001015160400151614a82565b858281518110612d7657fe5b60200260200101516020018181525050612db0858281518110612d9557fe5b60200260200101516020015185614b5a90919063ffffffff16565b9350600101612bfe565b50505086516001600160401b0381118015612dd457600080fd5b50604051908082528060200260200182016040528015612dfe578160200160208202803683370190505b50945086516001600160401b0381118015612e1857600080fd5b50604051908082528060200260200182016040528015612e42578160200160208202803683370190505b50935060005b8751811015612f1457612e9d670de0b6b3a7640000611770612e9685611770670de0b6b3a7640000898881518110612e7c57fe5b60200260200101516020015161453990919063ffffffff16565b8c90614539565b858281518110612ea957fe5b6020908102919091010152612ef5670de0b6b3a7640000611770612ecf85828e85614539565b868581518110612edb57fe5b60200260200101516000015161453990919063ffffffff16565b868281518110612f0157fe5b6020908102919091010152600101612e48565b506003548751613043916001600160a01b03169063f8b2cb4f908a90600090612f3957fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612f7e57600080fd5b505afa158015612f92573d6000803e3d6000fd5b505050506040513d6020811015612fa857600080fd5b50518651611770908890600090612fbb57fe5b6020026020010151600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561301157600080fd5b505afa158015613025573d6000803e3d6000fd5b505050506040513d602081101561303b57600080fd5b505190614539565b9250505093509350939050565b6007546001600160a01b031681565b60008061306b83614617565b90506000613078856143ec565b90506000613088828460006118ae565b60015491955091506130a4906001600160a01b031683856144e2565b816001600160a01b031663022c0d9f826130be57856130c1565b60005b836130cd5760006130cf565b865b604080516000808252602082019092523091506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613149578181015183820152602001613131565b50505050905090810190601f1680156131765780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561319857600080fd5b505af11580156131ac573d6000803e3d6000fd5b506131c5925050506001600160a01b03871633866144e2565b604080518681526020810185905280820186905290516001600160a01b0388169133917f3d8b014eb05b16fa729de7d54b5b93c42f1d2b265f79a9648875d8eb84569d7c9181900360600190a350505092915050565b6002546001600160a01b031681565b600080613289600a613283600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612bb557600080fd5b90614b5a565b90506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156132db57600080fd5b505afa1580156132ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561331857600080fd5b8101908080516040519392919084600160201b82111561333757600080fd5b90830190602082018581111561334c57600080fd5b82518660208202830111600160201b8211171561336857600080fd5b82525081516020918201928201910280838360005b8381101561339557818101518382015260200161337d565b5050505090500160405250505090506000815190506060816001600160401b03811180156133c257600080fd5b506040519080825280602002602001820160405280156133fc57816020015b6133e9615090565b8152602001906001900390816133e15790505b5090506060826001600160401b038111801561341757600080fd5b50604051908082528060200260200182016040528015613441578160200160208202803683370190505b5090506000805b8481101561362457600061346187838151811061121757fe5b9050806001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561349c57600080fd5b505afa1580156134b0573d6000803e3d6000fd5b505050506040513d60608110156134c657600080fd5b50805160209091015186516001600160701b0392831692909116908790859081106134ed57fe5b602002602001015160400187858151811061350457fe5b6020908102919091010151606001919091525260035487516135c291670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908c908890811061354a57fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561358f57600080fd5b505afa1580156135a3573d6000803e3d6000fd5b505050506040513d60208110156135b957600080fd5b50518b90614539565b8483815181106135ce57fe5b602002602001018181525050613619836132838685815181106135ed57fe5b602002602001015188868151811061360157fe5b602002602001015160600151898781518110612d5957fe5b925050600101613448565b5061364561363e670de0b6b3a7640000611770848c614539565b8290614b5a565b96505050505050505b92915050565b61365c614613565b6000546001600160a01b039081169116146136ac576040805162461bcd60e51b81526020600482018190526024820152600080516020615169833981519152604482015290519081900360640190fd5b6001600160a01b0381166136f15760405162461bcd60e51b81526004018080602001828103825260268152602001806150ce6026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602061518983398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060008411613781576040805162461bcd60e51b815260206004820152600c60248201526b11551217d49154555254915160a21b604482015290519081900360640190fd5b600354604080516318832b9760e31b815290516000926001600160a01b03169163c4195cb8916004808301926020929190829003018186803b1580156137c657600080fd5b505afa1580156137da573d6000803e3d6000fd5b505050506040513d60208110156137f057600080fd5b505190506001600160a01b03811615613946576003546040805163afff324960e01b81526001600160a01b039283166004820152905160009284169163afff3249916024808301926020929190829003018186803b15801561385157600080fd5b505afa158015613865573d6000803e3d6000fd5b505050506040513d602081101561387b57600080fd5b5051600354604080516318160ddd60e01b8152905192935083926138ff9289926001600160a01b03909116916318160ddd91600480820192602092909190829003018186803b1580156138cd57600080fd5b505afa1580156138e1573d6000803e3d6000fd5b505050506040513d60208110156138f757600080fd5b505190614b5a565b1115613944576040805162461bcd60e51b815260206004820152600f60248201526e504950545f4d41585f535550504c5960881b604482015290519081900360640190fd5b505b506000806139538661170a565b9150915060006139ed600a613283600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156139af57600080fd5b505afa1580156139c3573d6000803e3d6000fd5b505050506040513d60208110156139d957600080fd5b50516117708a670de0b6b3a7640000614539565b90506060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015613a3f57600080fd5b505afa158015613a53573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613a7c57600080fd5b8101908080516040519392919084600160201b821115613a9b57600080fd5b908301906020820185811115613ab057600080fd5b82518660208202830111600160201b82111715613acc57600080fd5b82525081516020918201928201910280838360005b83811015613af9578181015183820152602001613ae1565b5050505090500160405250505090506000815190506060816001600160401b0381118015613b2657600080fd5b50604051908082528060200260200182016040528015613b6057816020015b613b4d615090565b815260200190600190039081613b455790505b5090506060826001600160401b0381118015613b7b57600080fd5b50604051908082528060200260200182016040528015613ba5578160200160208202803683370190505b5090506000805b84811015614061576000613bc587838151811061121757fe5b9050806001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613c0057600080fd5b505afa158015613c14573d6000803e3d6000fd5b505050506040513d6060811015613c2a57600080fd5b50805160209091015186516001600160701b039283169290911690879085908110613c5157fe5b6020026020010151604001878581518110613c6857fe5b602090810291909101015160600191909152526003548751613cae91670de0b6b3a764000091611770916001600160a01b03169063f8b2cb4f908c908890811061354a57fe5b848381518110613cba57fe5b602002602001018181525050613d01848381518110613cd557fe5b6020026020010151868481518110613ce957fe5b602002602001015160600151878581518110612d5957fe5b858381518110613d0d57fe5b60200260200101516020018181525050613d4e81868481518110613d2d57fe5b60209081029190910181015101516001546001600160a01b031691906144e2565b806001600160a01b031663022c0d9f858481518110613d6957fe5b602002602001015160003060006001600160401b0381118015613d8b57600080fd5b506040519080825280601f01601f191660200182016040528015613db6576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613e1e578181015183820152602001613e06565b50505050905090810190601f168015613e4b5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015613e6d57600080fd5b505af1158015613e81573d6000803e3d6000fd5b50505050613eaf858381518110613e9457fe5b60200260200101516020015184614b5a90919063ffffffff16565b925060096000888481518110613ec157fe5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615613f9a57868281518110613ef957fe5b60200260200101516001600160a01b031663095ea7b3600360009054906101000a90046001600160a01b031660006040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015613f6d57600080fd5b505af1158015613f81573d6000803e3d6000fd5b505050506040513d6020811015613f9757600080fd5b50505b868281518110613fa657fe5b60200260200101516001600160a01b031663095ea7b3600360009054906101000a90046001600160a01b0316868581518110613fde57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561402c57600080fd5b505af1158015614040573d6000803e3d6000fd5b505050506040513d602081101561405657600080fd5b505050600101613bac565b50600080600360009054906101000a90046001600160a01b03166001600160a01b03166390ad688b6040518163ffffffff1660e01b815260040160806040518083038186803b1580156140b357600080fd5b505afa1580156140c7573d6000803e3d6000fd5b505050506040513d60808110156140dd57600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291905050505050915050600360009054906101000a90046001600160a01b03166001600160a01b0316632245a08e8e83306040518463ffffffff1660e01b815260040180848152602001838152602001826001600160a01b031681526020019350505050604080518083038186803b15801561418257600080fd5b505afa158015614196573d6000803e3d6000fd5b505050506040513d60408110156141ac57600080fd5b810190808051906020019092919080519060200190929190505050809350819d50505050336001600160a01b03167ff7093a83d1acda4f50efce57c1c9c84e33f0ac8d1dce73a8c7481a8088d8b2e6898b8f856040518085815260200184815260200183815260200182815260200194505050505060405180910390a2600360009054906101000a90046001600160a01b03166001600160a01b0316634f69c0d48d856040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156142a457818101518382015260200161428c565b505050509050019350505050600060405180830381600087803b1580156142ca57600080fd5b505af11580156142de573d6000803e3d6000fd5b50506003546142fa92506001600160a01b03169050338d6144e2565b61430488836145d1565b995089156143d65760015460408051632e1a7d4d60e01b8152600481018d905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b15801561435957600080fd5b505af115801561436d573d6000803e3d6000fd5b50506040513392508c156108fc0291508c906000818181858888f1935050505015801561439e573d6000803e3d6000fd5b50604080518b8152905133917f9a97090a4f9b5abe836088fa365c3dac3128c8c9bdc5cad5f4c6bda184fa043f919081900360200190a25b5050505050505050509250929050565b3b151590565b6001600160a01b039081166000908152600860205260409020541690565b600080841161444a5760405162461bcd60e51b815260040180806020018281038252602b8152602001806151d3602b913960400191505060405180910390fd5b60008311801561445a5750600082115b6144955760405162461bcd60e51b81526004018080602001828103825260288152602001806151206028913960400191505060405180910390fd5b60006144a3856103e5614c12565b905060006144b18285614c12565b905060006144cb836144c5886103e8614c12565b90614c75565b90508082816144d657fe5b04979650505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052614534908490614cc4565b505050565b6000826145485750600061364e565b8282028284828161455557fe5b04146121425760405162461bcd60e51b81526004018080602001828103825260218152602001806151486021913960400191505060405180910390fd5b600061214283836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250614d75565b600061214283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614e17565b3390565b60006060600360009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561466957600080fd5b505afa15801561467d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156146a657600080fd5b8101908080516040519392919084600160201b8211156146c557600080fd5b9083019060208201858111156146da57600080fd5b82518660208202830111600160201b821117156146f657600080fd5b82525081516020918201928201910280838360005b8381101561472357818101518382015260200161470b565b50505050905001604052505050905060008151905060608060008061474888876121c8565b6003549397509195509350915061476a906001600160a01b031633308b614bb2565b6003546040805163095ea7b360e01b81526001600160a01b0390921660048301819052602483018b90529051909163095ea7b39160448083019260209291908290030181600087803b1580156147bf57600080fd5b505af11580156147d3573d6000803e3d6000fd5b505050506040513d60208110156147e957600080fd5b50506003546040805163b02f0b7360e01b8152600481018b8152602482019283528751604483015287516001600160a01b039094169363b02f0b73938d938a93926064909101906020858101910280838360005b8381101561485557818101518382015260200161483d565b505050509050019350505050600060405180830381600087803b15801561487b57600080fd5b505af115801561488f573d6000803e3d6000fd5b5050505060005b85811015614a195760006148af88838151811061121757fe5b90506148d5818784815181106148c157fe5b60200260200101518a85815181106112c557fe5b806001600160a01b031663022c0d9f60008785815181106148f257fe5b60200260200101513060006001600160401b038111801561491257600080fd5b506040519080825280601f01601f19166020018201604052801561493d576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156149a557818101518382015260200161498d565b50505050905090810190601f1680156149d25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156149f457600080fd5b505af1158015614a08573d6000803e3d6000fd5b505060019093019250614896915050565b50600080614a268461170a565b604080518d81526020810187905280820183905260608101849052905192945090925033917f32f099d0ac2a3a3a9b94fdb99b030574e3065fa12da504405e6262c1ae5585219181900360800190a29998505050505050505050565b6000808411614ac25760405162461bcd60e51b815260040180806020018281038252602c8152602001806150f4602c913960400191505060405180910390fd5b600083118015614ad25750600082115b614b0d5760405162461bcd60e51b81526004018080602001828103825260288152602001806151206028913960400191505060405180910390fd5b6000614b256103e8614b1f8688614c12565b90614c12565b90506000614b396103e5614b1f8689614e71565b9050614b506001828481614b4957fe5b0490614c75565b9695505050505050565b600082820183811015612142576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052614c0c908590614cc4565b50505050565b6000811580614c2d57505080820282828281614c2a57fe5b04145b61364e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561364e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6060614d19826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614ec19092919063ffffffff16565b80519091501561453457808060200190516020811015614d3857600080fd5b50516145345760405162461bcd60e51b815260040180806020018281038252602a8152602001806151a9602a913960400191505060405180910390fd5b60008183614e015760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614dc6578181015183820152602001614dae565b50505050905090810190601f168015614df35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614e0d57fe5b0495945050505050565b60008184841115614e695760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614dc6578181015183820152602001614dae565b505050900390565b8082038281111561364e576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6060614ed08484600085614ed8565b949350505050565b6060614ee3856143e6565b614f34576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310614f735780518252601f199092019160209182019101614f54565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614fd5576040519150601f19603f3d011682016040523d82523d6000602084013e614fda565b606091505b50915091508115614fee579150614ed09050565b805115614ffe5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315614dc6578181015183820152602001614dae565b828054828255906000526020600020908101928215615080579160200282015b82811115615080578235825591602001919060010190615065565b5061508c9291506150b8565b5090565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b5b8082111561508c57600081556001016150b956fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a26469706673582212200fc88a9d36f2b5bcd0e6042beb78907cc1236878659050320dc956c8077c375a64736f6c634300060c0033

Deployed Bytecode Sourcemap

48642:5556:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36364:10;36378:9;36364:23;36360:52;;36398:7;;36360:52;36418:30;36432:15;;36418:13;:30::i;:::-;;;36326:128;48642:5556;;;;;53947:248;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;53947:248:0;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;34850:47;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34850:47:0;-1:-1:-1;;;;;34850:47:0;;:::i;:::-;;;;;;;;;;;;;;;;;;44689:94;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37391:1272;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;37391:1272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;37391:1272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37391:1272:0;;-1:-1:-1;37391:1272:0;;-1:-1:-1;;;;;37391:1272:0:i;52023:656::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52023:656:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52023:656:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52023:656:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52023:656:0;;-1:-1:-1;;;;52023:656:0;;;;-1:-1:-1;52023:656:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50797:564;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50797:564:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;50797:564:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;50797:564:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50797:564:0;;-1:-1:-1;;50797:564:0;;;-1:-1:-1;;;50797:564:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44310:373;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44310:373:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;34625:26;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;34625:26:0;;;;;;;;;;;;;;44789:96;;;;;;;;;;;;;:::i;34564:26::-;;;;;;;;;;;;;:::i;34721:24::-;;;;;;;;;;;;;:::i;39875:168::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39875:168:0;;:::i;53302:639::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;53302:639:0;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;39061:497;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39061:497:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39061:497:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39061:497:0;;;;;;;;-1:-1:-1;39061:497:0;;-1:-1:-1;;;;;39061:497:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39061:497:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39061:497:0;;;;;;;;-1:-1:-1;39061:497:0;;-1:-1:-1;;;;;39061:497:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39061:497:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39061:497:0;;-1:-1:-1;39061:497:0;;-1:-1:-1;;;;;39061:497:0:i;34902:30::-;;;;;;;;;;;;;:::i;36460:432::-;;;;;;;;;;;;;;;;-1:-1:-1;36460:432:0;;:::i;21287:148::-;;;;;;;;;;;;;:::i;39564:305::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39564:305:0;;;;;;;;;;;;;;;-1:-1:-1;;;39564:305:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39564:305:0;;;;;;;;;;-1:-1:-1;39564:305:0;;-1:-1:-1;39564:305:0;-1:-1:-1;39564:305:0;:::i;34658:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34658:26:0;;:::i;37165:220::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37165:220:0;;:::i;20645:79::-;;;;;;;;;;;;;:::i;52685:611::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;52685:611:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34689:27;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34689:27:0;;:::i;34782:63::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34782:63:0;-1:-1:-1;;;;;34782:63:0;;:::i;51367:650::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;51367:650:0;;;;;;;;;;;;;:::i;36898:261::-;;;;;;;;;;;;;;;;-1:-1:-1;36898:261:0;;:::i;42186:1139::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;42186:1139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;42186:1139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42186:1139:0;;-1:-1:-1;42186:1139:0;;-1:-1:-1;;;;;42186:1139:0:i;38669:386::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38669:386:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38669:386:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38669:386:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38669:386:0;;;;;;;;;;;;-1:-1:-1;38669:386:0;-1:-1:-1;;;;;;38669:386:0;;;;;;;;;;:::i;49194:938::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;49194:938:0;;;;;;;;;;;;;:::i;40049:2131::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;40049:2131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;40049:2131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40049:2131:0;;-1:-1:-1;;40049:2131:0;;;-1:-1:-1;40049:2131:0;;-1:-1:-1;;40049:2131:0:i;34750:25::-;;;;;;;;;;;;;:::i;50138:653::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;50138:653:0;;;;;;;;:::i;34595:25::-;;;;;;;;;;;;;:::i;43331:973::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43331:973:0;;;;;;;:::i;21590:244::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21590:244:0;-1:-1:-1;;;;;21590:244:0;;:::i;36460:432::-;36526:29;36557:14;36583:18;36605:21;36616:9;36605:10;:21::i;:::-;36580:46;;;36635:23;36661:4;;;;;;;;;-1:-1:-1;;;;;36661:4:0;-1:-1:-1;;;;;36661:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;36661:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;36661:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;36661:23:0;;;;;;;;;;;;-1:-1:-1;36661:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36635:49;;36698:21;36723:54;36747:10;36759:6;36767:9;36723:23;:54::i;:::-;36693:84;;;;36786:4;;;;;;;;;-1:-1:-1;;;;;36786:4:0;-1:-1:-1;;;;;36786:12:0;;36807:9;36786:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36836:50;36861:9;36872:13;36836:24;:50::i;:::-;36829:57;;;;;;;36460:432;;;:::o;53947:248::-;54089:17;54131:58;54154:10;54166:11;54179:9;54131:22;:58::i;:::-;-1:-1:-1;54115:74:0;53947:248;-1:-1:-1;;;;53947:248:0:o;34850:47::-;;;;;;;;;;;;;;;:::o;44689:94::-;44736:16;44768:9;44761:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44689:94;:::o;37391:1272::-;37483:10;37497:9;37483:23;:58;;;;;37511:30;37530:10;37511:18;:30::i;:::-;37510:31;37483:58;37475:91;;;;;-1:-1:-1;;;37475:91:0;;;;;;;;;;;;-1:-1:-1;;;37475:91:0;;;;;;;;;;;;;;;37589:16;;37575:11;37614:530;37638:3;37634:1;:7;37614:530;;;37657:20;37695:9;37705:1;37695:12;;;;;;;;;;;;;;-1:-1:-1;;;;;37680:38:0;;37727:4;37680:53;;;;;;;;;;;;;-1:-1:-1;;;;;37680:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37680:53:0;37785:12;;37680:53;;-1:-1:-1;37742:24:0;;37769:29;;37785:9;;37795:1;;37785:12;;;;;;;;;;;;37769:15;:29::i;:::-;37742:56;;37810:20;37832:18;37856:9;-1:-1:-1;;;;;37856:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37856:23:0;;;;;;;-1:-1:-1;;;;;37809:70:0;;;;-1:-1:-1;37809:70:0;;-1:-1:-1;37888:15:0;37906:69;37936:12;37809:70;;37906:29;:69::i;:::-;37888:87;;37986:75;38036:9;38048:12;38001:9;38011:1;38001:12;;;;;;;;;;;;;;-1:-1:-1;;;;;37986:41:0;;;:75;;;;;:::i;:::-;38123:12;;;38095:1;38123:12;;;;;;;;;;-1:-1:-1;;;38072:64:0;;;;;;;;;;;;;;38116:4;38072:64;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;38072:14:0;;;;;38099:7;;38123:12;;38072:64;;;;;;;;;;38123:12;38095:1;38072:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;37643:3:0;;;;;-1:-1:-1;37614:530:0;;-1:-1:-1;;;;;;37614:530:0;;-1:-1:-1;38174:4:0;;:29;;;-1:-1:-1;;;38174:29:0;;38197:4;38174:29;;;;;;38152:19;;-1:-1:-1;;;;;38174:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38174:29:0;38261:3;;38174:29;;-1:-1:-1;38212:22:0;;38237:29;;-1:-1:-1;;;;;38261:3:0;38237:15;:29::i;:::-;38212:54;;38276:18;38296;38320:7;-1:-1:-1;;;;;38320:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38320:21:0;;;;;;;-1:-1:-1;;;;;38275:66:0;;;;-1:-1:-1;38275:66:0;;-1:-1:-1;38348:14:0;38365:66;38395:11;38275:66;;38365:29;:66::i;:::-;38440:4;;38348:83;;-1:-1:-1;38440:48:0;;-1:-1:-1;;;;;38440:4:0;38466:7;38476:11;38440:17;:48::i;:::-;38545:12;;;38526:1;38545:12;;;;;;;;;;-1:-1:-1;;;38497:61:0;;;;;;;;;;;;;;38538:4;38497:61;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;38497:12:0;;;;;38510:6;;38526:1;38545:12;;38497:61;;;;;;;;;;38545:12;38526:1;38497:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38584:9:0;;38567:3;;:35;;-1:-1:-1;;;;;;38567:3:0;;;;-1:-1:-1;38584:9:0;38595:6;38567:16;:35::i;:::-;38626:9;;38616:41;;;;;;;;;;;;;;-1:-1:-1;;;;;38626:9:0;;;;38616:41;;;;;;;;;;;37391:1272;;;;;;;:::o;52023:656::-;52213:30;52252;52291:21;52321;52360:19;52449:47;52473:13;52488:7;52449:23;:47::i;:::-;52388:108;;-1:-1:-1;52388:108:0;;-1:-1:-1;52388:108:0;;-1:-1:-1;52388:108:0;-1:-1:-1;52503:72:0;;;;52544:23;52555:11;52544:10;:23::i;:::-;52526:41;-1:-1:-1;;52503:72:0;52597:76;52625:27;52641:10;52625:15;:27::i;:::-;52654:11;52667:5;52597:27;:76::i;:::-;52581:92;;52023:656;;;;;;;;;;:::o;50797:564::-;51009:29;51047;51085:15;51118:17;51138:75;51166:27;51182:10;51166:15;:27::i;:::-;51195:11;51208:4;51138:27;:75::i;:::-;51118:95;;51224:8;51220:68;;;51259:21;51270:9;51259:10;:21::i;:::-;51243:37;-1:-1:-1;;51220:68:0;51301:54;51325:9;51336:7;51345:9;51301:23;:54::i;:::-;51294:61;;;;;;;50797:564;;;;;;;;;:::o;44310:373::-;44445:9;:16;44370:14;;;;;44468:168;44492:3;44488:1;:7;44468:168;;;44528:9;44538:1;44528:12;;;;;;;;;;;;;;;;44515:9;:25;44511:118;;44562:41;44595:7;44562:28;44576:10;44587:1;44576:13;;;;;;;;;;;;;;;;44562:9;:13;;:28;;;;:::i;:::-;:32;;:41::i;:::-;44553:50;;44614:5;;44511:118;44497:3;;44468:168;;;-1:-1:-1;44656:21:0;:9;44670:6;44656:13;:21::i;:::-;44642:35;;44310:373;;;;:::o;34625:26::-;;;-1:-1:-1;;;;;34625:26:0;;:::o;44789:96::-;44837:16;44869:10;44862:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44789:96;:::o;34564:26::-;;;-1:-1:-1;;;;;34564:26:0;;:::o;34721:24::-;;;-1:-1:-1;;;;;34721:24:0;;:::o;39875:168::-;20867:12;:10;:12::i;:::-;20857:6;;-1:-1:-1;;;;;20857:6:0;;;:22;;;20849:67;;;;;-1:-1:-1;;;20849:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20849:67:0;;;;;;;;;;;;;;;39955:15:::1;:34:::0;;;40001:36:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;39875:168:::0;:::o;53302:639::-;53439:17;53458:14;53524:4;;;;;;;;;-1:-1:-1;;;;;53524:4:0;-1:-1:-1;;;;;53493:36:0;:10;-1:-1:-1;;;;;53493:17:0;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53493:19:0;-1:-1:-1;;;;;53493:36:0;;;-1:-1:-1;53540:9:0;:34;;53565:9;53564:10;53540:34;;;53552:9;53540:34;53536:400;;;53586:18;53606:20;53632:10;-1:-1:-1;;;;;53632:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53632:24:0;;;;;;;-1:-1:-1;;;;;53585:71:0;;;;-1:-1:-1;53585:71:0;;-1:-1:-1;53677:68:0;53707:11;53585:71;;53677:29;:68::i;:::-;53665:80;;53536:400;;;;;53769:20;53791:18;53815:10;-1:-1:-1;;;;;53815:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53815:24:0;;;;;;;-1:-1:-1;;;;;53768:71:0;;;;-1:-1:-1;53768:71:0;;-1:-1:-1;53860:68:0;53890:11;53768:71;;53860:29;:68::i;:::-;53848:80;;53536:400;;;53302:639;;;;;;:::o;39061:497::-;20867:12;:10;:12::i;:::-;20857:6;;-1:-1:-1;;;;;20857:6:0;;;:22;;;20849:67;;;;;-1:-1:-1;;;20849:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20849:67:0;;;;;;;;;;;;;;;39225:14;;39261:13;;39254:20;::::1;:48:::0;::::1;;;;39285:10;:17;39278:3;:24;39254:48;39246:78;;;::::0;;-1:-1:-1;;;39246:78:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;39246:78:0;;;;;;;;;;;;;::::1;;39336:9;39331:222;39355:3;39351:1;:7;39331:222;;;39417:6;39424:1;39417:9;;;;;;;;;;;;;;39374:28;:40;39403:7;39411:1;39403:10;;;;;;;;;;;;;;-1:-1:-1::0;;;;;39374:40:0::1;-1:-1:-1::0;;;;;39374:40:0::1;;;;;;;;;;;;;:52;;;;;-1:-1:-1::0;;;;;39374:52:0::1;;;;;-1:-1:-1::0;;;;;39374:52:0::1;;;;;;39465:10;39476:1;39465:13;;;;;;;;;;;;;;39435:15;:27;39451:7;39459:1;39451:10;;;;;;;;;;;;;;-1:-1:-1::0;;;;;39435:27:0::1;-1:-1:-1::0;;;;;39435:27:0::1;;;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;39535:6;39542:1;39535:9;;;;;;;;;;;;;;-1:-1:-1::0;;;;;39492:53:0::1;39520:10;39531:1;39520:13;;;;;;;;;;;;;;39492:53;;39508:7;39516:1;39508:10;;;;;;;;;;;;;;-1:-1:-1::0;;;;;39492:53:0::1;;;;;;;;;;;39360:3;;39331:222;;;;20927:1;39061:497:::0;;;:::o;34902:30::-;;;;:::o;21287:148::-;20867:12;:10;:12::i;:::-;20857:6;;-1:-1:-1;;;;;20857:6:0;;;:22;;;20849:67;;;;;-1:-1:-1;;;20849:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20849:67:0;;;;;;;;;;;;;;;21394:1:::1;21378:6:::0;;21357:40:::1;::::0;-1:-1:-1;;;;;21378:6:0;;::::1;::::0;-1:-1:-1;;;;;;;;;;;21357:40:0;21394:1;;21357:40:::1;21425:1;21408:19:::0;;-1:-1:-1;;;;;;21408:19:0::1;::::0;;21287:148::o;39564:305::-;20867:12;:10;:12::i;:::-;20857:6;;-1:-1:-1;;;;;20857:6:0;;;:22;;;20849:67;;;;;-1:-1:-1;;;20849:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20849:67:0;;;;;;;;;;;;;;;39687:7;39673:11:::1;39708:156;39732:3;39728:1;:7;39708:156;;;39812:8;-1:-1:-1::0;;;;;39794:35:0::1;;39830:7;;39838:1;39830:10;;;;;;;39850:4;::::0;39794:62:::1;::::0;;::::1;::::0;;;-1:-1:-1;;;;;;39794:62:0;;;39830:10:::1;::::0;;::::1;::::0;;;::::1;;-1:-1:-1::0;;;;;39830:10:0;;::::1;39794:62;::::0;::::1;::::0;39850:4;;::::1;39794:62:::0;;;;;;;;;;39830:10;;-1:-1:-1;39794:62:0;;;;;;;;;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;39794:62:0;39751:28:::1;:40;39780:7:::0;;39788:1;39780:10;;::::1;;;;;-1:-1:-1::0;;;;;39780:10:0::1;::::0;;::::1;::::0;;;::::1;;::::0;::::1;39751:40:::0;;;::::1;::::0;;;;;;;;-1:-1:-1;39751:40:0;:105;;;;;::::1;-1:-1:-1::0;;;;;;39751:105:0;;::::1;::::0;;;::::1;::::0;;;-1:-1:-1;39751:105:0;39737:3:::1;39708:156;;34658:26:::0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34658:26:0;:::o;37165:220::-;37229:20;37273:30;37289:13;37273:15;:30::i;:::-;37312:4;;:27;;;-1:-1:-1;;;37312:27:0;;;;;;;;;;37258:45;;-1:-1:-1;;;;;;37312:4:0;;;;:13;;:27;;;;;:4;;:27;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;37346:33:0;;:10;;-1:-1:-1;37346:33:0;;;;;-1:-1:-1;37366:12:0;;37346:33;;;;37366:12;37346:10;:33;;;;;;;;;;;;;;;;;;;;;37165:220;;;:::o;20645:79::-;20683:7;20710:6;-1:-1:-1;;;;;20710:6:0;20645:79;:::o;52685:611::-;52794:16;52819:21;52849:14;52872:19;52909:24;52936:27;52952:10;52936:15;:27::i;:::-;52909:54;;52972:17;52992:57;53020:9;53031:11;53044:4;52992:27;:57::i;:::-;52972:77;;53082:21;53093:9;53082:10;:21::i;:::-;53058:45;;-1:-1:-1;53058:45:0;-1:-1:-1;53116:11:0;;53112:98;;53149:53;53177:9;53188:6;53196:5;53149:27;:53::i;:::-;53138:64;;53112:98;53232:58;53260:9;53271:11;53284:5;53232:27;:58::i;:::-;53216:74;;52685:611;;;;;;;;;:::o;34689:27::-;;;;;;;;;;34782:63;;;;;;;;;;;;-1:-1:-1;;;;;34782:63:0;;:::o;51367:650::-;51505:7;51521:17;51541:47;51562:14;51578:9;51541:20;:47::i;:::-;51521:67;;51597:24;51624:27;51640:10;51624:15;:27::i;:::-;51597:54;;51659:21;51682;51709:9;-1:-1:-1;;;;;51709:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51709:23:0;;;;;;;51773:4;;51709:23;51743:18;;-1:-1:-1;;;51743:18:0;;;;-1:-1:-1;;;;;51658:74:0;;;;-1:-1:-1;51658:74:0;;;;;-1:-1:-1;;;;;;51773:4:0;;;;51743:16;;;;;;:18;;;;;51709:23;51743:18;;;;;;:16;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51743:18:0;-1:-1:-1;;;;;51743:35:0;;51739:273;;;51796:89;51825:29;51849:4;51825:19;:9;51839:4;51825:13;:19::i;:29::-;51856:13;51871;51796:28;:89::i;:::-;51789:96;;;;;;;;51739:273;51915:89;51944:29;51968:4;51944:19;:9;51958:4;51944:13;:19::i;:29::-;51975:13;51990;51915:28;:89::i;51367:650::-;;;;;;:::o;36898:261::-;36995:29;37026:14;37052:4;;;;;;;;;-1:-1:-1;;;;;37052:4:0;-1:-1:-1;;;;;37052:12:0;;37073:9;37052:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37102:51;37127:9;37138:14;37102:24;:51::i;:::-;37095:58;;;;36898:261;;;:::o;42186:1139::-;42312:30;42351;42390:19;42418:21;42487:7;:14;-1:-1:-1;;;;;42473:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42473:29:0;;42457:45;;42539:7;:14;-1:-1:-1;;;;;42525:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42525:29:0;;42509:45;;42568:24;42598:4;;;;;;;;;-1:-1:-1;;;;;42598:4:0;-1:-1:-1;;;;;42598:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42598:22:0;;;;;42704:4;;:107;;-1:-1:-1;;;42704:107:0;;;;;;;;;;;;;;42799:4;42704:107;;;;;;42598:22;;-1:-1:-1;42629:28:0;;-1:-1:-1;;;;;42704:4:0;;;;:31;;:107;;;;;42598:22;;42704:107;;;;;;:4;:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42704:107:0;;;;;;;42878:4;;42704:107;42878:18;;-1:-1:-1;;;42878:18:0;;;;42704:107;;-1:-1:-1;42704:107:0;;-1:-1:-1;42820:17:0;;42840:57;;-1:-1:-1;;;;;42878:4:0;;;;:16;;:18;;;;;42704:107;42878:18;;;;;;:4;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42878:18:0;42840:33;:20;42865:7;42840:24;:33::i;:57::-;42820:77;;42920:1;42906:15;;42933:9;42928:392;42952:7;:14;42948:1;:18;42928:392;;;43015:4;;43031:10;;43001:55;;43048:7;;43001:42;;-1:-1:-1;;;;;43015:4:0;;:15;;43031:7;;43039:1;;43031:10;;;;;;;;;;;;43015:27;;;;;;;;;;;;;-1:-1:-1;;;;;43015:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43015:27:0;43001:9;;:13;:42::i;:55::-;42982:13;42996:1;42982:16;;;;;;;;;;;;;:74;;;;;43068:20;43090:18;43114:27;43130:7;43138:1;43130:10;;;;;;;43114:27;-1:-1:-1;;;;;43114:39:0;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43114:41:0;;;;;;;43213:16;;-1:-1:-1;;;;;43067:88:0;;;;-1:-1:-1;43067:88:0;;;-1:-1:-1;43183:73:0;;43213:13;;43227:1;;43213:16;;;;;;;;;;;;43231:12;43245:10;43183:29;:73::i;:::-;43164:13;43178:1;43164:16;;;;;;;;;;;;;:92;;;;;43279:33;43295:13;43309:1;43295:16;;;;;;;;;;;;;;43279:11;:15;;:33;;;;:::i;:::-;43265:47;-1:-1:-1;;;42968:3:0;;42928:392;;;;42186:1139;;;;;;;;;;:::o;38669:386::-;36251:10;;-1:-1:-1;;;;;36251:10:0;36237;:24;;:49;;;36279:7;:5;:7::i;:::-;-1:-1:-1;;;;;36265:21:0;:10;-1:-1:-1;;;;;36265:21:0;;36237:49;36229:77;;;;;-1:-1:-1;;;36229:77:0;;;;;;;;;;;;-1:-1:-1;;;36229:77:0;;;;;;;;;;;;;;;38853:22:::1;:9;38865:10:::0;;38853:22:::1;:::i;:::-;-1:-1:-1::0;38882:24:0::1;:10;38895:11:::0;;38882:24:::1;:::i;:::-;-1:-1:-1::0;38913:9:0::1;:22:::0;;-1:-1:-1;;;;;;38913:22:0;;::::1;-1:-1:-1::0;;;;;38913:22:0;;::::1;::::0;;::::1;::::0;;;38942:10:::1;:24:::0;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;38980:69:::1;::::0;;;;;;;;;;;38988:10:::1;::::0;38980:69:::1;::::0;39000:10;;38980:69;;39012:11;;;;38980:69;::::1;::::0;;::::1;::::0;;;;;39000:10;;38980:69;::::1;::::0;39000:10;38980:69;::::1;;::::0;;::::1;::::0;::::1;;-1:-1:-1::0;;38980:69:0::1;::::0;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;-1:-1:-1;38980:69:0;;;::::1;::::0;;;::::1;;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;-1:-1:-1::0;;38980:69:0::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;38980:69:0;;-1:-1:-1;;;;;;;38980:69:0::1;38669:386:::0;;;;;;:::o;49194:938::-;49317:21;49347:75;-1:-1:-1;;;;;49347:35:0;;49383:10;49403:4;49410:11;49347:35;:75::i;:::-;49431:24;49458:27;49474:10;49458:15;:27::i;:::-;49431:54;;49493:17;49512:14;49530:52;49553:9;49564:11;49577:4;49530:22;:52::i;:::-;49492:90;;-1:-1:-1;49492:90:0;-1:-1:-1;49589:64:0;-1:-1:-1;;;;;49589:31:0;;49629:9;49641:11;49589:31;:64::i;:::-;49660:9;-1:-1:-1;;;;;49660:14:0;;49675:9;:34;;49707:1;49675:34;;;49687:9;49675:34;49711:9;:34;;49736:9;49711:34;;;49731:1;49711:34;49762:12;;;49772:1;49762:12;;;;;;;;;49755:4;;49762:12;49660:115;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49660:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49787:21;49812;49823:9;49812:10;:21::i;:::-;49784:49;;;49840:23;49866:4;;;;;;;;;-1:-1:-1;;;;;49866:4:0;-1:-1:-1;;;;;49866:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;49866:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;49866:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;49866:23:0;;;;;;;;;;;;-1:-1:-1;49866:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49840:49;;49918:57;49942:13;49957:6;49965:9;49918:23;:57::i;:::-;49896:79;-1:-1:-1;49984:50:0;;-1:-1:-1;50009:9:0;;-1:-1:-1;49896:79:0;49984:24;:50::i;:::-;-1:-1:-1;;50048:78:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50048:78:0;;;50064:10;;50048:78;;;;;;;;;49194:938;;;;;;;;;;:::o;40049:2131::-;40210:29;;40286:15;40331:52;40345:37;40374:7;40345:24;:9;40359;40345:13;:24::i;:37::-;40331:9;;:13;:52::i;:::-;40319:64;;40443:39;40509:7;:14;-1:-1:-1;;;;;40485:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;40443:81;;40533:24;40577:23;40603:4;;;;;;;;;-1:-1:-1;;;;;40603:4:0;-1:-1:-1;;;;;40603:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40577:44;;40846:17;40875:95;40954:15;40875:74;40941:7;40875:61;40908:4;;;;;;;;;-1:-1:-1;;;;;40908:4:0;-1:-1:-1;;;;;40908:15:0;;40924:7;40932:1;40924:10;;;;;;;;;;;;;;40908:27;;;;;;;;;;;;;-1:-1:-1;;;;;40908:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40908:27:0;40875:28;:15;40895:7;40875:19;:28::i;:61::-;:65;;:74::i;:95::-;40846:124;;40986:9;40981:601;41005:7;:14;41001:1;:18;40981:601;;;41139:4;;41155:10;;41125:55;;41172:7;;41125:42;;-1:-1:-1;;;;;41139:4:0;;:15;;41155:7;;41163:1;;41155:10;;;;;41125:55;41095:12;41108:1;41095:15;;;;;;;;;;;;;;:27;;:85;;;;;41256:27;41272:7;41280:1;41272:10;;;;;;;41256:27;-1:-1:-1;;;;;41256:39:0;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41256:41:0;;;;;;;41194:15;;-1:-1:-1;;;;;41193:104:0;;;;;;;;41194:12;;41207:1;;41194:15;;;;;;;;;;;;:28;;41224:12;41237:1;41224:15;;;;;;;;;;;;;;:26;;41193:104;;;;;;;;;;41336:159;41377:12;41390:1;41377:15;;;;;;;;;;;;;;:27;;;41417:12;41430:1;41417:15;;;;;;;;;;;;;;:26;;;41456:12;41469:1;41456:15;;;;;;;;;;;;;;:28;;;41336;:159::i;:::-;41308:12;41321:1;41308:15;;;;;;;;;;;;;;:25;;:187;;;;;41525:47;41546:12;41559:1;41546:15;;;;;;;;;;;;;;:25;;;41525:16;:20;;:47;;;;:::i;:::-;41506:66;-1:-1:-1;41021:3:0;;40981:601;;;;40049:2131;;41726:7;:14;-1:-1:-1;;;;;41712:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41712:29:0;;41697:44;;41777:7;:14;-1:-1:-1;;;;;41763:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41763:29:0;;41748:44;;41804:9;41799:285;41823:7;:14;41819:1;:18;41799:285;;;41871:88;41951:7;41871:75;41885:60;41928:16;41885:38;41915:7;41885:12;41898:1;41885:15;;;;;;;;;;;;;;:25;;;:29;;:38;;;;:::i;:60::-;41871:9;;:13;:75::i;:88::-;41853:12;41866:1;41853:15;;;;;;;;;;;;;;;;;:106;41986:90;42068:7;41986:77;42018:44;42045:16;41986:77;42018:9;42068:7;42018:13;:22::i;:44::-;41986:12;41999:1;41986:15;;;;;;;;;;;;;;:27;;;:31;;:77;;;;:::i;:90::-;41968:12;41981:1;41968:15;;;;;;;;;;;;;;;;;:108;41839:3;;41799:285;;;-1:-1:-1;42146:4:0;;42162:10;;42102:72;;-1:-1:-1;;;;;42146:4:0;;:15;;42162:7;;42146:4;;42162:10;;;;;;;;;;42146:27;;;;;;;;;;;;;-1:-1:-1;;;;;42146:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42146:27:0;42125:15;;42102:39;;42125:12;;42138:1;;42125:15;;;;;;;;;;42102:4;;;;;;;;;-1:-1:-1;;;;;42102:4:0;-1:-1:-1;;;;;42102:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42102:18:0;;:22;:39::i;:72::-;42092:82;;40049:2131;;;;;;;;;:::o;34750:25::-;;;-1:-1:-1;;;;;34750:25:0;;:::o;50138:653::-;50224:16;50249:14;50266:30;50282:13;50266:15;:30::i;:::-;50249:47;;50305:24;50332:27;50348:10;50332:15;:27::i;:::-;50305:54;;50368:14;50413:48;50436:9;50447:6;50455:5;50413:22;:48::i;:::-;50470:4;;50389:72;;-1:-1:-1;50389:72:0;-1:-1:-1;50470:45:0;;-1:-1:-1;;;;;50470:4:0;50496:9;50508:6;50470:17;:45::i;:::-;50524:9;-1:-1:-1;;;;;50524:14:0;;50539:9;:33;;50564:8;50539:33;;;50559:1;50539:33;50574:9;:33;;50605:1;50574:33;;;50586:8;50574:33;50624:12;;;50634:1;50624:12;;;;;;;;;50617:4;;50624:12;50524:113;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50524:113:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50646:53:0;;-1:-1:-1;;;;;;;;50646:31:0;;50678:10;50690:8;50646:31;:53::i;:::-;50713:72;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50713:72:0;;;50729:10;;50713:72;;;;;;;;;50138:653;;;;;;;:::o;34595:25::-;;;-1:-1:-1;;;;;34595:25:0;;:::o;43331:973::-;43425:7;43441:13;43457:59;43513:2;43457:51;43489:4;;;;;;;;;-1:-1:-1;;;;;43489:4:0;-1:-1:-1;;;;;43489:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43457:51;:55;;:59::i;:::-;43441:75;;43525:23;43551:4;;;;;;;;;-1:-1:-1;;;;;43551:4:0;-1:-1:-1;;;;;43551:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;43551:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43551:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43551:23:0;;;;;;;;;;;;-1:-1:-1;43551:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43525:49;;43581:11;43595:6;:13;43581:27;;43617:39;43683:3;-1:-1:-1;;;;;43659:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;43617:70;;43694:29;43740:3;-1:-1:-1;;;;;43726:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43726:18:0;;43694:50;;43753:20;43789:9;43784:443;43808:3;43804:1;:7;43784:443;;;43827:24;43854:26;43870:6;43877:1;43870:9;;;;;;;43854:26;43827:53;;43954:9;-1:-1:-1;;;;;43954:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43954:23:0;;;;;;;43892:15;;-1:-1:-1;;;;;43891:86:0;;;;;;;;43892:12;;43905:1;;43892:15;;;;;;;;;;;;:28;;43922:12;43935:1;43922:15;;;;;;;;;;;;;;;;;;:26;;43891:86;;;;;44014:4;;44030:9;;44004:50;;44046:7;;44004:37;;-1:-1:-1;;;;;44014:4:0;;:15;;44030:6;;44037:1;;44030:9;;;;;;;;;;;;44014:26;;;;;;;;;;;;;-1:-1:-1;;;;;44014:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44014:26:0;44004:5;;:9;:37::i;:50::-;43986:12;43999:1;43986:15;;;;;;;;;;;;;:68;;;;;44078:141;44206:12;44078:113;44117:12;44130:1;44117:15;;;;;;;;;;;;;;44134:12;44147:1;44134:15;;;;;;;;;;;;;;:26;;;44162:12;44175:1;44162:15;;;;;;;44078:141;44063:156;-1:-1:-1;;43813:3:0;;43784:443;;;-1:-1:-1;44240:58:0;44257:40;44289:7;44257:27;:12;44274:9;44257:16;:27::i;:40::-;44240:12;;:16;:58::i;:::-;44233:65;;;;;;;;43331:973;;;;;:::o;21590:244::-;20867:12;:10;:12::i;:::-;20857:6;;-1:-1:-1;;;;;20857:6:0;;;:22;;;20849:67;;;;;-1:-1:-1;;;20849:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20849:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;21679:22:0;::::1;21671:73;;;;-1:-1:-1::0;;;21671:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21781:6;::::0;;21760:38:::1;::::0;-1:-1:-1;;;;;21760:38:0;;::::1;::::0;21781:6;::::1;::::0;-1:-1:-1;;;;;;;;;;;21760:38:0;::::1;21809:6;:17:::0;;-1:-1:-1;;;;;;21809:17:0::1;-1:-1:-1::0;;;;;21809:17:0;;;::::1;::::0;;;::::1;::::0;;21590:244::o;45047:2511::-;45154:29;45185:14;45233:1;45219:11;:15;45211:40;;;;;-1:-1:-1;;;45211:40:0;;;;;;;;;;;;-1:-1:-1;;;45211:40:0;;;;;;;;;;;;;;;45296:4;;:22;;;-1:-1:-1;;;45296:22:0;;;;45269:24;;-1:-1:-1;;;;;45296:4:0;;:20;;:22;;;;;;;;;;;;;;:4;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45296:22:0;;-1:-1:-1;;;;;;45331:39:0;;;45327:254;;45470:4;;45408:68;;;-1:-1:-1;;;45408:68:0;;-1:-1:-1;;;;;45470:4:0;;;45408:68;;;;;;45383:22;;45408:53;;;;;:68;;;;;;;;;;;;;;:53;:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45408:68:0;45495:4;;:18;;;-1:-1:-1;;;45495:18:0;;;;45408:68;;-1:-1:-1;45408:68:0;;45495:38;;45518:14;;-1:-1:-1;;;;;45495:4:0;;;;:16;;:18;;;;;45408:68;;45495:18;;;;;;;;:4;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45495:18:0;;:22;:38::i;:::-;:56;;45487:84;;;;;-1:-1:-1;;;45487:84:0;;;;;;;;;;;;-1:-1:-1;;;45487:84:0;;;;;;;;;;;;;;;45327:254;;45047:2511;45597:17;45616:18;45638:23;45649:11;45638:10;:23::i;:::-;45596:65;;;;45670:13;45686:59;45742:2;45686:51;45718:4;;;;;;;;;-1:-1:-1;;;;;45718:4:0;-1:-1:-1;;;;;45718:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45718:18:0;45686:27;:14;45705:7;45686:18;:27::i;:59::-;45670:75;;45754:23;45780:4;;;;;;;;;-1:-1:-1;;;;;45780:4:0;-1:-1:-1;;;;;45780:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45780:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45780:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45780:23:0;;;;;;;;;;;;-1:-1:-1;45780:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45754:49;;45810:11;45824:6;:13;45810:27;;45846:39;45912:3;-1:-1:-1;;;;;45888:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;45846:70;;45923:29;45969:3;-1:-1:-1;;;;;45955:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45955:18:0;;45923:50;;45982:20;46018:9;46013:869;46037:3;46033:1;:7;46013:869;;;46056:24;46083:26;46099:6;46106:1;46099:9;;;;;;;46083:26;46056:53;;46183:9;-1:-1:-1;;;;;46183:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46183:23:0;;;;;;;46121:15;;-1:-1:-1;;;;;46120:86:0;;;;;;;;46121:12;;46134:1;;46121:15;;;;;;;;;;;;:28;;46151:12;46164:1;46151:15;;;;;;;;;;;;;;;;;;:26;;46120:86;;;;;46243:4;;46259:9;;46233:50;;46275:7;;46233:37;;-1:-1:-1;;;;;46243:4:0;;:15;;46259:6;;46266:1;;46259:9;;;;;46233:50;46215:12;46228:1;46215:15;;;;;;;;;;;;;:68;;;;;46320:139;46359:12;46372:1;46359:15;;;;;;;;;;;;;;46385:12;46398:1;46385:15;;;;;;;;;;;;;;:26;;;46422:12;46435:1;46422:15;;;;;;;46320:139;46292:12;46305:1;46292:15;;;;;;;;;;;;;;:25;;:167;;;;;46470:64;46496:9;46508:12;46521:1;46508:15;;;;;;;;;;;;;;;;;;;:25;;46470:4;;-1:-1:-1;;;;;46470:4:0;;:64;:17;:64::i;:::-;46545:9;-1:-1:-1;;;;;46545:14:0;;46560:12;46573:1;46560:15;;;;;;;;;;;;;;46585:1;46597:4;46614:1;-1:-1:-1;;;;;46604:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46604:12:0;;46545:72;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46545:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46641:43;46658:12;46671:1;46658:15;;;;;;;;;;;;;;:25;;;46641:12;:16;;:43;;;;:::i;:::-;46626:58;;46699:15;:26;46715:6;46722:1;46715:9;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46699:26:0;;;;;;;;;;;-1:-1:-1;46699:26:0;;;;46695:104;;;46753:6;46760:1;46753:9;;;;;;;;;;;;;;-1:-1:-1;;;;;46738:33:0;;46780:4;;;;;;;;;-1:-1:-1;;;;;46780:4:0;46787:1;46738:51;;;;;;;;;;;;;-1:-1:-1;;;;;46738:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;46695:104:0;46824:6;46831:1;46824:9;;;;;;;;;;;;;;-1:-1:-1;;;;;46809:33:0;;46851:4;;;;;;;;;-1:-1:-1;;;;;46851:4:0;46858:12;46871:1;46858:15;;;;;;;;;;;;;;46809:65;;;;;;;;;;;;;-1:-1:-1;;;;;46809:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;46042:3:0;;46013:869;;;;46890:24;46933;46965:4;;;;;;;;;-1:-1:-1;;;;;46965:4:0;-1:-1:-1;;;;;46965:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46930:57;;;;;47040:4;;;;;;;;;-1:-1:-1;;;;;47040:4:0;-1:-1:-1;;;;;47040:31:0;;47082:14;47107:16;47142:4;47040:116;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47040:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46996:160;;;;;;;;45047:2511;47191:10;-1:-1:-1;;;;;47177:82:0;;47203:10;47215:9;47226:14;47242:16;47177:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47268:4;;;;;;;;;-1:-1:-1;;;;;47268:4:0;-1:-1:-1;;;;;47268:13:0;;47282:14;47298:12;47268:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;47318:4:0;;:52;;-1:-1:-1;;;;;;47318:4:0;;-1:-1:-1;47336:10:0;47348:21;47318:17;:52::i;:::-;47388:28;:10;47403:12;47388:14;:28::i;:::-;47379:37;-1:-1:-1;47427:10:0;;47423:130;;47448:4;;:21;;;-1:-1:-1;;;47448:21:0;;;;;;;;;;-1:-1:-1;;;;;47448:4:0;;;;:13;;:21;;;;;:4;;:21;;;;;;;;:4;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;47478:27:0;;:10;;-1:-1:-1;47478:27:0;;;;;-1:-1:-1;47498:6:0;;47478:27;;;;47498:6;47478:10;:27;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47519:26:0;;;;;;;;47526:10;;47519:26;;;;;;;;;;47423:130;45047:2511;;;;;;;;;;;;;;:::o;9571:422::-;9938:20;9977:8;;;9571:422::o;44891:150::-;-1:-1:-1;;;;;44999:35:0;;;44954:14;44999:35;;;:28;:35;;;;;;;;44891:150::o;31977:517::-;32070:14;32116:1;32105:8;:12;32097:68;;;;-1:-1:-1;;;32097:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32196:1;32184:9;:13;:31;;;;;32214:1;32201:10;:14;32184:31;32176:84;;;;-1:-1:-1;;;32176:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32271:20;32294:17;:8;32307:3;32294:12;:17::i;:::-;32271:40;-1:-1:-1;32322:14:0;32339:31;32271:40;32359:10;32339:19;:31::i;:::-;32322:48;-1:-1:-1;32381:16:0;32400:40;32424:15;32400:19;:9;32414:4;32400:13;:19::i;:::-;:23;;:40::i;:::-;32381:59;;32475:11;32463:9;:23;;;;;;;31977:517;-1:-1:-1;;;;;;;31977:517:0:o;15506:177::-;15616:58;;;-1:-1:-1;;;;;15616:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15616:58:0;-1:-1:-1;;;15616:58:0;;;15589:86;;15609:5;;15589:19;:86::i;:::-;15506:177;;;:::o;2904:471::-;2962:7;3207:6;3203:47;;-1:-1:-1;3237:1:0;3230:8;;3203:47;3274:5;;;3278:1;3274;:5;:1;3298:5;;;;;:10;3290:56;;;;-1:-1:-1;;;3290:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3851:132;3909:7;3936:39;3940:1;3943;3936:39;;;;;;;;;;;;;-1:-1:-1;;;3936:39:0;;;:3;:39::i;2014:136::-;2072:7;2099:43;2103:1;2106;2099:43;;;;;;;;;;;;;;;;;:3;:43::i;19201:106::-;19289:10;19201:106;:::o;47564:1002::-;47630:7;47646:23;47672:4;;;;;;;;;-1:-1:-1;;;;;47672:4:0;-1:-1:-1;;;;;47672:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;47672:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;47672:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;47672:23:0;;;;;;;;;;;;-1:-1:-1;47672:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47646:49;;47702:11;47716:6;:13;47702:27;;47739:30;47771;47803:19;47824:21;47856:46;47880:13;47895:6;47856:23;:46::i;:::-;47911:4;;47738:164;;-1:-1:-1;47738:164:0;;-1:-1:-1;47738:164:0;-1:-1:-1;47738:164:0;-1:-1:-1;47911:63:0;;-1:-1:-1;;;;;47911:4:0;47933:10;47953:4;47960:13;47911:21;:63::i;:::-;47983:4;;:42;;;-1:-1:-1;;;47983:42:0;;-1:-1:-1;;;;;47983:4:0;;;:42;;;;;;;;;;;;;;:4;;:12;;:42;;;;;;;;;;;;;;:4;;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;48034:4:0;;:43;;;-1:-1:-1;;;48034:43:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48034:4:0;;;;:13;;48048;;48063;;48034:43;;;;;;47983:42;48034:43;;;;;;;;:4;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48091:9;48086:271;48110:3;48106:1;:7;48086:271;;;48129:24;48156:26;48172:6;48179:1;48172:9;;;;;;;48156:26;48129:53;;48191:76;48238:9;48250:13;48264:1;48250:16;;;;;;;;;;;;;;48206:6;48213:1;48206:9;;;;;;;48191:76;48276:9;-1:-1:-1;;;;;48276:14:0;;48299:1;48303:13;48317:1;48303:16;;;;;;;;;;;;;;48329:4;48346:1;-1:-1:-1;;;;;48336:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48336:12:0;;48276:73;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48276:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;48115:3:0;;;;;-1:-1:-1;48086:271:0;;-1:-1:-1;;48086:271:0;;;48366:20;48388;48412:23;48423:11;48412:10;:23::i;:::-;48449:83;;;;;;;;;;;;;;;;;;;;;;;;;;48365:70;;-1:-1:-1;48365:70:0;;-1:-1:-1;48463:10:0;;48449:83;;;;;;;;;48548:12;47564:1002;-1:-1:-1;;;;;;;;;47564:1002:0:o;32615:472::-;32708:13;32754:1;32742:9;:13;32734:70;;;;-1:-1:-1;;;32734:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32835:1;32823:9;:13;:31;;;;;32853:1;32840:10;:14;32823:31;32815:84;;;;-1:-1:-1;;;32815:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32910:14;32927:34;32956:4;32927:24;:9;32941;32927:13;:24::i;:::-;:28;;:34::i;:::-;32910:51;-1:-1:-1;32972:16:0;32991:34;33021:3;32991:25;:10;33006:9;32991:14;:25::i;:34::-;32972:53;;33047:32;33077:1;33060:11;33048:9;:23;;;;;;;33047:29;:32::i;:::-;33036:43;32615:472;-1:-1:-1;;;;;;32615:472:0:o;1550:181::-;1608:7;1640:5;;;1664:6;;;;1656:46;;;;;-1:-1:-1;;;1656:46:0;;;;;;;;;;;;-1:-1:-1;;;1656:46:0;;;;;;;;;;;;;;15691:205;15819:68;;;-1:-1:-1;;;;;15819:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15819:68:0;-1:-1:-1;;;15819:68:0;;;15792:96;;15812:5;;15792:19;:96::i;:::-;15691:205;;;;:::o;29653:142::-;29705:6;29732;;;:30;;-1:-1:-1;;29747:5:0;;;29761:1;29756;29747:5;29756:1;29742:15;;;;;:20;29732:30;29724:63;;;;;-1:-1:-1;;;29724:63:0;;;;;;;;;;;;-1:-1:-1;;;29724:63:0;;;;;;;;;;;;;;29380:128;29464:5;;;29459:16;;;;29451:49;;;;;-1:-1:-1;;;29451:49:0;;;;;;;;;;;;-1:-1:-1;;;29451:49:0;;;;;;;;;;;;;;17811:761;18235:23;18261:69;18289:4;18261:69;;;;;;;;;;;;;;;;;18269:5;-1:-1:-1;;;;;18261:27:0;;;:69;;;;;:::i;:::-;18345:17;;18235:95;;-1:-1:-1;18345:21:0;18341:224;;18487:10;18476:30;;;;;;;;;;;;;;;-1:-1:-1;18476:30:0;18468:85;;;;-1:-1:-1;;;18468:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4479:278;4565:7;4600:12;4593:5;4585:28;;;;-1:-1:-1;;;4585:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4624:9;4640:1;4636;:5;;;;;;;4479:278;-1:-1:-1;;;;;4479:278:0:o;2453:192::-;2539:7;2575:12;2567:6;;;;2559:29;;;;-1:-1:-1;;;2559:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2611:5:0;;;2453:192::o;29516:129::-;29600:5;;;29595:16;;;;29587:50;;;;;-1:-1:-1;;;29587:50:0;;;;;;;;;;;;-1:-1:-1;;;29587:50:0;;;;;;;;;;;;;;12489:196;12592:12;12624:53;12647:6;12655:4;12661:1;12664:12;12624:22;:53::i;:::-;12617:60;12489:196;-1:-1:-1;;;;12489:196:0:o;13866:979::-;13996:12;14029:18;14040:6;14029:10;:18::i;:::-;14021:60;;;;;-1:-1:-1;;;14021:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14155:12;14169:23;14196:6;-1:-1:-1;;;;;14196:11:0;14216:8;14227:4;14196:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14196:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14154:78;;;;14247:7;14243:595;;;14278:10;-1:-1:-1;14271:17:0;;-1:-1:-1;14271:17:0;14243:595;14392:17;;:21;14388:439;;14655:10;14649:17;14716:15;14703:10;14699:2;14695:19;14688:44;14603:148;14791:20;;-1:-1:-1;;;14791:20:0;;;;;;;;;;;;;;;;;14798:12;;14791:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://0fc88a9d36f2b5bcd0e6042beb78907cc1236878659050320dc956c8077c375a

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

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