Contract 0x0990FC9817d11EE06F188eA47Fa7aed59F58d09C 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x901036278219d51aca844175c312eba6c82f2ca2392eca05ec94e250f9d07560Update Factories514278462022-11-25 12:23:578 days 52 mins agoOrion Protocol: Deployer IN  0x0990fc9817d11ee06f188ea47fa7aed59f58d09c0 FTM0.019399573784
0xad2473c92bc4be447c0e5582a4b301a9fc0c6340928cb6f36f42bcf79507cb750x60c06040514277272022-11-25 12:19:238 days 57 mins agoOrion Protocol: Deployer IN  Create: PoolFunctionality0 FTM0.510270664394
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xad2473c92bc4be447c0e5582a4b301a9fc0c6340928cb6f36f42bcf79507cb75514277272022-11-25 12:19:238 days 57 mins ago Orion Protocol: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PoolFunctionality

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, BSL 1.1 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2022-11-25
*/

// Sources flattened with hardhat v2.12.2 https://hardhat.org

// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;


// File contracts/interfaces/IWETH.sol


interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}


// File contracts/interfaces/IERC20.sol



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

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

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

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

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

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

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

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


// File contracts/utils/fromOZ/SafeMath.sol



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

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

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

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

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

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

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

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

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


// File contracts/utils/fromOZ/Address.sol



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File contracts/utils/fromOZ/SafeERC20.sol





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

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

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

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

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

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

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

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


// File contracts/libs/SafeTransferHelper.sol






library SafeTransferHelper {

    function safeAutoTransferFrom(address weth, address token, address from, address to, uint value) internal {
        if (token == address(0)) {
            require(from == address(this), "TransferFrom: this");
            IWETH(weth).deposit{value: value}();
            assert(IWETH(weth).transfer(to, value));
        } else {
            if (from == address(this)) {
                SafeERC20.safeTransfer(IERC20(token), to, value);
            } else {
                SafeERC20.safeTransferFrom(IERC20(token), from, to, value);
            }
        }
    }

    function safeAutoTransferTo(address weth, address token, address to, uint value) internal {
        if (address(this) != to) {
            if (token == address(0)) {
                IWETH(weth).withdraw(value);
                Address.sendValue(payable(to), value);
            } else {
                SafeERC20.safeTransfer(IERC20(token), to, value);
            }
        }
    }

    function safeTransferTokenOrETH(address token, address to, uint value) internal {
        if (address(this) != to) {
            if (token == address(0)) {
                Address.sendValue(payable(to), value);
            } else {
                SafeERC20.safeTransfer(IERC20(token), to, value);
            }
        }
    }
}


// File contracts/interfaces/IERC20Simple.sol



interface IERC20Simple {
    function decimals() external view virtual returns (uint8);
}


// File contracts/libs/LibUnitConverter.sol




library LibUnitConverter {

    using SafeMath for uint;

    /**
        @notice convert asset amount from8 decimals (10^8) to its base unit
     */
    function decimalToBaseUnit(address assetAddress, uint amount) internal view returns(uint112 baseValue){
        uint256 result;

        if(assetAddress == address(0)){
            result =  amount.mul(1 ether).div(10**8); // 18 decimals
        } else {
            uint decimals = IERC20Simple(assetAddress).decimals();

            result = amount.mul(10**decimals).div(10**8);
        }

        require(result < uint256(type(int112).max), "E3U");
        baseValue = uint112(result);
    }

    /**
        @notice convert asset amount from its base unit to 8 decimals (10^8)
     */
    function baseUnitToDecimal(address assetAddress, uint amount) internal view returns(uint112 decimalValue){
        uint256 result;

        if(assetAddress == address(0)){
            result = amount.mul(10**8).div(1 ether);
        } else {
            uint decimals = IERC20Simple(assetAddress).decimals();

            result = amount.mul(10**8).div(10**decimals);
        }
        require(result < uint256(type(int112).max), "E3U");
        decimalValue = uint112(result);
    }
}


// File contracts/utils/fromOZ/Context.sol



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

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


// File contracts/utils/fromOZ/Ownable.sol



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

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

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

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


// File contracts/interfaces/IPoolFunctionality.sol



interface IPoolFunctionality {

    struct SwapData {
        uint112     amount_spend;
        uint112     amount_receive;
        address     orionpool_router;
        bool        is_exact_spend;
        bool        supportingFee;
        bool        isInContractTrade;
        bool        isSentETHEnough;
        bool        isFromWallet;
        address     asset_spend;
        address[]   path;
    }

    struct InternalSwapData {
        address user;
        uint256 amountIn;
        uint256 amountOut;
        address asset_spend;
        address[] path;
        bool isExactIn;
        address to;
        address curFactory;
        FactoryType curFactoryType;
        bool supportingFee;
    }

    enum FactoryType {
        UNSUPPORTED,
        UNISWAPLIKE,
        CURVE
    }

    function doSwapThroughOrionPool(
        address user,
        address to,
        IPoolFunctionality.SwapData calldata swapData
    ) external returns (uint amountOut, uint amountIn);

    function getWETH() external view returns (address);

    function addLiquidityFromExchange(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to
    ) external returns (uint amountA, uint amountB, uint liquidity);

    function isFactory(address a) external view returns (bool);
}


// File contracts/utils/orionpool/core/interfaces/IOrionPoolV2Pair.sol



interface IOrionPoolV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint 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 (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint 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 (uint);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    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 (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}


// File contracts/utils/orionpool/periphery/interfaces/ICurveRegistry.sol



uint256 constant FEE_DENOMINATOR = 10**10;
uint256 constant PRECISION = 10**18;
uint256 constant MAX_COINS = 8;

interface ICurveRegistry {
    function find_pool_for_coins(address _from, address _to, uint256 i) view external returns(address);
    function get_coin_indices(address _pool, address _from, address _to) view external returns(int128, int128, bool);
    function get_balances(address _pool) view external returns (uint256[MAX_COINS] memory);
    function get_rates(address _pool) view external returns (uint256[MAX_COINS] memory);
    function get_A(address _pool) view external returns (uint256);
    function get_fees(address _pool) view external returns (uint256, uint256);
    function get_coins(address _pool) view external returns (address[MAX_COINS] memory);
}


// File contracts/utils/orionpool/periphery/interfaces/ICurvePool.sol



interface ICurvePool {
    function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) external;
    function get_dy(int128 i, int128 j, uint256 dx) external view returns(uint256);
}


// File contracts/utils/orionpool/core/interfaces/IOrionPoolV2Factory.sol



interface IOrionPoolV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

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

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}


// File contracts/utils/orionpool/OrionMultiPoolLibrary.sol








library OrionMultiPoolLibrary {
    using SafeMath 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, 'OMPL: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'OMPL: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal view returns (address pair) {
        pair = IOrionPoolV2Factory(factory).getPair(tokenA, tokenB);
    }

    function pairForCurve(address factory, address tokenA, address tokenB) internal view returns (address pool) {
        pool = ICurveRegistry(factory).find_pool_for_coins(tokenA, tokenB, 0);
    }

    // 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,) = IOrionPoolV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    function get_D(uint256[] memory xp, uint256 amp) internal pure returns(uint256) {
        uint N_COINS = xp.length;
        uint256 S = 0;
        for(uint i; i < N_COINS; ++i)
            S += xp[i];
        if(S == 0)
            return 0;

        uint256 Dprev = 0;
        uint256 D = S;
        uint256 Ann = amp * N_COINS;
        for(uint _i; _i < 255; ++_i) {
            uint256 D_P = D;
            for(uint j; j < N_COINS; ++j) {
                D_P = D_P * D / (xp[j] * N_COINS);  // If division by 0, this will be borked: only withdrawal will work. And that is good
            }
            Dprev = D;
            D = (Ann * S + D_P * N_COINS) * D / ((Ann - 1) * D + (N_COINS + 1) * D_P);
            // Equality with the precision of 1
            if (D > Dprev) {
                if (D - Dprev <= 1)
                    break;
            } else  {
                if (Dprev - D <= 1)
                    break;
            }
        }
        return D;
    }

    function get_y(int128 i, int128 j, uint256 x, uint256[] memory xp_, uint256 amp) pure internal returns(uint256)
    {
        // x in the input is converted to the same price/precision
        uint N_COINS = xp_.length;
        require(i != j, "same coin");
        require(j >= 0, "j below zero");
        require(uint128(j) < N_COINS, "j above N_COINS");

        require(i >= 0, "i below zero");
        require(uint128(i) < N_COINS, "i above N_COINS");

        uint256 D = get_D(xp_, amp);
        uint256 c = D;
        uint256 S_ = 0;
        uint256 Ann = amp * N_COINS;

        uint256 _x = 0;
        for(uint _i; _i < N_COINS; ++_i) {
            if(_i == uint128(i))
                _x = x;
            else if(_i != uint128(j))
                _x = xp_[_i];
            else
                continue;
            S_ += _x;
            c = c * D / (_x * N_COINS);
        }
        c = c * D / (Ann * N_COINS);
        uint256 b = S_ + D / Ann;  // - D
        uint256 y_prev = 0;
        uint256 y = D;
        for(uint _i; _i < 255; ++_i) {
            y_prev = y;
            y = (y*y + c) / (2 * y + b - D);
            // Equality with the precision of 1
            if(y > y_prev) {
                if (y - y_prev <= 1)
                    break;
            } else {
                if(y_prev - y <= 1)
                    break;
            }
        }
        return y;
    }

    function get_xp(address factory, address pool) internal view returns(uint256[] memory xp) {
        xp = new uint256[](MAX_COINS);

        address[MAX_COINS] memory coins = ICurveRegistry(factory).get_coins(pool);
        uint256[MAX_COINS] memory balances = ICurveRegistry(factory).get_balances(pool);

        uint i = 0;
        for (; i < balances.length; ++i) {
            if (balances[i] == 0)
                break;
            xp[i] = baseUnitToCurveDecimal(coins[i], balances[i]);
        }
        assembly { mstore(xp, sub(mload(xp), sub(MAX_COINS, i))) } // remove trail zeros from array
    }

    function getAmountOutCurve(address factory, address from, address to, uint256 amount) view internal returns(uint256) {
        address pool = pairForCurve(factory, from, to);
        (int128 i, int128 j,) = ICurveRegistry(factory).get_coin_indices(pool, from, to);
        uint256[] memory xp = get_xp(factory, pool);

        uint256 y;
        {
            uint256 A = ICurveRegistry(factory).get_A(pool);
            uint256 x = xp[uint(i)] + baseUnitToCurveDecimal(from, amount);
            y = get_y(i, j, x, xp, A);
        }

        (uint256 fee,) = ICurveRegistry(factory).get_fees(pool);
        uint256 dy = xp[uint(j)] - y - 1;
        uint256 dy_fee = dy * fee / FEE_DENOMINATOR;
        dy = curveDecimalToBaseUnit(to, dy - dy_fee);

        return dy;
    }

    function getAmountInCurve(address factory, address from, address to, uint256 amount) view internal returns(uint256) {
        address pool = pairForCurve(factory, from, to);
        (int128 i, int128 j,) = ICurveRegistry(factory).get_coin_indices(pool, from, to);
        uint256[] memory xp = get_xp(factory, pool);

        uint256 x;
        {
            (uint256 fee,) = ICurveRegistry(factory).get_fees(pool);
            uint256 A = ICurveRegistry(factory).get_A(pool);
            uint256 y = xp[uint256(j)] - baseUnitToCurveDecimal(to, (amount + 1)) * FEE_DENOMINATOR / (FEE_DENOMINATOR - fee);
            x = get_y(j, i, y, xp, A);
        }

        uint256 dx = curveDecimalToBaseUnit(from, x - xp[uint256(i)]);
        return dx;
    }

    function getAmountOutUniversal(
        address factory,
        IPoolFunctionality.FactoryType factoryType,
        address from,
        address to,
        uint256 amountIn
    ) view internal returns(uint256 amountOut) {
        if (factoryType == IPoolFunctionality.FactoryType.UNISWAPLIKE) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, from, to);
            amountOut = getAmountOutUv2(amountIn, reserveIn, reserveOut);
        } else if (factoryType == IPoolFunctionality.FactoryType.CURVE) {
            amountOut = getAmountOutCurve(factory, from, to, amountIn);
        } else if (factoryType == IPoolFunctionality.FactoryType.UNSUPPORTED) {
            revert("OMPL: FACTORY_UNSUPPORTED");
        }
    }

    function getAmountInUniversal(
        address factory,
        IPoolFunctionality.FactoryType factoryType,
        address from,
        address to,
        uint256 amountOut
    ) view internal returns(uint256 amountIn) {
        if (factoryType == IPoolFunctionality.FactoryType.UNISWAPLIKE) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, from, to);
            amountIn = getAmountInUv2(amountOut, reserveIn, reserveOut);
        } else if (factoryType == IPoolFunctionality.FactoryType.CURVE) {
            amountIn = getAmountInCurve(factory, from, to, amountOut);
        } else if (factoryType == IPoolFunctionality.FactoryType.UNSUPPORTED) {
            revert("OMPL: FACTORY_UNSUPPORTED");
        }
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(
        address factory,
        IPoolFunctionality.FactoryType factoryType,
        uint amountIn,
        address[] memory path
    ) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'OMPL: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;

        for (uint i = 1; i < path.length; ++i) {
            amounts[i] = getAmountOutUniversal(factory, factoryType, path[i - 1], path[i], amounts[i - 1]);
        }
    }

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

    /**
        @notice convert asset amount from decimals (10^18) to its base unit
    */
    function curveDecimalToBaseUnit(address assetAddress, uint amount) internal view returns(uint256 baseValue){
        uint256 result;

        if(assetAddress == address(0)){
            result = amount; // 18 decimals
        } else {
            uint decimals = IERC20Simple(assetAddress).decimals();

            result = amount.mul(10**decimals).div(10**18);
        }

        baseValue = result;
    }

    /**
        @notice convert asset amount from its base unit to 18 decimals (10^18)
    */
    function baseUnitToCurveDecimal(address assetAddress, uint amount) internal view returns(uint256 decimalValue){
        uint256 result;

        if(assetAddress == address(0)){
            result = amount;
        } else {
            uint decimals = IERC20Simple(assetAddress).decimals();

            result = amount.mul(10**18).div(10**decimals);
        }
        decimalValue = result;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOutUv2(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'OMPL: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'OMPL: 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 getAmountInUv2(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'OMPL: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'OMPL: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

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

}


// File contracts/interfaces/IPoolSwapCallback.sol



interface IPoolSwapCallback {
    function safeAutoTransferFrom(address token, address from, address to, uint value) external;
}


// File contracts/libs/PoolFunctionality.sol











contract PoolFunctionality is Ownable, IPoolFunctionality {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    address public immutable factory;
    address public immutable WETH;

    address[] public factories;

    mapping(address => FactoryType) public supportedFactories;

    event OrionPoolSwap(
        address sender,
        address st,
        address rt,
        uint256 st_r,
        uint256 st_a,
        uint256 rt_r,
        uint256 rt_a,
        address f
    );

    constructor(address _factory, FactoryType _type, address _WETH) {
        factory = _factory;
        WETH = _WETH;
        factories = [_factory];
        supportedFactories[_factory] = _type;
    }

    receive() external payable {
        assert(msg.sender == WETH); // only accept ETH via fallback from the WETH contract
    }

    function getWETH() external view override returns (address) {
        return WETH;
    }

    function getFactoriesLength() public view returns (uint256) {
        return factories.length;
    }

    function updateFactories(
        address[] calldata _factories,
        FactoryType[] calldata _types
    ) public onlyOwner {
        require(_factories.length > 0, "PoolFunctionality: FL");
        for (uint256 i = 0; i < factories.length; ++i) {
            supportedFactories[factories[i]] = FactoryType.UNSUPPORTED;
        }

        factories = _factories;

        for (uint256 i = 0; i < factories.length; i++) {
            supportedFactories[factories[i]] = _types[i];
        }
    }

    function isFactory(address a) external view override returns (bool) {
        return supportedFactories[a] != FactoryType.UNSUPPORTED;
    }

    function doSwapThroughOrionPool(
        address user,
        address to,
        IPoolFunctionality.SwapData calldata swapData
    ) external override returns (uint256 amountOut, uint256 amountIn) {
        bool withFactory = swapData.path.length > 2 &&
            (supportedFactories[swapData.path[0]] != FactoryType.UNSUPPORTED);
        address curFactory = withFactory ? swapData.path[0] : factory;
        address[] memory new_path;

        uint256 tokenIndex = withFactory ? 1 : 0;
        new_path = new address[](swapData.path.length - tokenIndex);

        for ((uint256 i, uint256 j) = (tokenIndex, 0); i < swapData.path.length; (++i, ++j)) {
            new_path[j] = swapData.path[i] == address(0) ? WETH : swapData.path[i];
        }

        (uint256 amount_spend_base_units, uint256 amount_receive_base_units) = (
            LibUnitConverter.decimalToBaseUnit(
                swapData.path[tokenIndex],
                swapData.amount_spend
            ),
            LibUnitConverter.decimalToBaseUnit(
                swapData.path[swapData.path.length - 1],
                swapData.amount_receive
            )
        );
        {
        (uint256 userAmountIn, uint256 userAmountOut) = _doSwapTokens(InternalSwapData(
            user,
            amount_spend_base_units,
            amount_receive_base_units,
            withFactory ? swapData.path[1] : swapData.path[0],
            new_path,
            swapData.is_exact_spend,
            to,
            curFactory,
            supportedFactories[curFactory],
            swapData.supportingFee
        ));

        //  Anyway user gave amounts[0] and received amounts[len-1]
        amountOut = LibUnitConverter.baseUnitToDecimal(
            swapData.path[tokenIndex],
            userAmountIn
        );
        amountIn = LibUnitConverter.baseUnitToDecimal(
            swapData.path[swapData.path.length - 1],
            userAmountOut
        );
        }
    }

    function convertFromWETH(address a) internal view returns (address) {
        return a == WETH ? address(0) : a;
    }

    function pairFor(
        address curFactory,
        address tokenA,
        address tokenB
    ) public view returns (address pair) {
        return OrionMultiPoolLibrary.pairFor(curFactory, tokenA, tokenB);
    }

    function _doSwapTokens(InternalSwapData memory swapData) internal returns (uint256 amountIn, uint256 amountOut) {
        bool isLastWETH = swapData.path[swapData.path.length - 1] == WETH;
        address toAuto = isLastWETH || swapData.curFactoryType == FactoryType.CURVE ? address(this) : swapData.to;
        uint256[] memory amounts;
        if (!swapData.supportingFee) {
            if (swapData.isExactIn) {
                amounts = OrionMultiPoolLibrary.getAmountsOut(
                    swapData.curFactory,
                    swapData.curFactoryType,
                    swapData.amountIn,
                    swapData.path
                );
                require(amounts[amounts.length - 1] >= swapData.amountOut, "PoolFunctionality: IOA");
            } else {
                amounts = OrionMultiPoolLibrary.getAmountsIn(
                    swapData.curFactory,
                    swapData.curFactoryType,
                    swapData.amountOut,
                    swapData.path
                );
                require(amounts[0] <= swapData.amountIn, "PoolFunctionality: EIA");
            }
        } else {
            amounts = new uint256[](1);
            amounts[0] = swapData.amountIn;
        }
        amountIn = amounts[0];

        {
            uint256 curBalance;
            address initialTransferSource = swapData.curFactoryType == FactoryType.CURVE ? address(this)
                : OrionMultiPoolLibrary.pairFor(swapData.curFactory, swapData.path[0], swapData.path[1]);

            if (swapData.supportingFee) curBalance = IERC20(swapData.path[0]).balanceOf(initialTransferSource);

            IPoolSwapCallback(msg.sender).safeAutoTransferFrom(
                swapData.asset_spend,
                swapData.user,
                initialTransferSource,
                amountIn
            );
            if (swapData.supportingFee) amounts[0] = IERC20(swapData.path[0]).balanceOf(initialTransferSource) - curBalance;
        }

        {
            uint256 curBalance = IERC20(swapData.path[swapData.path.length - 1]).balanceOf(toAuto);
            if (swapData.curFactoryType == FactoryType.CURVE) {
                _swapCurve(swapData.curFactory, amounts, swapData.path, swapData.supportingFee);
            } else if (swapData.curFactoryType == FactoryType.UNISWAPLIKE) {
                _swap(swapData.curFactory, amounts, swapData.path, toAuto, swapData.supportingFee);
            }
            amountOut = IERC20(swapData.path[swapData.path.length - 1]).balanceOf(toAuto) - curBalance;
        }

        require(
            swapData.amountIn == 0 || swapData.amountOut == 0 ||
            amountIn * 1e18 / swapData.amountIn <= amountOut * 1e18 / swapData.amountOut,
            "PoolFunctionality: OOS"
        );

        if (isLastWETH) {
            SafeTransferHelper.safeAutoTransferTo(
                WETH,
                address(0),
                swapData.to,
                amountOut
            );
        } else if (swapData.curFactoryType == FactoryType.CURVE) {
            IERC20(swapData.path[swapData.path.length - 1]).safeTransfer(swapData.to, amountOut);
        }

        emit OrionPoolSwap(
            tx.origin,
            convertFromWETH(swapData.path[0]),
            convertFromWETH(swapData.path[swapData.path.length - 1]),
            swapData.amountIn,
            amountIn,
            swapData.amountOut,
            amountOut,
            swapData.curFactory
        );
    }

    function _swap(
        address curFactory,
        uint256[] memory amounts,
        address[] memory path,
        address _to,
        bool supportingFee
    ) internal {
        for (uint256 i; i < path.length - 1; ++i) {
            (address input, address output) = (path[i], path[i + 1]);
            IOrionPoolV2Pair pair = IOrionPoolV2Pair(OrionMultiPoolLibrary.pairFor(curFactory, input, output));
            (address token0, ) = OrionMultiPoolLibrary.sortTokens(input, output);
            uint256 amountOut;

            if (supportingFee) {
                (uint reserve0, uint reserve1,) = pair.getReserves();
                (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
                uint256 amountIn = IERC20(input).balanceOf(address(pair)).sub(reserveInput);
                amountOut = OrionMultiPoolLibrary.getAmountOutUv2(amountIn, reserveInput, reserveOutput);
            } else {
                amountOut = amounts[i + 1];
            }

            (uint256 amount0Out, uint256 amount1Out) = input == token0 ? (uint256(0), amountOut) : (amountOut, uint256(0));
            address to = i < path.length - 2 ? OrionMultiPoolLibrary.pairFor(curFactory, output, path[i + 2]) : _to;

            pair.swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }

    function _swapCurve(
        address curFactory,
        uint256[] memory amounts,
        address[] memory path,
        bool supportingFee
    ) internal {
        for (uint256 i; i < path.length - 1; ++i) {
            (address input, address output) = (path[i], path[i + 1]);
            address pool = OrionMultiPoolLibrary.pairForCurve(curFactory, input, output);
            (int128 inputInd, int128 outputInd,) = ICurveRegistry(curFactory).get_coin_indices(pool, input, output);

            uint256 curBalance;
            uint amountsIndex = supportingFee ? 0 : i;
            if (supportingFee) curBalance = IERC20(path[i + 1]).balanceOf(address(this));

            if (IERC20(input).allowance(address(this), pool) < amounts[amountsIndex]) {
                IERC20(input).safeIncreaseAllowance(pool, type(uint256).max);
            }
            ICurvePool(pool).exchange(inputInd, outputInd, amounts[amountsIndex], 0);

            if (supportingFee) amounts[0] = IERC20(path[i + 1]).balanceOf(address(this)) - curBalance;
        }
    }

    function addLiquidityFromExchange(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to
    )
        external
        override
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        )
    {
        amountADesired = LibUnitConverter.decimalToBaseUnit(
            tokenA,
            amountADesired
        );
        amountBDesired = LibUnitConverter.decimalToBaseUnit(
            tokenB,
            amountBDesired
        );
        amountAMin = LibUnitConverter.decimalToBaseUnit(tokenA, amountAMin);
        amountBMin = LibUnitConverter.decimalToBaseUnit(tokenB, amountBMin);

        address tokenAOrWETH = tokenA;
        if (tokenAOrWETH == address(0)) {
            tokenAOrWETH = WETH;
        }

        (amountA, amountB) = _addLiquidity(
            tokenAOrWETH,
            tokenB,
            amountADesired,
            amountBDesired,
            amountAMin,
            amountBMin
        );

        address pair = IOrionPoolV2Factory(factory).getPair(
            tokenAOrWETH,
            tokenB
        );
        IPoolSwapCallback(msg.sender).safeAutoTransferFrom(
            tokenA,
            msg.sender,
            pair,
            amountA
        );
        IPoolSwapCallback(msg.sender).safeAutoTransferFrom(
            tokenB,
            msg.sender,
            pair,
            amountB
        );

        liquidity = IOrionPoolV2Pair(pair).mint(to);

        amountA = LibUnitConverter.baseUnitToDecimal(tokenA, amountA);
        amountB = LibUnitConverter.baseUnitToDecimal(tokenB, amountB);
    }

    function _addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin
    ) internal returns (uint256 amountA, uint256 amountB) {
        // create the pair if it doesn't exist yet
        if (
            IOrionPoolV2Factory(factory).getPair(tokenA, tokenB) == address(0)
        ) {
            IOrionPoolV2Factory(factory).createPair(tokenA, tokenB);
        }
        (uint256 reserveA, uint256 reserveB) = OrionMultiPoolLibrary.getReserves(
            factory,
            tokenA,
            tokenB
        );
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint256 amountBOptimal = OrionMultiPoolLibrary.quoteUv2(
                amountADesired,
                reserveA,
                reserveB
            );
            if (amountBOptimal <= amountBDesired) {
                require(
                    amountBOptimal >= amountBMin,
                    "PoolFunctionality: INSUFFICIENT_B_AMOUNT"
                );
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint256 amountAOptimal = OrionMultiPoolLibrary.quoteUv2(
                    amountBDesired,
                    reserveB,
                    reserveA
                );
                assert(amountAOptimal <= amountADesired);
                require(
                    amountAOptimal >= amountAMin,
                    "PoolFunctionality: INSUFFICIENT_A_AMOUNT"
                );
                (amountA, amountB) = (amountAOptimal, amountBDesired);
            }
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"enum IPoolFunctionality.FactoryType","name":"_type","type":"uint8"},{"internalType":"address","name":"_WETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"st","type":"address"},{"indexed":false,"internalType":"address","name":"rt","type":"address"},{"indexed":false,"internalType":"uint256","name":"st_r","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"st_a","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rt_r","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rt_a","type":"uint256"},{"indexed":false,"internalType":"address","name":"f","type":"address"}],"name":"OrionPoolSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesired","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"addLiquidityFromExchange","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"uint112","name":"amount_spend","type":"uint112"},{"internalType":"uint112","name":"amount_receive","type":"uint112"},{"internalType":"address","name":"orionpool_router","type":"address"},{"internalType":"bool","name":"is_exact_spend","type":"bool"},{"internalType":"bool","name":"supportingFee","type":"bool"},{"internalType":"bool","name":"isInContractTrade","type":"bool"},{"internalType":"bool","name":"isSentETHEnough","type":"bool"},{"internalType":"bool","name":"isFromWallet","type":"bool"},{"internalType":"address","name":"asset_spend","type":"address"},{"internalType":"address[]","name":"path","type":"address[]"}],"internalType":"struct IPoolFunctionality.SwapData","name":"swapData","type":"tuple"}],"name":"doSwapThroughOrionPool","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"factories","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFactoriesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"isFactory","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"curFactory","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"pairFor","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supportedFactories","outputs":[{"internalType":"enum IPoolFunctionality.FactoryType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_factories","type":"address[]"},{"internalType":"enum IPoolFunctionality.FactoryType[]","name":"_types","type":"uint8[]"}],"name":"updateFactories","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b50604051620045ce380380620045ce8339810160408190526200003491620001b0565b6000620000406200010e565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160601b0319606084811b821660805282901b1660a05260408051602081019091526001600160a01b0384168152620000ca906001908162000112565b506001600160a01b03831660009081526002602081905260409091208054849260ff199091169060019084908111156200010057fe5b0217905550505050620001fd565b3390565b8280548282559060005260206000209081019282156200016a579160200282015b828111156200016a57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000133565b50620001789291506200017c565b5090565b5b808211156200017857600081556001016200017d565b80516001600160a01b0381168114620001ab57600080fd5b919050565b600080600060608486031215620001c5578283fd5b620001d08462000193565b9250602084015160038110620001e4578283fd5b9150620001f46040850162000193565b90509250925092565b60805160601c60a05160601c61436c620002626000398060f052806105d9528061082152806108695280610a605280611299528061188a5280612480525080610626528061084552806109135280610fba528061106f5280611102525061436c6000f3fe6080604052600436106100e05760003560e01c8063a25a58171161007f578063cae5f11e11610059578063cae5f11e14610266578063d5f724f31461027b578063de05051c146102a9578063f2fde38b146102d657610119565b8063a25a58171461020d578063ad5c46481461023c578063c45a01551461025157610119565b80636d91c0e2116100bb5780636d91c0e2146101a1578063715018a6146101c157806375eb0700146101d65780638da5cb5b146101f857610119565b806252c1fb1461011e5780630f04ba671461013e578063672383c41461017457610119565b3661011957336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461011757fe5b005b600080fd5b34801561012a57600080fd5b506101176101393660046137bf565b6102f6565b34801561014a57600080fd5b5061015e6101593660046135e8565b610459565b60405161016b9190613b50565b60405180910390f35b34801561018057600080fd5b5061019461018f366004613993565b61048f565b60405161016b9190613a52565b3480156101ad57600080fd5b506101946101bc366004613620565b6104b9565b3480156101cd57600080fd5b506101176104d0565b3480156101e257600080fd5b506101eb610559565b60405161016b919061422e565b34801561020457600080fd5b5061019461055f565b34801561021957600080fd5b5061022d6102283660046136c6565b61056e565b60405161016b93929190614272565b34801561024857600080fd5b5061019461081f565b34801561025d57600080fd5b50610194610843565b34801561027257600080fd5b50610194610867565b34801561028757600080fd5b5061029b61029636600461366a565b61088b565b60405161016b929190614237565b3480156102b557600080fd5b506102c96102c43660046135e8565b610d53565b60405161016b9190613b5b565b3480156102e257600080fd5b506101176102f13660046135e8565b610d68565b6102fe610e28565b6001600160a01b031661030f61055f565b6001600160a01b03161461033e5760405162461bcd60e51b815260040161033590614046565b60405180910390fd5b8261035b5760405162461bcd60e51b815260040161033590614017565b60005b6001548110156103c0576000600260006001848154811061037b57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020805460ff191660018360028111156103b357fe5b021790555060010161035e565b506103cd600185856134fd565b5060005b600154811015610452578282828181106103e757fe5b90506020020160208101906103fc91906138d4565b600260006001848154811061040d57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020805460ff1916600183600281111561044557fe5b02179055506001016103d1565b5050505050565b6000806001600160a01b03831660009081526002602081905260409091205460ff169081111561048557fe5b141590505b919050565b6001818154811061049f57600080fd5b6000918252602090912001546001600160a01b0316905081565b60006104c6848484610e2c565b90505b9392505050565b6104d8610e28565b6001600160a01b03166104e961055f565b6001600160a01b03161461050f5760405162461bcd60e51b815260040161033590614046565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015490565b6000546001600160a01b031690565b600080600061057d8a89610ead565b6001600160701b031697506105928988610ead565b6001600160701b031696506105a78a87610ead565b6001600160701b031695506105bc8986610ead565b6001600160701b03169450896001600160a01b0381166105f957507f00000000000000000000000000000000000000000000000000000000000000005b610607818b8b8b8b8b610fa4565b60405163e6a4390560e01b815291955093506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e6a439059061065d9085908f90600401613a66565b60206040518083038186803b15801561067557600080fd5b505afa158015610689573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ad9190613604565b6040516353664c0160e01b815290915033906353664c01906106d9908f90849086908b90600401613ac6565b600060405180830381600087803b1580156106f357600080fd5b505af1158015610707573d6000803e3d6000fd5b50506040516353664c0160e01b81523392506353664c019150610734908e90849086908a90600401613ac6565b600060405180830381600087803b15801561074e57600080fd5b505af1158015610762573d6000803e3d6000fd5b50506040516335313c2160e11b81526001600160a01b0384169250636a6278429150610792908990600401613a52565b602060405180830381600087803b1580156107ac57600080fd5b505af11580156107c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e491906139ab565b92506107f08c866111d9565b6001600160701b031694506108058b856111d9565b6001600160701b0316935050509750975097945050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000090565b60008080600261089f610120860186614288565b905011801561090857506000600260006108bd610120880188614288565b60008181106108c857fe5b90506020020160208101906108dd91906135e8565b6001600160a01b0316815260208101919091526040016000205460ff16600281111561090557fe5b14155b9050600081610937577f0000000000000000000000000000000000000000000000000000000000000000610965565b610945610120860186614288565b600081811061095057fe5b905060200201602081019061096591906135e8565b9050606060008361097757600061097a565b60015b60ff1690508061098e610120890189614288565b90500367ffffffffffffffff811180156109a757600080fd5b506040519080825280602002602001820160405280156109d1578160200160208202803683370190505b5091508060005b6109e66101208a018a614288565b9050821015610ab05760006109ff6101208b018b614288565b84818110610a0957fe5b9050602002016020810190610a1e91906135e8565b6001600160a01b031614610a5e57610a3a6101208a018a614288565b83818110610a4457fe5b9050602002016020810190610a5991906135e8565b610a80565b7f00000000000000000000000000000000000000000000000000000000000000005b848281518110610a8c57fe5b6001600160a01b0390921660209283029190910190910152600191820191016109d8565b506000905080610b01610ac76101208b018b614288565b85818110610ad157fe5b9050602002016020810190610ae691906135e8565b610af360208c018c61392e565b6001600160701b0316610ead565b610b53610b126101208c018c614288565b6001610b226101208f018f614288565b905003818110610b2e57fe5b9050602002016020810190610b4391906135e8565b610af360408d0160208e0161392e565b6001600160701b031691506001600160701b03169150600080610ca76040518061014001604052808f6001600160a01b031681526020018681526020018581526020018a610bce57610ba96101208f018f614288565b6000818110610bb457fe5b9050602002016020810190610bc991906135e8565b610bfc565b610bdc6101208f018f614288565b6001818110610be757fe5b9050602002016020810190610bfc91906135e8565b6001600160a01b031681526020018881526020018d6060016020810190610c23919061389c565b151581526020018e6001600160a01b03168152602001896001600160a01b03168152602001600260008b6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff166002811115610c8657fe5b81526020018d6080016020810190610c9e919061389c565b15159052611292565b9092509050610ce2610cbd6101208d018d614288565b87818110610cc757fe5b9050602002016020810190610cdc91906135e8565b836111d9565b6001600160701b03169950610d38610cfe6101208d018d614288565b60018e806101200190610d119190614288565b905003818110610d1d57fe5b9050602002016020810190610d3291906135e8565b826111d9565b6001600160701b031698505050505050505050935093915050565b60026020526000908152604090205460ff1681565b610d70610e28565b6001600160a01b0316610d8161055f565b6001600160a01b031614610da75760405162461bcd60e51b815260040161033590614046565b6001600160a01b038116610dcd5760405162461bcd60e51b815260040161033590613c5b565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60405163e6a4390560e01b81526000906001600160a01b0385169063e6a4390590610e5d9086908690600401613a66565b60206040518083038186803b158015610e7557600080fd5b505afa158015610e89573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c69190613604565b6000806001600160a01b038416610ee557610ede6305f5e100610ed885670de0b6b3a76400006119a7565b906119e7565b9050610f77565b6000846001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610f2057600080fd5b505afa158015610f34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5891906139e6565b60ff169050610f736305f5e100610ed886600a85900a6119a7565b9150505b6d7fffffffffffffffffffffffffff81106104c95760405162461bcd60e51b815260040161033590613ca1565b60405163e6a4390560e01b8152600090819081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e6a4390590610ff9908c908c90600401613a66565b60206040518083038186803b15801561101157600080fd5b505afa158015611025573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110499190613604565b6001600160a01b031614156110fa576040516364e329cb60e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c9c65396906110a6908b908b90600401613a66565b602060405180830381600087803b1580156110c057600080fd5b505af11580156110d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f89190613604565b505b6000806111287f00000000000000000000000000000000000000000000000000000000000000008b8b611a19565b9150915081600014801561113a575080155b1561114a578793508692506111cc565b6000611157898484611af2565b905087811161118b57858110156111805760405162461bcd60e51b815260040161033590613c13565b8894509250826111ca565b6000611198898486611af2565b9050898111156111a457fe5b878110156111c45760405162461bcd60e51b815260040161033590613d56565b94508793505b505b5050965096945050505050565b6000806001600160a01b03841661120457610ede670de0b6b3a7640000610ed8856305f5e1006119a7565b6000846001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561123f57600080fd5b505afa158015611253573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127791906139e6565b60ff169050610f73600a82900a610ed8866305f5e1006119a7565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168460800151600186608001515103815181106112d957fe5b60200260200101516001600160a01b03161490506000818061130b57506002856101000151600281111561130957fe5b145b611319578460c0015161131b565b305b905060608561012001516113ee578560a0015115611392576113508660e0015187610100015188602001518960800151611b5a565b905085604001518160018351038151811061136757fe5b6020026020010151101561138d5760405162461bcd60e51b815260040161033590613f1d565b6113e9565b6113af8660e0015187610100015188604001518960800151611c5c565b90508560200151816000815181106113c357fe5b602002602001015111156113e95760405162461bcd60e51b81526004016103359061407b565b61142d565b604080516001808252818301909252906020808301908036833701905050905085602001518160008151811061142057fe5b6020026020010181815250505b8060008151811061143a57fe5b6020026020010151945060008060028081111561145357fe5b886101000151600281111561146457fe5b146114ad576114a88860e00151896080015160008151811061148257fe5b60200260200101518a6080015160018151811061149b57fe5b6020026020010151610e2c565b6114af565b305b9050876101200151156115535787608001516000815181106114cd57fe5b60200260200101516001600160a01b03166370a08231826040518263ffffffff1660e01b81526004016115009190613a52565b60206040518083038186803b15801561151857600080fd5b505afa15801561152c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155091906139ab565b91505b606088015188516040516353664c0160e01b815233926353664c019261157f9286908d90600401613ac6565b600060405180830381600087803b15801561159957600080fd5b505af11580156115ad573d6000803e3d6000fd5b505050508761012001511561166c578188608001516000815181106115ce57fe5b60200260200101516001600160a01b03166370a08231836040518263ffffffff1660e01b81526004016116019190613a52565b60206040518083038186803b15801561161957600080fd5b505afa15801561162d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165191906139ab565b038360008151811061165f57fe5b6020026020010181815250505b50506080860151805160009190600019810190811061168757fe5b60200260200101516001600160a01b03166370a08231846040518263ffffffff1660e01b81526004016116ba9190613a52565b60206040518083038186803b1580156116d257600080fd5b505afa1580156116e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170a91906139ab565b90506002876101000151600281111561171f57fe5b14156117435761173e8760e001518389608001518a6101200151611d5a565b611776565b6001876101000151600281111561175657fe5b1415611776576117768760e00151838960800151868b61012001516120cc565b60808701518051829190600019810190811061178e57fe5b60200260200101516001600160a01b03166370a08231856040518263ffffffff1660e01b81526004016117c19190613a52565b60206040518083038186803b1580156117d957600080fd5b505afa1580156117ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181191906139ab565b0394505085602001516000148061182a57506040860151155b806118635750856040015184670de0b6b3a7640000028161184757fe5b04866020015186670de0b6b3a7640000028161185f57fe5b0411155b61187f5760405162461bcd60e51b815260040161033590614168565b82156118bb576118b67f000000000000000000000000000000000000000000000000000000000000000060008860c0015187612385565b611915565b600286610100015160028111156118ce57fe5b1415611915576119158660c0015185886080015160018a608001515103815181106118f557fe5b60200260200101516001600160a01b03166124219092919063ffffffff16565b7f6cea247822cc220200c559ac8275982608dbf8d8448dea1c08ec3d4fffab219c32611958886080015160008151811061194b57fe5b602002602001015161247c565b608089015180516119729190600019810190811061194b57fe5b8960200151898b604001518a8d60e00151604051611997989796959493929190613a80565b60405180910390a1505050915091565b6000826119b6575060006119e1565b828202828482816119c357fe5b04146104c95760405162461bcd60e51b815260040161033590613fd6565b92915050565b6000808211611a085760405162461bcd60e51b815260040161033590613ee6565b818381611a1157fe5b049392505050565b6000806000611a2885856124c5565b509050600080611a39888888610e2c565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611a7157600080fd5b505afa158015611a85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa9919061394a565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b031614611ae0578082611ae3565b81815b90999098509650505050505050565b6000808411611b135760405162461bcd60e51b815260040161033590613f4d565b600083118015611b235750600082115b611b3f5760405162461bcd60e51b815260040161033590613bdc565b82611b4a85846119a7565b81611b5157fe5b04949350505050565b6060600282511015611b7e5760405162461bcd60e51b815260040161033590613f84565b815167ffffffffffffffff81118015611b9657600080fd5b50604051908082528060200260200182016040528015611bc0578160200160208202803683370190505b5090508281600081518110611bd157fe5b602090810291909101015260015b8251811015611c5357611c348686856001850381518110611bfc57fe5b6020026020010151868581518110611c1057fe5b6020026020010151866001870381518110611c2757fe5b602002602001015161254f565b828281518110611c4057fe5b6020908102919091010152600101611bdf565b50949350505050565b6060600282511015611c805760405162461bcd60e51b815260040161033590613f84565b815167ffffffffffffffff81118015611c9857600080fd5b50604051908082528060200260200182016040528015611cc2578160200160208202803683370190505b5090508281600183510381518110611cd657fe5b60209081029190910101528151600019015b8015611c5357611d378686856001850381518110611d0257fe5b6020026020010151868581518110611d1657fe5b6020026020010151868681518110611d2a57fe5b60200260200101516125e7565b826001830381518110611d4657fe5b602090810291909101015260001901611ce8565b60005b600183510381101561045257600080848381518110611d7857fe5b6020026020010151858460010181518110611d8f57fe5b6020026020010151915091506000611da888848461263a565b9050600080896001600160a01b031663eb85226d8487876040518463ffffffff1660e01b8152600401611ddd93929190613af0565b60606040518083038186803b158015611df557600080fd5b505afa158015611e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2d91906138f3565b509150915060008088611e405787611e43565b60005b90508815611ee057898860010181518110611e5a57fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401611e8d9190613a52565b60206040518083038186803b158015611ea557600080fd5b505afa158015611eb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edd91906139ab565b91505b8a8181518110611eec57fe5b6020026020010151876001600160a01b031663dd62ed3e30886040518363ffffffff1660e01b8152600401611f22929190613a66565b60206040518083038186803b158015611f3a57600080fd5b505afa158015611f4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7291906139ab565b1015611f8e57611f8e6001600160a01b0388168660001961266d565b846001600160a01b0316633df0212485858e8581518110611fab57fe5b602002602001015160006040518563ffffffff1660e01b8152600401611fd49493929190613b6f565b600060405180830381600087803b158015611fee57600080fd5b505af1158015612002573d6000803e3d6000fd5b5050505088156120ba57818a896001018151811061201c57fe5b60200260200101516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161204f9190613a52565b60206040518083038186803b15801561206757600080fd5b505afa15801561207b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209f91906139ab565b038b6000815181106120ad57fe5b6020026020010181815250505b50505050505050806001019050611d5d565b60005b600184510381101561237d576000808583815181106120ea57fe5b602002602001015186846001018151811061210157fe5b602002602001015191509150600061211a898484610e2c565b9050600061212884846124c5565b5090506000861561228957600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561216f57600080fd5b505afa158015612183573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a7919061394a565b506001600160701b031691506001600160701b03169150600080856001600160a01b0316896001600160a01b0316146121e15782846121e4565b83835b915091506000612270838b6001600160a01b03166370a082318b6040518263ffffffff1660e01b815260040161221a9190613a52565b60206040518083038186803b15801561223257600080fd5b505afa158015612246573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061226a91906139ab565b90612718565b905061227d818484612740565b955050505050506122a3565b89866001018151811061229857fe5b602002602001015190505b600080836001600160a01b0316876001600160a01b0316146122c7578260006122cb565b6000835b91509150600060028c510389106122e2578a6122f6565b6122f68e888e8c6002018151811061149b57fe5b6040805160008152602081019182905263022c0d9f60e01b9091529091506001600160a01b0387169063022c0d9f906123389086908690869060248101614245565b600060405180830381600087803b15801561235257600080fd5b505af1158015612366573d6000803e3d6000fd5b5050505050505050505050508060010190506120cf565b505050505050565b306001600160a01b0383161461241b576001600160a01b03831661241057604051632e1a7d4d60e01b81526001600160a01b03851690632e1a7d4d906123cf90849060040161422e565b600060405180830381600087803b1580156123e957600080fd5b505af11580156123fd573d6000803e3d6000fd5b5050505061240b82826127d4565b61241b565b61241b838383612421565b50505050565b6124778363a9059cbb60e01b8484604051602401612440929190613b37565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612870565b505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316146124bd57816119e1565b600092915050565b600080826001600160a01b0316846001600160a01b031614156124fa5760405162461bcd60e51b8152600401610335906140ab565b826001600160a01b0316846001600160a01b03161061251a57828461251d565b83835b90925090506001600160a01b0382166125485760405162461bcd60e51b815260040161033590613d2a565b9250929050565b6000600185600281111561255f57fe5b141561258b57600080612573888787611a19565b91509150612582848383612740565b925050506125de565b600285600281111561259957fe5b14156125b2576125ab868585856128ff565b90506125de565b60008560028111156125c057fe5b14156125de5760405162461bcd60e51b815260040161033590613ba5565b95945050505050565b600060018560028111156125f757fe5b141561261a5760008061260b888787611a19565b91509150612582848383612b2f565b600285600281111561262857fe5b14156125b2576125ab86858585612bc9565b604051636982eb0b60e01b81526000906001600160a01b03851690636982eb0b90610e5d90869086908690600401613b13565b60006126f782856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b81526004016126a1929190613a66565b60206040518083038186803b1580156126b957600080fd5b505afa1580156126cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f191906139ab565b90612df5565b905061241b8463095ea7b360e01b8584604051602401612440929190613b37565b60008282111561273a5760405162461bcd60e51b815260040161033590613dd5565b50900390565b60008084116127615760405162461bcd60e51b815260040161033590613d9e565b6000831180156127715750600082115b61278d5760405162461bcd60e51b815260040161033590613bdc565b600061279b856103e56119a7565b905060006127a982856119a7565b905060006127bd836126f1886103e86119a7565b90508082816127c857fe5b04979650505050505050565b804710156127f45760405162461bcd60e51b815260040161033590613e69565b6000826001600160a01b03168260405161280d90613a4f565b60006040518083038185875af1925050503d806000811461284a576040519150601f19603f3d011682016040523d82523d6000602084013e61284f565b606091505b50509050806124775760405162461bcd60e51b815260040161033590613e0c565b60606128c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612e1a9092919063ffffffff16565b80519091501561247757808060200190518101906128e391906138b8565b6124775760405162461bcd60e51b8152600401610335906141c1565b60008061290d86868661263a565b9050600080876001600160a01b031663eb85226d8489896040518463ffffffff1660e01b815260040161294293929190613af0565b60606040518083038186803b15801561295a57600080fd5b505afa15801561296e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299291906138f3565b509150915060606129a38985612e29565b90506000808a6001600160a01b03166355b30b19876040518263ffffffff1660e01b81526004016129d49190613a52565b60206040518083038186803b1580156129ec57600080fd5b505afa158015612a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2491906139ab565b90506000612a328b8a612fdd565b8487600f0b81518110612a4157fe5b6020026020010151019050612a598686838786613087565b9250505060008a6001600160a01b0316637cdb72b0876040518263ffffffff1660e01b8152600401612a8b9190613a52565b604080518083038186803b158015612aa257600080fd5b505afa158015612ab6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ada91906139c3565b50905060006001838587600f0b81518110612af157fe5b60200260200101510303905060006402540be40083830281612b0f57fe5b049050612b1e8b828403613260565b9d9c50505050505050505050505050565b6000808411612b505760405162461bcd60e51b815260040161033590613cbe565b600083118015612b605750600082115b612b7c5760405162461bcd60e51b815260040161033590613bdc565b6000612b946103e8612b8e86886119a7565b906119a7565b90506000612ba86103e5612b8e8689612718565b9050612bbf6001828481612bb857fe5b0490612df5565b9695505050505050565b600080612bd786868661263a565b9050600080876001600160a01b031663eb85226d8489896040518463ffffffff1660e01b8152600401612c0c93929190613af0565b60606040518083038186803b158015612c2457600080fd5b505afa158015612c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c5c91906138f3565b50915091506060612c6d8985612e29565b90506000808a6001600160a01b0316637cdb72b0876040518263ffffffff1660e01b8152600401612c9e9190613a52565b604080518083038186803b158015612cb557600080fd5b505afa158015612cc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ced91906139c3565b50905060008b6001600160a01b03166355b30b19886040518263ffffffff1660e01b8152600401612d1e9190613a52565b60206040518083038186803b158015612d3657600080fd5b505afa158015612d4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d6e91906139ab565b90506000826402540be400036402540be400612d8d8d8d600101612fdd565b0281612d9557fe5b048587600f0b81518110612da557fe5b6020026020010151039050612dbd8688838886613087565b93505050506000612de68a8487600f0b81518110612dd757fe5b60200260200101518403613260565b9b9a5050505050505050505050565b6000828201838110156104c95760405162461bcd60e51b815260040161033590613cf3565b60606104c6848460008561330a565b60408051600880825261012082019092526060916020820161010080368337019050509050612e56613560565b604051639ac90d3d60e01b81526001600160a01b03851690639ac90d3d90612e82908690600401613a52565b6101006040518083038186803b158015612e9b57600080fd5b505afa158015612eaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed39190613737565b9050612edd613560565b6040516392e3cc2d60e01b81526001600160a01b038616906392e3cc2d90612f09908790600401613a52565b6101006040518083038186803b158015612f2257600080fd5b505afa158015612f36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5a9190613828565b905060005b6008811015612fcb57818160088110612f7457fe5b6020020151612f8257612fcb565b612fac838260088110612f9157fe5b6020020151838360088110612fa257fe5b6020020151612fdd565b848281518110612fb857fe5b6020908102919091010152600101612f5f565b80600803845103845250505092915050565b6000806001600160a01b038416612ff55750816104c9565b6000846001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561303057600080fd5b505afa158015613044573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061306891906139e6565b60ff1690506125de600a82900a610ed886670de0b6b3a76400006119a7565b6000808351905085600f0b87600f0b14156130b45760405162461bcd60e51b81526004016103359061420b565b600086600f0b12156130d85760405162461bcd60e51b8152600401610335906140e2565b80866001600160801b0316106131005760405162461bcd60e51b81526004016103359061413f565b600087600f0b12156131245760405162461bcd60e51b815260040161033590613fb0565b80876001600160801b03161061314c5760405162461bcd60e51b815260040161033590614198565b600061315885856133cb565b905080600085840281805b868110156131d1578c6001600160801b0316811415613184578a91506131b4565b8b6001600160801b031681146131af578981815181106131a057fe5b602002602001015191506131b4565b6131c9565b92810192868202858702816131c557fe5b0494505b600101613163565b50858202858502816131df57fe5b04935060008286816131ed57fe5b0484019050600086815b60ff81101561324d57819250888483600202010388838402018161321757fe5b04915082821115613236576001838303116132315761324d565b613245565b6001828403116132455761324d565b6001016131f7565b509e9d5050505050505050505050505050565b6000806001600160a01b0384166132785750816104c9565b6000846001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156132b357600080fd5b505afa1580156132c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132eb91906139e6565b60ff1690506125de670de0b6b3a7640000610ed886600a85900a6119a7565b60608247101561332c5760405162461bcd60e51b815260040161033590613ea0565b613335856134be565b6133515760405162461bcd60e51b815260040161033590614108565b60006060866001600160a01b0316858760405161336e9190613a33565b60006040518083038185875af1925050503d80600081146133ab576040519150601f19603f3d011682016040523d82523d6000602084013e6133b0565b606091505b50915091506133c08282866134c4565b979650505050505050565b815160009081805b828110156133fe578581815181106133e757fe5b6020026020010151820191508060010190506133d3565b508061340f576000925050506119e1565b600081858402825b60ff8110156134b1578260005b8781101561345757878b828151811061343957fe5b6020026020010151028583028161344c57fe5b049150600101613424565b50839450808760010102846001850302018488830288860201028161347857fe5b049350848411156134985760018585031161349357506134b1565b6134a8565b6001848603116134a857506134b1565b50600101613417565b5090979650505050505050565b3b151590565b606083156134d35750816104c9565b8251156134e35782518084602001fd5b8160405162461bcd60e51b81526004016103359190613b92565b828054828255906000526020600020908101928215613550579160200282015b828111156135505781546001600160a01b0319166001600160a01b0384351617825560209092019160019091019061351d565b5061355c92915061357f565b5090565b6040518061010001604052806008906020820280368337509192915050565b5b8082111561355c5760008155600101613580565b60008083601f8401126135a5578081fd5b50813567ffffffffffffffff8111156135bc578182fd5b602083019150836020808302850101111561254857600080fd5b8051600f81900b811461048a57600080fd5b6000602082840312156135f9578081fd5b81356104c9816142fb565b600060208284031215613615578081fd5b81516104c9816142fb565b600080600060608486031215613634578182fd5b833561363f816142fb565b9250602084013561364f816142fb565b9150604084013561365f816142fb565b809150509250925092565b60008060006060848603121561367e578283fd5b8335613689816142fb565b92506020840135613699816142fb565b9150604084013567ffffffffffffffff8111156136b4578182fd5b8401610140818703121561365f578182fd5b600080600080600080600060e0888a0312156136e0578283fd5b87356136eb816142fb565b965060208801356136fb816142fb565b955060408801359450606088013593506080880135925060a0880135915060c0880135613727816142fb565b8091505092959891949750929550565b600061010080838503121561374a578182fd5b83601f840112613758578182fd5b60405181810181811067ffffffffffffffff8211171561377457fe5b6040528084838101871015613787578485fd5b8493505b60088410156137b457805161379f816142fb565b8252600193909301926020918201910161378b565b509095945050505050565b600080600080604085870312156137d4578384fd5b843567ffffffffffffffff808211156137eb578586fd5b6137f788838901613594565b9096509450602087013591508082111561380f578384fd5b5061381c87828801613594565b95989497509550505050565b600061010080838503121561383b578182fd5b83601f840112613849578182fd5b60405181810181811067ffffffffffffffff8211171561386557fe5b6040528084838101871015613878578485fd5b8493505b60088410156137b45780518252600193909301926020918201910161387c565b6000602082840312156138ad578081fd5b81356104c981614313565b6000602082840312156138c9578081fd5b81516104c981614313565b6000602082840312156138e5578081fd5b8135600381106104c9578182fd5b600080600060608486031215613907578081fd5b613910846135d6565b925061391e602085016135d6565b9150604084015161365f81614313565b60006020828403121561393f578081fd5b81356104c981614321565b60008060006060848603121561395e578081fd5b835161396981614321565b602085015190935061397a81614321565b604085015190925063ffffffff8116811461365f578182fd5b6000602082840312156139a4578081fd5b5035919050565b6000602082840312156139bc578081fd5b5051919050565b600080604083850312156139d5578182fd5b505080516020909101519092909150565b6000602082840312156139f7578081fd5b815160ff811681146104c9578182fd5b60008151808452613a1f8160208601602086016142cf565b601f01601f19169290920160200192915050565b60008251613a458184602087016142cf565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039889168152968816602088015294871660408701526060860193909352608085019190915260a084015260c083015290911660e08201526101000190565b6001600160a01b039485168152928416602084015292166040820152606081019190915260800190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6020810160038310613b6957fe5b91905290565b600f94850b81529290930b60208301526040820152606081019190915260800190565b6000602082526104c96020830184613a07565b60208082526019908201527f4f4d504c3a20464143544f52595f554e535550504f5254454400000000000000604082015260600190565b6020808252601c908201527f4f4d504c3a20494e53554646494349454e545f4c495155494449545900000000604082015260600190565b60208082526028908201527f506f6f6c46756e6374696f6e616c6974793a20494e53554646494349454e545f6040820152671097d05353d5539560c21b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526003908201526245335560e81b604082015260600190565b6020808252818101527f4f4d504c3a20494e53554646494349454e545f4f55545055545f414d4f554e54604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601290820152714f4d504c3a205a45524f5f4144445245535360701b604082015260600190565b60208082526028908201527f506f6f6c46756e6374696f6e616c6974793a20494e53554646494349454e545f6040820152671057d05353d5539560c21b606082015260800190565b6020808252601f908201527f4f4d504c3a20494e53554646494349454e545f494e5055545f414d4f554e5400604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b602080825260169082015275506f6f6c46756e6374696f6e616c6974793a20494f4160501b604082015260600190565b60208082526019908201527f4f4d504c3a20494e53554646494349454e545f414d4f554e5400000000000000604082015260600190565b60208082526012908201527109e9aa0987440929cac82989288bea082a8960731b604082015260600190565b6020808252600c908201526b692062656c6f77207a65726f60a01b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260159082015274141bdbdb119d5b98dd1a5bdb985b1a5d1e4e881193605a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260169082015275506f6f6c46756e6374696f6e616c6974793a2045494160501b604082015260600190565b60208082526019908201527f4f4d504c3a204944454e544943414c5f41444452455353455300000000000000604082015260600190565b6020808252600c908201526b6a2062656c6f77207a65726f60a01b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600f908201526e6a2061626f7665204e5f434f494e5360881b604082015260600190565b602080825260169082015275506f6f6c46756e6374696f6e616c6974793a204f4f5360501b604082015260600190565b6020808252600f908201526e692061626f7665204e5f434f494e5360881b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526009908201526839b0b6b29031b7b4b760b91b604082015260600190565b90815260200190565b918252602082015260400190565b600085825284602083015260018060a01b038416604083015260806060830152612bbf6080830184613a07565b9283526020830191909152604082015260600190565b6000808335601e1984360301811261429e578283fd5b83018035915067ffffffffffffffff8211156142b8578283fd5b602090810192508102360382131561254857600080fd5b60005b838110156142ea5781810151838201526020016142d2565b8381111561241b5750506000910152565b6001600160a01b038116811461431057600080fd5b50565b801515811461431057600080fd5b6001600160701b038116811461431057600080fdfea2646970667358221220eeb77f5ba6bd6c4e24a47a0997fef440ecf087f94ddab8b9d93d8b105008c69a64736f6c63430007040033000000000000000000000000b8baf2195bfc67845049f49af9d4858f7d9c2b30000000000000000000000000000000000000000000000000000000000000000100000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83

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

000000000000000000000000b8baf2195bfc67845049f49af9d4858f7d9c2b30000000000000000000000000000000000000000000000000000000000000000100000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83

-----Decoded View---------------
Arg [0] : _factory (address): 0xb8baf2195bfc67845049f49af9d4858f7d9c2b30
Arg [1] : _type (uint8): 1
Arg [2] : _WETH (address): 0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000b8baf2195bfc67845049f49af9d4858f7d9c2b30
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83


Deployed ByteCode Sourcemap

46137:13730:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46919:10;-1:-1:-1;;;;;46933:4:0;46919:18;;46912:26;;;;46137:13730;;;;;47217:510;;;;;;;;;;-1:-1:-1;47217:510:0;;;;;:::i;:::-;;:::i;47735:142::-;;;;;;;;;;-1:-1:-1;47735:142:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;46347:26;;;;;;;;;;-1:-1:-1;46347:26:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;50024:221::-;;;;;;;;;;-1:-1:-1;50024:221:0;;;;;:::i;:::-;;:::i;27822:148::-;;;;;;;;;;;;;:::i;47107:102::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;27171:87::-;;;;;;;;;;;;;:::i;56276:1795::-;;;;;;;;;;-1:-1:-1;56276:1795:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;46309:29::-;;;;;;;;;;;;;:::i;46270:32::-;;;;;;;;;;;;;:::i;47009:90::-;;;;;;;;;;;;;:::i;47885:2003::-;;;;;;;;;;-1:-1:-1;47885:2003:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;46382:57::-;;;;;;;;;;-1:-1:-1;46382:57:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;28125:244::-;;;;;;;;;;-1:-1:-1;28125:244:0;;;;;:::i;:::-;;:::i;47217:510::-;27402:12;:10;:12::i;:::-;-1:-1:-1;;;;;27391:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27391:23:0;;27383:68;;;;-1:-1:-1;;;27383:68:0;;;;;;;:::i;:::-;;;;;;;;;47365:21;47357:55:::1;;;;-1:-1:-1::0;;;47357:55:0::1;;;;;;;:::i;:::-;47428:9;47423:132;47447:9;:16:::0;47443:20;::::1;47423:132;;;47520:23;47485:18;:32;47504:9;47514:1;47504:12;;;;;;;;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;47504:12:0::1;47485:32:::0;;;::::1;::::0;;;;;;;;:58;;-1:-1:-1;;47485:58:0::1;47504:12:::0;47485:58;::::1;::::0;::::1;;;;;;;;::::0;;-1:-1:-1;47465:3:0::1;;47423:132;;;-1:-1:-1::0;47567:22:0::1;:9;47579:10:::0;;47567:22:::1;:::i;:::-;;47607:9;47602:118;47626:9;:16:::0;47622:20;::::1;47602:118;;;47699:6;;47706:1;47699:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;47664:18;:32;47683:9;47693:1;47683:12;;;;;;;;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;47683:12:0::1;47664:32:::0;;;::::1;::::0;;;;;;;;:44;;-1:-1:-1;;47664:44:0::1;47683:12:::0;47664:44;::::1;::::0;::::1;;;;;;;;::::0;;-1:-1:-1;47644:3:0::1;;47602:118;;;;47217:510:::0;;;;:::o;47735:142::-;47797:4;;-1:-1:-1;;;;;47821:21:0;;;;;;:18;:21;;;;;;;;;;;;:48;;;;;;;;;47814:55;;47735:142;;;;:::o;46347:26::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46347:26:0;;-1:-1:-1;46347:26:0;:::o;50024:221::-;50148:12;50180:57;50210:10;50222:6;50230;50180:29;:57::i;:::-;50173:64;;50024:221;;;;;;:::o;27822:148::-;27402:12;:10;:12::i;:::-;-1:-1:-1;;;;;27391:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27391:23:0;;27383:68;;;;-1:-1:-1;;;27383:68:0;;;;;;;:::i;:::-;27929:1:::1;27913:6:::0;;27892:40:::1;::::0;-1:-1:-1;;;;;27913:6:0;;::::1;::::0;27892:40:::1;::::0;27929:1;;27892:40:::1;27960:1;27943:19:::0;;-1:-1:-1;;;;;;27943:19:0::1;::::0;;27822:148::o;47107:102::-;47185:9;:16;47107:102;:::o;27171:87::-;27217:7;27244:6;-1:-1:-1;;;;;27244:6:0;27171:87;:::o;56276:1795::-;56580:15;56610;56640:17;56702:95;56751:6;56772:14;56702:34;:95::i;:::-;-1:-1:-1;;;;;56685:112:0;;;56825:95;56874:6;56895:14;56825:34;:95::i;:::-;-1:-1:-1;;;;;56808:112:0;;;56944:54;56979:6;56987:10;56944:34;:54::i;:::-;-1:-1:-1;;;;;56931:67:0;;;57022:54;57057:6;57065:10;57022:34;:54::i;:::-;-1:-1:-1;;;;;57009:67:0;;-1:-1:-1;57112:6:0;-1:-1:-1;;;;;57133:26:0;;57129:78;;-1:-1:-1;57191:4:0;57129:78;57240:180;57268:12;57295:6;57316:14;57345;57374:10;57399;57240:13;:180::i;:::-;57448:95;;-1:-1:-1;;;57448:95:0;;57219:201;;-1:-1:-1;57219:201:0;-1:-1:-1;57433:12:0;;-1:-1:-1;;;;;57468:7:0;57448:36;;;;:95;;57499:12;;57526:6;;57448:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57554:148;;-1:-1:-1;;;57554:148:0;;57433:110;;-1:-1:-1;57572:10:0;;57554:50;;:148;;57619:6;;57572:10;;57433:110;;57684:7;;57554:148;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;57713:148:0;;-1:-1:-1;;;57713:148:0;;57731:10;;-1:-1:-1;57713:50:0;;-1:-1:-1;57713:148:0;;57778:6;;57731:10;;57824:4;;57843:7;;57713:148;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;57886:31:0;;-1:-1:-1;;;57886:31:0;;-1:-1:-1;;;;;57886:27:0;;;-1:-1:-1;57886:27:0;;-1:-1:-1;57886:31:0;;57914:2;;57886:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57874:43;;57940:51;57975:6;57983:7;57940:34;:51::i;:::-;-1:-1:-1;;;;;57930:61:0;;;58012:51;58047:6;58055:7;58012:34;:51::i;:::-;-1:-1:-1;;;;;58002:61:0;;;56276:1795;;;;;;;;;;;;;:::o;46309:29::-;;;:::o;46270:32::-;;;:::o;47009:90::-;47087:4;47009:90;:::o;47885:2003::-;48051:17;;;48141:1;48118:13;;;;:8;:13;:::i;:::-;:20;;:24;:106;;;;-1:-1:-1;48200:23:0;48160:18;:36;48179:13;;;;:8;:13;:::i;:::-;48193:1;48179:16;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;48160:36:0;;;;;;;;;;;;-1:-1:-1;48160:36:0;;;;:63;;;;;;;;;;48118:106;48099:125;;48235:18;48256:11;:40;;48289:7;48256:40;;;48270:13;;;;:8;:13;:::i;:::-;48284:1;48270:16;;;;;;;;;;;;;;;;;;;;:::i;:::-;48235:61;;48307:25;48345:18;48366:11;:19;;48384:1;48366:19;;;48380:1;48366:19;48345:40;;;-1:-1:-1;48345:40:0;48421:13;;;;:8;:13;:::i;:::-;:20;;:33;48407:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48407:48:0;-1:-1:-1;48396:59:0;-1:-1:-1;48499:10:0;48474:9;48468:182;48519:13;;;;:8;:13;:::i;:::-;:20;;48515:1;:24;48468:182;;;48610:1;48582:13;;;;:8;:13;:::i;:::-;48596:1;48582:16;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;48582:30:0;;:56;;48622:13;;;;:8;:13;:::i;:::-;48636:1;48622:16;;;;;;;;;;;;;;;;;;;;:::i;:::-;48582:56;;;48615:4;48582:56;48568:8;48577:1;48568:11;;;;;;;;-1:-1:-1;;;;;48568:70:0;;;:11;;;;;;;;;;;:70;48542:3;;;;;48547;48468:182;;;-1:-1:-1;48663:31:0;;-1:-1:-1;48663:31:0;48748:133;48801:13;;;;:8;:13;:::i;:::-;48815:10;48801:25;;;;;;;;;;;;;;;;;;;;:::i;:::-;48845:21;;;;:8;:21;:::i;:::-;-1:-1:-1;;;;;48748:133:0;:34;:133::i;:::-;48896:149;48949:13;;;;:8;:13;:::i;:::-;48986:1;48963:13;;;;:8;:13;:::i;:::-;:20;;:24;48949:39;;;;;;;;;;;;;;;;;;;;:::i;:::-;49007:23;;;;;;;;:::i;48896:149::-;-1:-1:-1;;;;;48662:394:0;;;-1:-1:-1;;;;;48662:394:0;;;49079:20;49101:21;49126:388;49140:373;;;;;;;;49171:4;-1:-1:-1;;;;;49140:373:0;;;;;49190:23;49140:373;;;;49228:25;49140:373;;;;49268:11;:49;;49301:13;;;;:8;:13;:::i;:::-;49315:1;49301:16;;;;;;;;;;;;;;;;;;;;:::i;:::-;49268:49;;;49282:13;;;;:8;:13;:::i;:::-;49296:1;49282:16;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;49140:373:0;;;;;49332:8;49140:373;;;;49355:8;:23;;;;;;;;;;:::i;:::-;49140:373;;;;;;49393:2;-1:-1:-1;;;;;49140:373:0;;;;;49410:10;-1:-1:-1;;;;;49140:373:0;;;;;49435:18;:30;49454:10;-1:-1:-1;;;;;49435:30:0;-1:-1:-1;;;;;49435:30:0;;;;;;;;;;;;;;;;;;;;;;49140:373;;;;;;;;;;;;49480:8;:22;;;;;;;;;;:::i;:::-;49140:373;;;;49126:13;:388::i;:::-;49078:436;;-1:-1:-1;49078:436:0;-1:-1:-1;49608:112:0;49657:13;;;;:8;:13;:::i;:::-;49671:10;49657:25;;;;;;;;;;;;;;;;;;;;:::i;:::-;49697:12;49608:34;:112::i;:::-;-1:-1:-1;;;;;49596:124:0;;-1:-1:-1;49742:127:0;49791:13;;;;:8;:13;:::i;:::-;49828:1;49805:8;:13;;;;;;;;:::i;:::-;:20;;:24;49791:39;;;;;;;;;;;;;;;;;;;;:::i;:::-;49845:13;49742:34;:127::i;:::-;-1:-1:-1;;;;;49731:138:0;;;47885:2003;;;;;;;;;;;;;;:::o;46382:57::-;;;;;;;;;;;;;;;:::o;28125:244::-;27402:12;:10;:12::i;:::-;-1:-1:-1;;;;;27391:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27391:23:0;;27383:68;;;;-1:-1:-1;;;27383:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;28214:22:0;::::1;28206:73;;;;-1:-1:-1::0;;;28206:73:0::1;;;;;;;:::i;:::-;28316:6;::::0;;28295:38:::1;::::0;-1:-1:-1;;;;;28295:38:0;;::::1;::::0;28316:6;::::1;::::0;28295:38:::1;::::0;::::1;28344:6;:17:::0;;-1:-1:-1;;;;;;28344:17:0::1;-1:-1:-1::0;;;;;28344:17:0;;;::::1;::::0;;;::::1;::::0;;28125:244::o;25748:106::-;25836:10;25748:106;:::o;34973:181::-;35094:52;;-1:-1:-1;;;35094:52:0;;35062:12;;-1:-1:-1;;;;;35094:36:0;;;;;:52;;35131:6;;35139;;35094:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;24040:507::-;24124:17;;-1:-1:-1;;;;;24183:26:0;;24180:259;;24235:30;24259:5;24235:19;:6;24246:7;24235:10;:19::i;:::-;:23;;:30::i;:::-;24225:40;;24180:259;;;24313:13;24342:12;-1:-1:-1;;;;;24329:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24313:53;;;-1:-1:-1;24392:35:0;24421:5;24392:24;:6;24403:2;:12;;;24392:10;:24::i;:35::-;24383:44;;24180:259;;24476:16;24459:34;;24451:50;;;;-1:-1:-1;;;24451:50:0;;;;;;;:::i;58079:1785::-;58416:52;;-1:-1:-1;;;58416:52:0;;58301:15;;;;;;58436:7;-1:-1:-1;;;;;58416:36:0;;;;:52;;58453:6;;58461;;58416:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;58416:66:0;;58398:178;;;58509:55;;-1:-1:-1;;;58509:55:0;;-1:-1:-1;;;;;58529:7:0;58509:39;;;;:55;;58549:6;;58557;;58509:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;58398:178;58587:16;58605;58625:108;58673:7;58695:6;58716;58625:33;:108::i;:::-;58586:147;;;;58748:8;58760:1;58748:13;:30;;;;-1:-1:-1;58765:13:0;;58748:30;58744:1113;;;58817:14;;-1:-1:-1;58833:14:0;;-1:-1:-1;58744:1113:0;;;58881:22;58906:132;58955:14;58988:8;59015;58906:30;:132::i;:::-;58881:157;;59075:14;59057;:32;59053:793;;59158:10;59140:14;:28;;59110:142;;;;-1:-1:-1;;;59110:142:0;;;;;;;:::i;:::-;59293:14;;-1:-1:-1;59309:14:0;-1:-1:-1;59309:14:0;59053:793;;;59365:22;59390:148;59443:14;59480:8;59511;59390:30;:148::i;:::-;59365:173;;59582:14;59564;:32;;59557:40;;;;59664:10;59646:14;:28;;59616:142;;;;-1:-1:-1;;;59616:142:0;;;;;;;:::i;:::-;59799:14;-1:-1:-1;59815:14:0;;-1:-1:-1;59053:793:0;58744:1113;;58079:1785;;;;;;;;;;;:::o;24651:495::-;24735:20;;-1:-1:-1;;;;;24797:26:0;;24794:243;;24848:30;24870:7;24848:17;:6;24859:5;24848:10;:17::i;24794:243::-;24911:13;24940:12;-1:-1:-1;;;;;24927:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24911:53;;;-1:-1:-1;24990:35:0;25012:2;:12;;;24990:17;:6;25001:5;24990:10;:17::i;50253:3552::-;50328:16;50346:17;50376:15;50437:4;-1:-1:-1;;;;;50394:47:0;:8;:13;;;50431:1;50408:8;:13;;;:20;:24;50394:39;;;;;;;;;;;;;;-1:-1:-1;;;;;50394:47:0;;50376:65;;50452:14;50469:10;:58;;;-1:-1:-1;50510:17:0;50483:8;:23;;;:44;;;;;;;;;50469:58;:88;;50546:8;:11;;;50469:88;;;50538:4;50469:88;50452:105;;50568:24;50608:8;:22;;;50603:903;;50651:8;:18;;;50647:744;;;50700:218;50758:8;:19;;;50800:8;:23;;;50846:8;:17;;;50886:8;:13;;;50700:35;:218::i;:::-;50690:228;;50976:8;:18;;;50945:7;50970:1;50953:7;:14;:18;50945:27;;;;;;;;;;;;;;:49;;50937:84;;;;-1:-1:-1;;;50937:84:0;;;;;;;:::i;:::-;50647:744;;;51072:218;51129:8;:19;;;51171:8;:23;;;51217:8;:18;;;51258:8;:13;;;51072:34;:218::i;:::-;51062:228;;51331:8;:17;;;51317:7;51325:1;51317:10;;;;;;;;;;;;;;:31;;51309:66;;;;-1:-1:-1;;;51309:66:0;;;;;;;:::i;:::-;50603:903;;;51433:16;;;51447:1;51433:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51433:16:0;51423:26;;51477:8;:17;;;51464:7;51472:1;51464:10;;;;;;;;;;;;;:30;;;;;50603:903;51527:7;51535:1;51527:10;;;;;;;;;;;;;;51516:21;;51565:18;51598:29;51657:17;51630:44;;;;;;;;:8;:23;;;:44;;;;;;;;;:166;;51710:86;51740:8;:19;;;51761:8;:13;;;51775:1;51761:16;;;;;;;;;;;;;;51779:8;:13;;;51793:1;51779:16;;;;;;;;;;;;;;51710:29;:86::i;:::-;51630:166;;;51685:4;51630:166;51598:198;;51817:8;:22;;;51813:98;;;51861:8;:13;;;51875:1;51861:16;;;;;;;;;;;;;;-1:-1:-1;;;;;51854:34:0;;51889:21;51854:57;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51841:70;;51813:98;51997:20;;;;52036:13;;51928:203;;-1:-1:-1;;;51928:203:0;;51946:10;;51928:50;;:203;;52068:21;;52108:8;;51928:203;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52150:8;:22;;;52146:111;;;52247:10;52194:8;:13;;;52208:1;52194:16;;;;;;;;;;;;;;-1:-1:-1;;;;;52187:34:0;;52222:21;52187:57;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:70;52174:7;52182:1;52174:10;;;;;;;;;;;;;:83;;;;;52146:111;-1:-1:-1;;52324:13:0;;;;52338:20;;52296:18;;52324:13;-1:-1:-1;;52338:24:0;;;52324:39;;;;;;;;;;;;-1:-1:-1;;;;;52317:57:0;;52375:6;52317:65;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52296:86;-1:-1:-1;52428:17:0;52401:8;:23;;;:44;;;;;;;;;52397:343;;;52466:79;52477:8;:19;;;52498:7;52507:8;:13;;;52522:8;:22;;;52466:10;:79::i;:::-;52397:343;;;52598:23;52571:8;:23;;;:50;;;;;;;;;52567:173;;;52642:82;52648:8;:19;;;52669:7;52678:8;:13;;;52693:6;52701:8;:22;;;52642:5;:82::i;:::-;52773:13;;;;52787:20;;52834:10;;52773:13;-1:-1:-1;;52787:24:0;;;52773:39;;;;;;;;;;;;-1:-1:-1;;;;;52766:57:0;;52824:6;52766:65;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:78;52754:90;;50253:3552;52890:8;:17;;;52911:1;52890:22;:49;;;-1:-1:-1;52916:18:0;;;;:23;52890:49;:142;;;;53014:8;:18;;;52995:9;53007:4;52995:16;:37;;;;;;52974:8;:17;;;52956:8;52967:4;52956:15;:35;;;;;;:76;;52890:142;52868:214;;;;-1:-1:-1;;;52868:214:0;;;;;;;:::i;:::-;53099:10;53095:372;;;53126:162;53182:4;53213:1;53234:8;:11;;;53264:9;53126:37;:162::i;:::-;53095:372;;;53337:17;53310:8;:23;;;:44;;;;;;;;;53306:161;;;53371:84;53432:8;:11;;;53445:9;53378:8;:13;;;53415:1;53392:8;:13;;;:20;:24;53378:39;;;;;;;;;;;;;;-1:-1:-1;;;;;53371:60:0;;;:84;;;;;:::i;:::-;53484:313;53512:9;53536:33;53552:8;:13;;;53566:1;53552:16;;;;;;;;;;;;;;53536:15;:33::i;:::-;53600:13;;;;53614:20;;53584:56;;53600:13;-1:-1:-1;;53614:24:0;;;53600:39;;;;;53584:56;53655:8;:17;;;53687:8;53710;:18;;;53743:9;53767:8;:19;;;53484:313;;;;;;;;;;;;;:::i;:::-;;;;;;;;50253:3552;;;;;;:::o;6785:220::-;6843:7;6867:6;6863:20;;-1:-1:-1;6882:1:0;6875:8;;6863:20;6906:5;;;6910:1;6906;:5;:1;6930:5;;;;;:10;6922:56;;;;-1:-1:-1;;;6922:56:0;;;;;;;:::i;6785:220::-;;;;;:::o;7483:153::-;7541:7;7573:1;7569;:5;7561:44;;;;-1:-1:-1;;;7561:44:0;;;;;;;:::i;:::-;7627:1;7623;:5;;;;;;;7483:153;-1:-1:-1;;;7483:153:0:o;35416:393::-;35509:13;35524;35551:14;35570:26;35581:6;35589;35570:10;:26::i;:::-;35550:46;;;35608:13;35623;35658:32;35666:7;35675:6;35683;35658:7;:32::i;:::-;-1:-1:-1;;;;;35641:62:0;;:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;35607:98;-1:-1:-1;;;;;35607:98:0;;;-1:-1:-1;;;;;35607:98:0;;;35749:6;-1:-1:-1;;;;;35739:16:0;:6;-1:-1:-1;;;;;35739:16:0;;:62;;35782:8;35792;35739:62;;;35759:8;35769;35739:62;35716:85;;;;-1:-1:-1;35416:393:0;-1:-1:-1;;;;;;;35416:393:0:o;45564:300::-;45649:12;45692:1;45682:7;:11;45674:49;;;;-1:-1:-1;;;45674:49:0;;;;;;;:::i;:::-;45753:1;45742:8;:12;:28;;;;;45769:1;45758:8;:12;45742:28;45734:69;;;;-1:-1:-1;;;45734:69:0;;;;;;;:::i;:::-;45848:8;45824:21;:7;45836:8;45824:11;:21::i;:::-;:32;;;;;;;45564:300;-1:-1:-1;;;;45564:300:0:o;42079:525::-;42267:21;42324:1;42309:4;:11;:16;;42301:47;;;;-1:-1:-1;;;42301:47:0;;;;;;;:::i;:::-;42380:4;:11;42369:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42369:23:0;;42359:33;;42416:8;42403:7;42411:1;42403:10;;;;;;;;;;;;;;;;;:21;42451:1;42437:160;42458:4;:11;42454:1;:15;42437:160;;;42504:81;42526:7;42535:11;42548:4;42557:1;42553;:5;42548:11;;;;;;;;;;;;;;42561:4;42566:1;42561:7;;;;;;;;;;;;;;42570;42582:1;42578;:5;42570:14;;;;;;;;;;;;;;42504:21;:81::i;:::-;42491:7;42499:1;42491:10;;;;;;;;;;;;;;;;;:94;42471:3;;42437:160;;;;42079:525;;;;;;:::o;42685:544::-;42873:21;42930:1;42915:4;:11;:16;;42907:47;;;;-1:-1:-1;;;42907:47:0;;;;;;;:::i;:::-;42986:4;:11;42975:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42975:23:0;;42965:33;;43039:9;43009:7;43034:1;43017:7;:14;:18;43009:27;;;;;;;;;;;;;;;;;:39;43073:11;;-1:-1:-1;;43073:15:0;43059:163;43090:5;;43059:163;;43134:76;43155:7;43164:11;43177:4;43186:1;43182;:5;43177:11;;;;;;;;;;;;;;43190:4;43195:1;43190:7;;;;;;;;;;;;;;43199;43207:1;43199:10;;;;;;;;;;;;;;43134:20;:76::i;:::-;43117:7;43129:1;43125;:5;43117:14;;;;;;;;;;;;;;;;;:93;-1:-1:-1;;43097:3:0;43059:163;;55195:1073;55372:9;55367:894;55401:1;55387:4;:11;:15;55383:1;:19;55367:894;;;55425:13;55440:14;55459:4;55464:1;55459:7;;;;;;;;;;;;;;55468:4;55473:1;55477;55473:5;55468:11;;;;;;;;;;;;;;55424:56;;;;55495:12;55510:61;55545:10;55557:5;55564:6;55510:34;:61::i;:::-;55495:76;;55587:15;55604:16;55640:10;-1:-1:-1;;;;;55625:43:0;;55669:4;55675:5;55682:6;55625:64;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55586:103;;;;;55706:18;55739:17;55759:13;:21;;55779:1;55759:21;;;55775:1;55759:21;55739:41;;55799:13;55795:76;;;55834:4;55839:1;55843;55839:5;55834:11;;;;;;;;;;;;;;-1:-1:-1;;;;;55827:29:0;;55865:4;55827:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55814:57;;55795:76;55939:7;55947:12;55939:21;;;;;;;;;;;;;;55899:5;-1:-1:-1;;;;;55892:23:0;;55924:4;55931;55892:44;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:68;55888:169;;;55981:60;-1:-1:-1;;;;;55981:35:0;;56017:4;-1:-1:-1;;55981:35:0;:60::i;:::-;56082:4;-1:-1:-1;;;;;56071:25:0;;56097:8;56107:9;56118:7;56126:12;56118:21;;;;;;;;;;;;;;56141:1;56071:72;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56164:13;56160:89;;;56239:10;56199:4;56204:1;56208;56204:5;56199:11;;;;;;;;;;;;;;-1:-1:-1;;;;;56192:29:0;;56230:4;56192:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:57;56179:7;56187:1;56179:10;;;;;;;;;;;;;:70;;;;;56160:89;55367:894;;;;;;;55404:3;;;;;55367:894;;53813:1374;54007:9;54002:1178;54036:1;54022:4;:11;:15;54018:1;:19;54002:1178;;;54060:13;54075:14;54094:4;54099:1;54094:7;;;;;;;;;;;;;;54103:4;54108:1;54112;54108:5;54103:11;;;;;;;;;;;;;;54059:56;;;;54130:21;54171:56;54201:10;54213:5;54220:6;54171:29;:56::i;:::-;54130:98;;54244:14;54264:47;54297:5;54304:6;54264:32;:47::i;:::-;54243:68;;;54326:17;54364:13;54360:496;;;54399:13;54414;54432:4;-1:-1:-1;;;;;54432:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54398:52;-1:-1:-1;;;;;54398:52:0;;;-1:-1:-1;;;;;54398:52:0;;;54470:17;54489:18;54520:6;-1:-1:-1;;;;;54511:15:0;:5;-1:-1:-1;;;;;54511:15:0;;:61;;54553:8;54563;54511:61;;;54530:8;54540;54511:61;54469:103;;;;54591:16;54610:56;54653:12;54617:5;-1:-1:-1;;;;;54610:23:0;;54642:4;54610:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;:56::i;:::-;54591:75;;54697:76;54735:8;54745:12;54759:13;54697:37;:76::i;:::-;54685:88;;54360:496;;;;;;;;54826:7;54834:1;54838;54834:5;54826:14;;;;;;;;;;;;;;54814:26;;54360:496;54873:18;54893;54924:6;-1:-1:-1;;;;;54915:15:0;:5;-1:-1:-1;;;;;54915:15:0;;:67;;54960:9;54979:1;54915:67;;;54942:1;54946:9;54915:67;54872:110;;;;54997:10;55028:1;55014:4;:11;:15;55010:1;:19;:90;;55097:3;55010:90;;;55032:62;55062:10;55074:6;55082:4;55087:1;55091;55087:5;55082:11;;;;;;;55032:62;55155:12;;;55165:1;55155:12;;;;;;;;;-1:-1:-1;;;55117:51:0;;;54997:103;;-1:-1:-1;;;;;;55117:9:0;;;;;:51;;55127:10;;55139;;54997:103;;55117:51;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54002:1178;;;;;;;;54039:3;;;;;54002:1178;;;;53813:1374;;;;;:::o;22933:391::-;23046:4;-1:-1:-1;;;;;23038:19:0;;;23034:283;;-1:-1:-1;;;;;23078:19:0;;23074:232;;23118:27;;-1:-1:-1;;;23118:27:0;;-1:-1:-1;;;;;23118:20:0;;;;;:27;;23139:5;;23118:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23164:37;23190:2;23195:5;23164:17;:37::i;:::-;23074:232;;;23242:48;23272:5;23280:2;23284:5;23242:22;:48::i;:::-;22933:391;;;;:::o;19182:177::-;19265:86;19285:5;19315:23;;;19340:2;19344:5;19292:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;19292:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;19292:58:0;-1:-1:-1;;;;;;19292:58:0;;;;;;;;;;19265:19;:86::i;:::-;19182:177;;;:::o;49896:120::-;49955:7;49987:4;-1:-1:-1;;;;;49982:9:0;:1;-1:-1:-1;;;;;49982:9:0;;:26;;50007:1;49982:26;;;50002:1;49975:33;49896:120;-1:-1:-1;;49896:120:0:o;34556:325::-;34631:14;34647;34692:6;-1:-1:-1;;;;;34682:16:0;:6;-1:-1:-1;;;;;34682:16:0;;;34674:54;;;;-1:-1:-1;;;34674:54:0;;;;;;;:::i;:::-;34767:6;-1:-1:-1;;;;;34758:15:0;:6;-1:-1:-1;;;;;34758:15:0;;:53;;34796:6;34804;34758:53;;;34777:6;34785;34758:53;34739:72;;-1:-1:-1;34739:72:0;-1:-1:-1;;;;;;34830:20:0;;34822:51;;;;-1:-1:-1;;;34822:51:0;;;;;;;:::i;:::-;34556:325;;;;;:::o;40478:757::-;40688:17;40737:42;40722:11;:57;;;;;;;;;40718:510;;;40797:14;40813:15;40832:30;40844:7;40853:4;40859:2;40832:11;:30::i;:::-;40796:66;;;;40889:48;40905:8;40915:9;40926:10;40889:15;:48::i;:::-;40877:60;;40718:510;;;;;40974:36;40959:11;:51;;;;;;;;;40955:273;;;41039:46;41057:7;41066:4;41072:2;41076:8;41039:17;:46::i;:::-;41027:58;;40955:273;;;41122:42;41107:11;:57;;;;;;;;;41103:125;;;41181:35;;-1:-1:-1;;;41181:35:0;;;;;;;:::i;41103:125::-;40478:757;;;;;;;:::o;41243:754::-;41453:16;41501:42;41486:11;:57;;;;;;;;;41482:508;;;41561:14;41577:15;41596:30;41608:7;41617:4;41623:2;41596:11;:30::i;:::-;41560:66;;;;41652:48;41667:9;41678;41689:10;41652:14;:48::i;41482:508::-;41737:36;41722:11;:51;;;;;;;;;41718:272;;;41801:46;41818:7;41827:4;41833:2;41837:9;41801:16;:46::i;35162:196::-;35288:62;;-1:-1:-1;;;35288:62:0;;35256:12;;-1:-1:-1;;;;;35288:43:0;;;;;:62;;35332:6;;35340;;35256:12;;35288:62;;;:::i;20471:286::-;20568:20;20591:50;20635:5;20591;-1:-1:-1;;;;;20591:15:0;;20615:4;20622:7;20591:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:43;;:50::i;:::-;20568:73;;20652:97;20672:5;20702:22;;;20726:7;20735:12;20679:69;;;;;;;;;:::i;6368:158::-;6426:7;6459:1;6454;:6;;6446:49;;;;-1:-1:-1;;;6446:49:0;;;;;;;:::i;:::-;-1:-1:-1;6513:5:0;;;6368:158::o;44383:496::-;44479:14;44525:1;44514:8;:12;44506:56;;;;-1:-1:-1;;;44506:56:0;;;;;;;:::i;:::-;44593:1;44581:9;:13;:31;;;;;44611:1;44598:10;:14;44581:31;44573:72;;;;-1:-1:-1;;;44573:72:0;;;;;;;:::i;:::-;44656:20;44679:17;:8;44692:3;44679:12;:17::i;:::-;44656:40;-1:-1:-1;44707:14:0;44724:31;44656:40;44744:10;44724:19;:31::i;:::-;44707:48;-1:-1:-1;44766:16:0;44785:40;44809:15;44785:19;:9;44799:4;44785:13;:19::i;:40::-;44766:59;;44860:11;44848:9;:23;;;;;;;44383:496;-1:-1:-1;;;;;;;44383:496:0:o;12663:397::-;12778:6;12753:21;:31;;12745:73;;;;-1:-1:-1;;;12745:73:0;;;;;;;:::i;:::-;12910:12;12928:9;-1:-1:-1;;;;;12928:14:0;12951:6;12928:35;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12909:54;;;12982:7;12974:78;;;;-1:-1:-1;;;12974:78:0;;;;;;;:::i;21487:761::-;21911:23;21937:69;21965:4;21937:69;;;;;;;;;;;;;;;;;21945:5;-1:-1:-1;;;;;21937:27:0;;;:69;;;;;:::i;:::-;22021:17;;21911:95;;-1:-1:-1;22021:21:0;22017:224;;22163:10;22152:30;;;;;;;;;;;;:::i;:::-;22144:85;;;;-1:-1:-1;;;22144:85:0;;;;;;;:::i;38906:792::-;39014:7;39034:12;39049:31;39062:7;39071:4;39077:2;39049:12;:31::i;:::-;39034:46;;39092:8;39102;39130:7;-1:-1:-1;;;;;39115:40:0;;39156:4;39162;39168:2;39115:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39091:80;;;;;39182:19;39204:21;39211:7;39220:4;39204:6;:21::i;:::-;39182:43;;39238:9;39273;39300:7;-1:-1:-1;;;;;39285:29:0;;39315:4;39285:35;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39273:47;;39335:9;39361:36;39384:4;39390:6;39361:22;:36::i;:::-;39347:2;39355:1;39350:7;;39347:11;;;;;;;;;;;;;;:50;39335:62;;39416:21;39422:1;39425;39428;39431:2;39435:1;39416:5;:21::i;:::-;39412:25;;38906:792;;39462:11;39493:7;-1:-1:-1;;;;;39478:32:0;;39511:4;39478:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39461:55;;;39527:10;39558:1;39554;39540:2;39548:1;39543:7;;39540:11;;;;;;;;;;;;;;:15;:19;39527:32;;39570:14;32536:6;39592:3;39587:2;:8;:26;;;;;;39570:43;;39629:39;39652:2;39661:6;39656:2;:11;39629:22;:39::i;:::-;39624:44;38906:792;-1:-1:-1;;;;;;;;;;;;;38906:792:0:o;45000:451::-;45096:13;45142:1;45130:9;:13;45122:58;;;;-1:-1:-1;;;45122:58:0;;;;;;;:::i;:::-;45211:1;45199:9;:13;:31;;;;;45229:1;45216:10;:14;45199:31;45191:72;;;;-1:-1:-1;;;45191:72:0;;;;;;;:::i;:::-;45274:14;45291:34;45320:4;45291:24;:9;45305;45291:13;:24::i;:::-;:28;;:34::i;:::-;45274:51;-1:-1:-1;45336:16:0;45355:34;45385:3;45355:25;:10;45370:9;45355:14;:25::i;:34::-;45336:53;;45411:32;45441:1;45424:11;45412:9;:23;;;;;;;45411:29;:32::i;:::-;45400:43;45000:451;-1:-1:-1;;;;;;45000:451:0:o;39706:764::-;39813:7;39833:12;39848:31;39861:7;39870:4;39876:2;39848:12;:31::i;:::-;39833:46;;39891:8;39901;39929:7;-1:-1:-1;;;;;39914:40:0;;39955:4;39961;39967:2;39914:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39890:80;;;;;39981:19;40003:21;40010:7;40019:4;40003:6;:21::i;:::-;39981:43;;40037:9;40073:11;40104:7;-1:-1:-1;;;;;40089:32:0;;40122:4;40089:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40072:55;;;40142:9;40169:7;-1:-1:-1;;;;;40154:29:0;;40184:4;40154:35;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40142:47;;40204:9;40313:3;32536:6;40295:21;32536:6;40233:40;40256:2;40261:6;40270:1;40261:10;40233:22;:40::i;:::-;:58;:84;;;;;;40216:2;40227:1;40219:10;;40216:14;;;;;;;;;;;;;;:101;40204:113;;40336:21;40342:1;40345;40348;40351:2;40355:1;40336:5;:21::i;:::-;40332:25;;39706:764;;;40381:10;40394:48;40417:4;40427:2;40438:1;40430:10;;40427:14;;;;;;;;;;;;;;40423:1;:18;40394:22;:48::i;:::-;40381:61;39706:764;-1:-1:-1;;;;;;;;;;;39706:764:0:o;5906:179::-;5964:7;5996:5;;;6020:6;;;;6012:46;;;;-1:-1:-1;;;6012:46:0;;;;;;;:::i;14224:195::-;14327:12;14359:52;14381:6;14389:4;14395:1;14398:12;14359:21;:52::i;38278:620::-;38384:24;;;32612:1;38384:24;;;;;;;;;38347:19;;38384:24;;;;;;;;;;-1:-1:-1;38384:24:0;38379:29;;38421:31;;:::i;:::-;38455:39;;-1:-1:-1;;;38455:39:0;;-1:-1:-1;;;;;38455:33:0;;;;;:39;;38489:4;;38455:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;38421:73;;38505:34;;:::i;:::-;38542:42;;-1:-1:-1;;;38542:42:0;;-1:-1:-1;;;;;38542:36:0;;;;;:42;;38579:4;;38542:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;38505:79;;38597:6;38618:172;38629:15;38625:1;:19;38618:172;;;38670:8;38679:1;38670:11;;;;;;;;;;;38666:44;;38705:5;;38666:44;38733:45;38756:5;38762:1;38756:8;;;;;;;;;;;38766;38775:1;38766:11;;;;;;;;;;;38733:22;:45::i;:::-;38725:2;38728:1;38725:5;;;;;;;;;;;;;;;;;:53;38646:3;;38618:172;;;38852:1;38841:9;38837:17;38832:2;38826:9;38822:33;38818:2;38811:45;38809:49;;;;;;;:::o;43854:407::-;43943:20;;-1:-1:-1;;;;;44005:26:0;;44002:220;;-1:-1:-1;44056:6:0;44002:220;;;44095:13;44124:12;-1:-1:-1;;;;;44111:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44095:53;;;-1:-1:-1;44174:36:0;44197:2;:12;;;44174:18;:6;44185;44174:10;:18::i;36829:1441::-;36932:7;37025:12;37040:3;:10;37025:25;;37074:1;37069:6;;:1;:6;;;;37061:28;;;;-1:-1:-1;;;37061:28:0;;;;;;;:::i;:::-;37113:1;37108;:6;;;;37100:31;;;;-1:-1:-1;;;37100:31:0;;;;;;;:::i;:::-;37163:7;37158:1;-1:-1:-1;;;;;37150:20:0;;37142:48;;;;-1:-1:-1;;;37142:48:0;;;;;;;:::i;:::-;37216:1;37211;:6;;;;37203:31;;;;-1:-1:-1;;;37203:31:0;;;;;;;:::i;:::-;37266:7;37261:1;-1:-1:-1;;;;;37253:20:0;;37245:48;;;;-1:-1:-1;;;37245:48:0;;;;;;;:::i;:::-;37306:9;37318:15;37324:3;37329;37318:5;:15::i;:::-;37306:27;-1:-1:-1;37306:27:0;37344:9;37407:13;;;37344:9;;37458:283;37476:7;37471:2;:12;37458:283;;;37523:1;-1:-1:-1;;;;;37509:16:0;:2;:16;37506:159;;;37549:1;37544:6;;37506:159;;;37587:1;-1:-1:-1;;;;;37573:16:0;:2;:16;37570:95;;37613:3;37617:2;37613:7;;;;;;;;;;;;;;37608:12;;37570:95;;;37657:8;;37570:95;37680:8;;;;37716:12;;;37707:5;;;37716:12;37707:22;;;;;37703:26;;37458:283;37485:4;;37458:283;;;;37770:7;37764:3;:13;37759:1;37755;:5;:23;;;;;;37751:27;;37789:9;37810:3;37806:1;:7;;;;;;37801:12;;;-1:-1:-1;37832:14:0;37873:1;37832:14;37885:359;37903:3;37898:2;:8;37885:359;;;37938:1;37929:10;;37983:1;37979;37975;37971;:5;:9;:13;37965:1;37961;37959;:3;:7;37958:27;;;;;;37954:31;;38056:6;38052:1;:10;38049:184;;;38101:1;38091:6;38087:1;:10;:15;38083:47;;38125:5;;38083:47;38049:184;;;38188:1;38183;38174:6;:10;:15;38171:46;;38212:5;;38171:46;37908:4;;37885:359;;;-1:-1:-1;38261:1:0;36829:1441;-1:-1:-1;;;;;;;;;;;;;;36829:1441:0:o;43331:418::-;43420:17;;-1:-1:-1;;;;;43479:26:0;;43476:235;;-1:-1:-1;43530:6:0;43476:235;;;43584:13;43613:12;-1:-1:-1;;;;;43600:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43584:53;;;-1:-1:-1;43663:36:0;43692:6;43663:24;:6;43674:2;:12;;;43663:10;:24::i;15276:530::-;15403:12;15461:5;15436:21;:30;;15428:81;;;;-1:-1:-1;;;15428:81:0;;;;;;;:::i;:::-;15528:18;15539:6;15528:10;:18::i;:::-;15520:60;;;;-1:-1:-1;;;15520:60:0;;;;;;;:::i;:::-;15654:12;15668:23;15695:6;-1:-1:-1;;;;;15695:11:0;15715:5;15723:4;15695:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15653:75;;;;15746:52;15764:7;15773:10;15785:12;15746:17;:52::i;:::-;15739:59;15276:530;-1:-1:-1;;;;;;;15276:530:0:o;35817:1004::-;35923:9;;35888:7;;;;35967:53;35983:7;35979:1;:11;35967:53;;;36015:2;36018:1;36015:5;;;;;;;;;;;;;;36010:10;;;;35992:3;;;;;35967:53;;;-1:-1:-1;36034:6:0;36031:32;;36062:1;36055:8;;;;;;36031:32;36076:13;36116:1;36142:13;;;36076;36166:629;36184:3;36179:2;:8;36166:629;;;36224:1;36210:11;36240:185;36256:7;36252:1;:11;36240:185;;;36314:7;36306:2;36309:1;36306:5;;;;;;;;;;;;;;:15;36301:1;36295:3;:7;:27;;;;;;;-1:-1:-1;36265:3:0;;36240:185;;;;36447:1;36439:9;;36532:3;36517:7;36527:1;36517:11;36516:19;36512:1;36507;36501:3;:7;36500:13;:35;36495:1;36484:7;36478:3;:13;36474:1;36468:3;:7;:23;36467:29;:69;;;;;;36463:73;;36608:5;36604:1;:9;36600:184;;;36651:1;36642:5;36638:1;:9;:14;36634:46;;36675:5;;;36634:46;36600:184;;;36739:1;36734;36726:5;:9;:14;36722:46;;36763:5;;;36722:46;-1:-1:-1;36189:4:0;;36166:629;;;-1:-1:-1;36812:1:0;;35817:1004;-1:-1:-1;;;;;;;35817:1004:0:o;11306:422::-;11673:20;11712:8;;;11306:422::o;17816:742::-;17931:12;17960:7;17956:595;;;-1:-1:-1;17991:10:0;17984:17;;17956:595;18105:17;;:21;18101:439;;18368:10;18362:17;18429:15;18416:10;18412:2;18408:19;18401:44;18316:148;18511:12;18504:20;;-1:-1:-1;;;18504:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;14:400:1;;;147:3;140:4;132:6;128:17;124:27;114:2;;170:6;162;155:22;114:2;-1:-1:-1;198:20:1;;241:18;230:30;;227:2;;;280:8;270;263:26;227:2;324:4;316:6;312:17;300:29;;387:3;380:4;372;364:6;360:17;352:6;348:30;344:41;341:50;338:2;;;404:1;401;394:12;419:168;499:13;;552:2;541:21;;;531:32;;521:2;;577:1;574;567:12;592:259;;704:2;692:9;683:7;679:23;675:32;672:2;;;725:6;717;710:22;672:2;769:9;756:23;788:33;815:5;788:33;:::i;856:263::-;;979:2;967:9;958:7;954:23;950:32;947:2;;;1000:6;992;985:22;947:2;1037:9;1031:16;1056:33;1083:5;1056:33;:::i;1124:545::-;;;;1270:2;1258:9;1249:7;1245:23;1241:32;1238:2;;;1291:6;1283;1276:22;1238:2;1335:9;1322:23;1354:33;1381:5;1354:33;:::i;:::-;1406:5;-1:-1:-1;1463:2:1;1448:18;;1435:32;1476:35;1435:32;1476:35;:::i;:::-;1530:7;-1:-1:-1;1589:2:1;1574:18;;1561:32;1602:35;1561:32;1602:35;:::i;:::-;1656:7;1646:17;;;1228:441;;;;;:::o;1674:698::-;;;;1848:2;1836:9;1827:7;1823:23;1819:32;1816:2;;;1869:6;1861;1854:22;1816:2;1913:9;1900:23;1932:33;1959:5;1932:33;:::i;:::-;1984:5;-1:-1:-1;2041:2:1;2026:18;;2013:32;2054:35;2013:32;2054:35;:::i;:::-;2108:7;-1:-1:-1;2166:2:1;2151:18;;2138:32;2193:18;2182:30;;2179:2;;;2230:6;2222;2215:22;2179:2;2258:22;;2314:3;2296:16;;;2292:26;2289:2;;;2336:6;2328;2321:22;2377:821;;;;;;;;2591:3;2579:9;2570:7;2566:23;2562:33;2559:2;;;2613:6;2605;2598:22;2559:2;2657:9;2644:23;2676:33;2703:5;2676:33;:::i;:::-;2728:5;-1:-1:-1;2785:2:1;2770:18;;2757:32;2798:35;2757:32;2798:35;:::i;:::-;2852:7;-1:-1:-1;2906:2:1;2891:18;;2878:32;;-1:-1:-1;2957:2:1;2942:18;;2929:32;;-1:-1:-1;3008:3:1;2993:19;;2980:33;;-1:-1:-1;3060:3:1;3045:19;;3032:33;;-1:-1:-1;3117:3:1;3102:19;;3089:33;3131:35;3089:33;3131:35;:::i;:::-;3185:7;3175:17;;;2549:649;;;;;;;;;;:::o;3203:923::-;;3327:3;3371:2;3359:9;3350:7;3346:23;3342:32;3339:2;;;3392:6;3384;3377:22;3339:2;3446:7;3439:4;3428:9;3424:20;3420:34;3410:2;;3473:6;3465;3458:22;3410:2;3511;3505:9;3553:2;3545:6;3541:15;3622:6;3610:10;3607:22;3586:18;3574:10;3571:34;3568:62;3565:2;;;3633:9;3565:2;3660;3653:22;3695:6;3721:9;3745:18;;;3742:31;-1:-1:-1;3739:2:1;;;3791:6;3783;3776:22;3739:2;3818:6;3809:15;;3833:262;3847:4;3844:1;3841:11;3833:262;;;3913:3;3907:10;3930:33;3957:5;3930:33;:::i;:::-;3976:18;;3867:1;3860:9;;;;;4017:4;4041:12;;;;4073;3833:262;;;-1:-1:-1;4114:6:1;;3307:819;-1:-1:-1;;;;;3307:819:1:o;4131:831::-;;;;;4346:2;4334:9;4325:7;4321:23;4317:32;4314:2;;;4367:6;4359;4352:22;4314:2;4412:9;4399:23;4441:18;4482:2;4474:6;4471:14;4468:2;;;4503:6;4495;4488:22;4468:2;4547:76;4615:7;4606:6;4595:9;4591:22;4547:76;:::i;:::-;4642:8;;-1:-1:-1;4521:102:1;-1:-1:-1;4730:2:1;4715:18;;4702:32;;-1:-1:-1;4746:16:1;;;4743:2;;;4780:6;4772;4765:22;4743:2;;4824:78;4894:7;4883:8;4872:9;4868:24;4824:78;:::i;:::-;4304:658;;;;-1:-1:-1;4921:8:1;-1:-1:-1;;;;4304:658:1:o;4967:846::-;;5091:3;5135:2;5123:9;5114:7;5110:23;5106:32;5103:2;;;5156:6;5148;5141:22;5103:2;5210:7;5203:4;5192:9;5188:20;5184:34;5174:2;;5237:6;5229;5222:22;5174:2;5275;5269:9;5317:2;5309:6;5305:15;5386:6;5374:10;5371:22;5350:18;5338:10;5335:34;5332:62;5329:2;;;5397:9;5329:2;5424;5417:22;5459:6;5485:9;5509:18;;;5506:31;-1:-1:-1;5503:2:1;;;5555:6;5547;5540:22;5503:2;5582:6;5573:15;;5597:185;5611:4;5608:1;5605:11;5597:185;;;5670:10;;5658:23;;5631:1;5624:9;;;;;5704:4;5728:12;;;;5760;5597:185;;5818:253;;5927:2;5915:9;5906:7;5902:23;5898:32;5895:2;;;5948:6;5940;5933:22;5895:2;5992:9;5979:23;6011:30;6035:5;6011:30;:::i;6076:257::-;;6196:2;6184:9;6175:7;6171:23;6167:32;6164:2;;;6217:6;6209;6202:22;6164:2;6254:9;6248:16;6273:30;6297:5;6273:30;:::i;6338:292::-;;6466:2;6454:9;6445:7;6441:23;6437:32;6434:2;;;6487:6;6479;6472:22;6434:2;6531:9;6518:23;6570:1;6563:5;6560:12;6550:2;;6591:6;6583;6576:22;6635:427;;;;6787:2;6775:9;6766:7;6762:23;6758:32;6755:2;;;6808:6;6800;6793:22;6755:2;6836:41;6867:9;6836:41;:::i;:::-;6826:51;;6896:50;6942:2;6931:9;6927:18;6896:50;:::i;:::-;6886:60;;6989:2;6978:9;6974:18;6968:25;7002:30;7026:5;7002:30;:::i;7067:259::-;;7179:2;7167:9;7158:7;7154:23;7150:32;7147:2;;;7200:6;7192;7185:22;7147:2;7244:9;7231:23;7263:33;7290:5;7263:33;:::i;7331:574::-;;;;7487:2;7475:9;7466:7;7462:23;7458:32;7455:2;;;7508:6;7500;7493:22;7455:2;7545:9;7539:16;7564:33;7591:5;7564:33;:::i;:::-;7666:2;7651:18;;7645:25;7616:5;;-1:-1:-1;7679:35:1;7645:25;7679:35;:::i;:::-;7785:2;7770:18;;7764:25;7733:7;;-1:-1:-1;7833:10:1;7820:24;;7808:37;;7798:2;;7864:6;7856;7849:22;7910:190;;8022:2;8010:9;8001:7;7997:23;7993:32;7990:2;;;8043:6;8035;8028:22;7990:2;-1:-1:-1;8071:23:1;;7980:120;-1:-1:-1;7980:120:1:o;8105:194::-;;8228:2;8216:9;8207:7;8203:23;8199:32;8196:2;;;8249:6;8241;8234:22;8196:2;-1:-1:-1;8277:16:1;;8186:113;-1:-1:-1;8186:113:1:o;8304:255::-;;;8444:2;8432:9;8423:7;8419:23;8415:32;8412:2;;;8465:6;8457;8450:22;8412:2;-1:-1:-1;;8493:16:1;;8549:2;8534:18;;;8528:25;8493:16;;8528:25;;-1:-1:-1;8402:157:1:o;8564:293::-;;8685:2;8673:9;8664:7;8660:23;8656:32;8653:2;;;8706:6;8698;8691:22;8653:2;8743:9;8737:16;8793:4;8786:5;8782:16;8775:5;8772:27;8762:2;;8818:6;8810;8803:22;8862:259;;8943:5;8937:12;8970:6;8965:3;8958:19;8986:63;9042:6;9035:4;9030:3;9026:14;9019:4;9012:5;9008:16;8986:63;:::i;:::-;9103:2;9082:15;-1:-1:-1;;9078:29:1;9069:39;;;;9110:4;9065:50;;8913:208;-1:-1:-1;;8913:208:1:o;9126:274::-;;9293:6;9287:13;9309:53;9355:6;9350:3;9343:4;9335:6;9331:17;9309:53;:::i;:::-;9378:16;;;;;9263:137;-1:-1:-1;;9263:137:1:o;9405:205::-;9605:3;9596:14::o;9615:203::-;-1:-1:-1;;;;;9779:32:1;;;;9761:51;;9749:2;9734:18;;9716:102::o;10039:312::-;-1:-1:-1;;;;;10277:15:1;;;10259:34;;10329:15;;10324:2;10309:18;;10302:43;10209:2;10194:18;;10176:175::o;10356:761::-;-1:-1:-1;;;;;10763:15:1;;;10745:34;;10815:15;;;10810:2;10795:18;;10788:43;10867:15;;;10862:2;10847:18;;10840:43;10914:2;10899:18;;10892:34;;;;10957:3;10942:19;;10935:35;;;;10725:3;10986:19;;10979:35;11045:3;11030:19;;11023:35;11095:15;;;11089:3;11074:19;;11067:44;10694:3;10679:19;;10661:456::o;11431:464::-;-1:-1:-1;;;;;11726:15:1;;;11708:34;;11778:15;;;11773:2;11758:18;;11751:43;11830:15;;11825:2;11810:18;;11803:43;11877:2;11862:18;;11855:34;;;;11657:3;11642:19;;11624:271::o;11900:384::-;-1:-1:-1;;;;;12158:15:1;;;12140:34;;12210:15;;;12205:2;12190:18;;12183:43;12262:15;;;12257:2;12242:18;;12235:43;12090:2;12075:18;;12057:227::o;12750:383::-;-1:-1:-1;;;;;13016:15:1;;;12998:34;;13068:15;;;;13063:2;13048:18;;13041:43;13115:2;13100:18;;13093:34;;;;12948:2;12933:18;;12915:218::o;13138:274::-;-1:-1:-1;;;;;13330:32:1;;;;13312:51;;13394:2;13379:18;;13372:34;13300:2;13285:18;;13267:145::o;13417:187::-;13582:14;;13575:22;13557:41;;13545:2;13530:18;;13512:92::o;13609:238::-;13757:2;13742:18;;13790:1;13779:13;;13769:2;;13796:9;13769:2;13816:25;;;13724:123;:::o;13852:427::-;14116:2;14105:22;;;14087:41;;14164:22;;;;14159:2;14144:18;;14137:50;14218:2;14203:18;;14196:34;14261:2;14246:18;;14239:34;;;;14074:3;14059:19;;14041:238::o;14284:221::-;;14433:2;14422:9;14415:21;14453:46;14495:2;14484:9;14480:18;14472:6;14453:46;:::i;14510:349::-;14712:2;14694:21;;;14751:2;14731:18;;;14724:30;14790:27;14785:2;14770:18;;14763:55;14850:2;14835:18;;14684:175::o;14864:352::-;15066:2;15048:21;;;15105:2;15085:18;;;15078:30;15144;15139:2;15124:18;;15117:58;15207:2;15192:18;;15038:178::o;15221:404::-;15423:2;15405:21;;;15462:2;15442:18;;;15435:30;15501:34;15496:2;15481:18;;15474:62;-1:-1:-1;;;15567:2:1;15552:18;;15545:38;15615:3;15600:19;;15395:230::o;15630:402::-;15832:2;15814:21;;;15871:2;15851:18;;;15844:30;15910:34;15905:2;15890:18;;15883:62;-1:-1:-1;;;15976:2:1;15961:18;;15954:36;16022:3;16007:19;;15804:228::o;16037:326::-;16239:2;16221:21;;;16278:1;16258:18;;;16251:29;-1:-1:-1;;;16311:2:1;16296:18;;16289:33;16354:2;16339:18;;16211:152::o;16368:356::-;16570:2;16552:21;;;16589:18;;;16582:30;16648:34;16643:2;16628:18;;16621:62;16715:2;16700:18;;16542:182::o;16729:351::-;16931:2;16913:21;;;16970:2;16950:18;;;16943:30;17009:29;17004:2;16989:18;;16982:57;17071:2;17056:18;;16903:177::o;17085:342::-;17287:2;17269:21;;;17326:2;17306:18;;;17299:30;-1:-1:-1;;;17360:2:1;17345:18;;17338:48;17418:2;17403:18;;17259:168::o;17432:404::-;17634:2;17616:21;;;17673:2;17653:18;;;17646:30;17712:34;17707:2;17692:18;;17685:62;-1:-1:-1;;;17778:2:1;17763:18;;17756:38;17826:3;17811:19;;17606:230::o;17841:355::-;18043:2;18025:21;;;18082:2;18062:18;;;18055:30;18121:33;18116:2;18101:18;;18094:61;18187:2;18172:18;;18015:181::o;18201:354::-;18403:2;18385:21;;;18442:2;18422:18;;;18415:30;18481:32;18476:2;18461:18;;18454:60;18546:2;18531:18;;18375:180::o;18560:422::-;18762:2;18744:21;;;18801:2;18781:18;;;18774:30;18840:34;18835:2;18820:18;;18813:62;18911:28;18906:2;18891:18;;18884:56;18972:3;18957:19;;18734:248::o;18987:353::-;19189:2;19171:21;;;19228:2;19208:18;;;19201:30;19267:31;19262:2;19247:18;;19240:59;19331:2;19316:18;;19161:179::o;19345:402::-;19547:2;19529:21;;;19586:2;19566:18;;;19559:30;19625:34;19620:2;19605:18;;19598:62;-1:-1:-1;;;19691:2:1;19676:18;;19669:36;19737:3;19722:19;;19519:228::o;19752:350::-;19954:2;19936:21;;;19993:2;19973:18;;;19966:30;20032:28;20027:2;20012:18;;20005:56;20093:2;20078:18;;19926:176::o;20107:346::-;20309:2;20291:21;;;20348:2;20328:18;;;20321:30;-1:-1:-1;;;20382:2:1;20367:18;;20360:52;20444:2;20429:18;;20281:172::o;20458:349::-;20660:2;20642:21;;;20699:2;20679:18;;;20672:30;20738:27;20733:2;20718:18;;20711:55;20798:2;20783:18;;20632:175::o;20812:342::-;21014:2;20996:21;;;21053:2;21033:18;;;21026:30;-1:-1:-1;;;21087:2:1;21072:18;;21065:48;21145:2;21130:18;;20986:168::o;21159:336::-;21361:2;21343:21;;;21400:2;21380:18;;;21373:30;-1:-1:-1;;;21434:2:1;21419:18;;21412:42;21486:2;21471:18;;21333:162::o;21500:397::-;21702:2;21684:21;;;21741:2;21721:18;;;21714:30;21780:34;21775:2;21760:18;;21753:62;-1:-1:-1;;;21846:2:1;21831:18;;21824:31;21887:3;21872:19;;21674:223::o;21902:345::-;22104:2;22086:21;;;22143:2;22123:18;;;22116:30;-1:-1:-1;;;22177:2:1;22162:18;;22155:51;22238:2;22223:18;;22076:171::o;22252:356::-;22454:2;22436:21;;;22473:18;;;22466:30;22532:34;22527:2;22512:18;;22505:62;22599:2;22584:18;;22426:182::o;22613:346::-;22815:2;22797:21;;;22854:2;22834:18;;;22827:30;-1:-1:-1;;;22888:2:1;22873:18;;22866:52;22950:2;22935:18;;22787:172::o;22964:349::-;23166:2;23148:21;;;23205:2;23185:18;;;23178:30;23244:27;23239:2;23224:18;;23217:55;23304:2;23289:18;;23138:175::o;23318:336::-;23520:2;23502:21;;;23559:2;23539:18;;;23532:30;-1:-1:-1;;;23593:2:1;23578:18;;23571:42;23645:2;23630:18;;23492:162::o;23659:353::-;23861:2;23843:21;;;23900:2;23880:18;;;23873:30;23939:31;23934:2;23919:18;;23912:59;24003:2;23988:18;;23833:179::o;24017:339::-;24219:2;24201:21;;;24258:2;24238:18;;;24231:30;-1:-1:-1;;;24292:2:1;24277:18;;24270:45;24347:2;24332:18;;24191:165::o;24361:346::-;24563:2;24545:21;;;24602:2;24582:18;;;24575:30;-1:-1:-1;;;24636:2:1;24621:18;;24614:52;24698:2;24683:18;;24535:172::o;24712:339::-;24914:2;24896:21;;;24953:2;24933:18;;;24926:30;-1:-1:-1;;;24987:2:1;24972:18;;24965:45;25042:2;25027:18;;24886:165::o;25056:406::-;25258:2;25240:21;;;25297:2;25277:18;;;25270:30;25336:34;25331:2;25316:18;;25309:62;-1:-1:-1;;;25402:2:1;25387:18;;25380:40;25452:3;25437:19;;25230:232::o;25467:332::-;25669:2;25651:21;;;25708:1;25688:18;;;25681:29;-1:-1:-1;;;25741:2:1;25726:18;;25719:39;25790:2;25775:18;;25641:158::o;25804:177::-;25950:25;;;25938:2;25923:18;;25905:76::o;25986:248::-;26160:25;;;26216:2;26201:18;;26194:34;26148:2;26133:18;;26115:119::o;26239:460::-;;26470:6;26459:9;26452:25;26513:6;26508:2;26497:9;26493:18;26486:34;26585:1;26581;26576:3;26572:11;26568:19;26560:6;26556:32;26551:2;26540:9;26536:18;26529:60;26625:3;26620:2;26609:9;26605:18;26598:31;26646:47;26688:3;26677:9;26673:19;26665:6;26646:47;:::i;26704:319::-;26906:25;;;26962:2;26947:18;;26940:34;;;;27005:2;26990:18;;26983:34;26894:2;26879:18;;26861:162::o;27028:560::-;;;27187:11;27174:25;27281:2;27277:7;27266:8;27250:14;27246:29;27242:43;27222:18;27218:68;27208:2;;27303:4;27297;27290:18;27208:2;27333:33;;27385:20;;;-1:-1:-1;27428:18:1;27417:30;;27414:2;;;27463:4;27457;27450:18;27414:2;27499:4;27487:17;;;;-1:-1:-1;27546:17:1;;27530:14;27526:38;27516:49;;27513:2;;;27578:1;27575;27568:12;27593:258;27665:1;27675:113;27689:6;27686:1;27683:13;27675:113;;;27765:11;;;27759:18;27746:11;;;27739:39;27711:2;27704:10;27675:113;;;27806:6;27803:1;27800:13;27797:2;;;-1:-1:-1;;27841:1:1;27823:16;;27816:27;27646:205::o;27856:133::-;-1:-1:-1;;;;;27933:31:1;;27923:42;;27913:2;;27979:1;27976;27969:12;27913:2;27903:86;:::o;27994:120::-;28082:5;28075:13;28068:21;28061:5;28058:32;28048:2;;28104:1;28101;28094:12;28119:144;-1:-1:-1;;;;;28200:5:1;28196:42;28189:5;28186:53;28176:2;;28253:1;28250;28243:12

Swarm Source

ipfs://eeb77f5ba6bd6c4e24a47a0997fef440ecf087f94ddab8b9d93d8b105008c69a
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.