ETH Price: $2,407.63 (-3.00%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Remove Liquidity...164890172023-01-26 5:51:11648 days ago1674712271IN
0x5526856C...9Bc3c0988
0 ETH0.0004751816
Remove Liquidity140396592022-01-20 2:02:231020 days ago1642644143IN
0x5526856C...9Bc3c0988
0 ETH0.02754271125.05319866
Remove Liquidity140396502022-01-20 2:00:231020 days ago1642644023IN
0x5526856C...9Bc3c0988
0 ETH0.0203525397.8308751
Remove Liquidity136742252021-11-24 1:09:051077 days ago1637716145IN
0x5526856C...9Bc3c0988
0 ETH0.02103071135.27008478
Add Liquidity136724772021-11-23 18:43:331077 days ago1637693013IN
0x5526856C...9Bc3c0988
0 ETH0.01921563116.46686145
Remove Liquidity...136723982021-11-23 18:22:351077 days ago1637691755IN
0x5526856C...9Bc3c0988
0 ETH0.02530487138.13532784
Remove Liquidity...136717542021-11-23 15:55:491077 days ago1637682949IN
0x5526856C...9Bc3c0988
0 ETH0.02310423126.14238914
Remove Liquidity136717352021-11-23 15:51:241077 days ago1637682684IN
0x5526856C...9Bc3c0988
0 ETH0.01911743126.65754036
Add Liquidity136696042021-11-23 7:44:321077 days ago1637653472IN
0x5526856C...9Bc3c0988
0 ETH0.0163421289.60728322
Remove Liquidity...136695002021-11-23 7:25:461077 days ago1637652346IN
0x5526856C...9Bc3c0988
0 ETH0.017934297.9
Remove Liquidity136685752021-11-23 3:48:231077 days ago1637639303IN
0x5526856C...9Bc3c0988
0 ETH0.02684431159.76287111
Add Liquidity ET...136615122021-11-22 1:04:471079 days ago1637543087IN
0x5526856C...9Bc3c0988
2.4 ETH0.02000593108.33110379
Remove Liquidity136601382021-11-21 19:52:161079 days ago1637524336IN
0x5526856C...9Bc3c0988
0 ETH0.02508915149.31712001
Remove Liquidity...136594352021-11-21 17:05:451079 days ago1637514345IN
0x5526856C...9Bc3c0988
0 ETH0.0153242683.66144938
Remove Liquidity136529232021-11-20 16:20:081080 days ago1637425208IN
0x5526856C...9Bc3c0988
0 ETH0.01780666105.96054704
Remove Liquidity...136528272021-11-20 15:56:581080 days ago1637423818IN
0x5526856C...9Bc3c0988
0 ETH0.0181357199
Remove Liquidity136527942021-11-20 15:49:441080 days ago1637423384IN
0x5526856C...9Bc3c0988
0 ETH0.0146663394.3415083
Remove Liquidity...136516392021-11-20 11:29:031080 days ago1637407743IN
0x5526856C...9Bc3c0988
0 ETH0.0150877382.35303324
Add Liquidity136515452021-11-20 11:09:591080 days ago1637406599IN
0x5526856C...9Bc3c0988
0 ETH0.0182246399.61158958
Remove Liquidity...136450942021-11-19 10:32:151081 days ago1637317935IN
0x5526856C...9Bc3c0988
0 ETH0.0173668598.23268239
Remove Liquidity...136450752021-11-19 10:28:181081 days ago1637317698IN
0x5526856C...9Bc3c0988
0 ETH0.0160468287.60137794
Remove Liquidity136441452021-11-19 6:44:111081 days ago1637304251IN
0x5526856C...9Bc3c0988
0 ETH0.01691827106.79785602
Add Liquidity136432562021-11-19 3:16:141081 days ago1637291774IN
0x5526856C...9Bc3c0988
0 ETH0.02094903114.89057885
Add Liquidity136427072021-11-19 1:10:261082 days ago1637284226IN
0x5526856C...9Bc3c0988
0 ETH0.00330251139.54668866
Remove Liquidity136417932021-11-18 21:38:091082 days ago1637271489IN
0x5526856C...9Bc3c0988
0 ETH0.02110233135.75169958
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
136723982021-11-23 18:22:351077 days ago1637691755
0x5526856C...9Bc3c0988
5.41380295 ETH
136723982021-11-23 18:22:351077 days ago1637691755
0x5526856C...9Bc3c0988
5.41380295 ETH
136717542021-11-23 15:55:491077 days ago1637682949
0x5526856C...9Bc3c0988
0.06653665 ETH
136717542021-11-23 15:55:491077 days ago1637682949
0x5526856C...9Bc3c0988
0.06653665 ETH
136695002021-11-23 7:25:461077 days ago1637652346
0x5526856C...9Bc3c0988
2.06684285 ETH
136695002021-11-23 7:25:461077 days ago1637652346
0x5526856C...9Bc3c0988
2.06684285 ETH
136615122021-11-22 1:04:471079 days ago1637543087
0x5526856C...9Bc3c0988
0 ETH
136615122021-11-22 1:04:471079 days ago1637543087
0x5526856C...9Bc3c0988
2.39999999 ETH
136594352021-11-21 17:05:451079 days ago1637514345
0x5526856C...9Bc3c0988
0.09744715 ETH
136594352021-11-21 17:05:451079 days ago1637514345
0x5526856C...9Bc3c0988
0.09744715 ETH
136528272021-11-20 15:56:581080 days ago1637423818
0x5526856C...9Bc3c0988
2.34076546 ETH
136528272021-11-20 15:56:581080 days ago1637423818
0x5526856C...9Bc3c0988
2.34076546 ETH
136516392021-11-20 11:29:031080 days ago1637407743
0x5526856C...9Bc3c0988
28.62501986 ETH
136516392021-11-20 11:29:031080 days ago1637407743
0x5526856C...9Bc3c0988
28.62501986 ETH
136450942021-11-19 10:32:151081 days ago1637317935
0x5526856C...9Bc3c0988
0.32033143 ETH
136450942021-11-19 10:32:151081 days ago1637317935
0x5526856C...9Bc3c0988
0.32033143 ETH
136450752021-11-19 10:28:181081 days ago1637317698
0x5526856C...9Bc3c0988
0.84248043 ETH
136450752021-11-19 10:28:181081 days ago1637317698
0x5526856C...9Bc3c0988
0.84248043 ETH
136357542021-11-17 22:58:341083 days ago1637189914
0x5526856C...9Bc3c0988
1 wei
136357542021-11-17 22:58:341083 days ago1637189914
0x5526856C...9Bc3c0988
0.50559549 ETH
136346022021-11-17 18:32:441083 days ago1637173964
0x5526856C...9Bc3c0988
9 wei
136346022021-11-17 18:32:441083 days ago1637173964
0x5526856C...9Bc3c0988
10.11190995 ETH
136331622021-11-17 13:19:391083 days ago1637155179
0x5526856C...9Bc3c0988
0.361764 ETH
136331622021-11-17 13:19:391083 days ago1637155179
0x5526856C...9Bc3c0988
0.361764 ETH
136327942021-11-17 11:58:191083 days ago1637150299
0x5526856C...9Bc3c0988
1.28161162 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OrionPoolV2Router02Ext

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : OrionPoolV2Router02Ext.sol
pragma solidity >0.7.0;

import './OrionPoolV2Router02.sol';
import './interfaces/IOrionPoolV2Router02Ext.sol';

contract OrionPoolV2Router02Ext is OrionPoolV2Router02, IOrionPoolV2Router02Ext {
    event OrionPoolSwap(
        address sender,
        address st,
        address rt,
        uint256 st_r,
        uint256 st_a,
        uint256 rt_r,
        uint256 rt_a
    );

    constructor(address _factory, address _WETH)
        OrionPoolV2Router02(_factory, _WETH)
    {
    }

    function swapExactTokensForTokensAutoRoute(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to
    ) external payable override returns (uint[] memory amounts)
    {
        if(path[0] == address(0))
        {
            //  We completely ignore amountIn there

            address[] memory new_path = new address[](path.length);
            new_path[0] = WETH;
            for(uint I = 1; I < path.length; ++I)
                new_path[I] = path[I];

            //  return this.swapExactETHForTokens{value: amountIn}(amountOutMin, new_path, to, block.timestamp + 86400);
            amounts = OrionPoolV2Library.getAmountsOut(
                factory,
                msg.value,
                new_path);
            require(amounts[amounts.length - 1] >= amountOutMin, 'OrionPoolV2Router: IOA_2');
            IWETH(WETH).deposit{value: amounts[0]}();
            assert(IWETH(WETH).transfer(OrionPoolV2Library.pairFor(factory, new_path[0], new_path[1]), amounts[0]));
            _swap(amounts, new_path, to);

            emit OrionPoolSwap
            (
                tx.origin,
                path[0],
                path[path.length-1],
                msg.value,
                msg.value,
                amountOutMin,
                amounts[amounts.length - 1]
            );
        }
        else if(path[path.length - 1] == address(0))
        {
            require(msg.value == 0, "NPF1");

            address[] memory new_path = new address[](path.length);
            for(uint I = 0; I < path.length-1; ++I)
                new_path[I] = path[I];
            new_path[path.length - 1] = WETH;

            //  return this.swapExactTokensForETH(amountIn, amountOutMin, new_path, to, block.timestamp + 86400);
            //  require(path[path.length - 1] == WETH, 'OrionPoolV2Router: INVALID_PATH');
            amounts = OrionPoolV2Library.getAmountsOut(factory, amountIn, new_path);
            require(amounts[amounts.length - 1] >= amountOutMin, 'OrionPoolV2Router: IOA_3');
            TransferHelper.safeTransferFrom(
                new_path[0], msg.sender, OrionPoolV2Library.pairFor(factory, new_path[0], new_path[1]), amounts[0]
            );
            _swap(amounts, new_path, address(this));
            IWETH(WETH).withdraw(amounts[amounts.length - 1]);
            TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);

            emit OrionPoolSwap
            (
                tx.origin,
                path[0],
                path[path.length-1],
                amountIn,
                amountIn,
                amountOutMin,
                amounts[amounts.length - 1]
            );
        }
        else
        {
            require(msg.value == 0, "NPF1");

            address[] memory new_path = new address[](path.length);
            for(uint I = 0; I < path.length; ++I)
            {
                if(path[I] != address(0))
                    new_path[I] = path[I];
                else
                    new_path[I] = WETH;
            }

            amounts = OrionPoolV2Library.getAmountsOut(factory, amountIn, new_path);
            require(amounts[amounts.length - 1] >= amountOutMin, 'OrionPoolV2Router: IOA_4');
            TransferHelper.safeTransferFrom(
                path[0], msg.sender, OrionPoolV2Library.pairFor(factory, new_path[0], new_path[1]), amounts[0]
            );
            _swap(amounts, new_path, to);
            emit OrionPoolSwap
            (
                tx.origin,
                path[0],
                path[path.length-1],
                amountIn,
                amountIn,
                amountOutMin,
                amounts[amounts.length - 1]
            );
        }
    }

    ///////////////////////////////////////
    function swapTokensForExactTokensAutoRoute(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to
    ) external payable override returns (uint[] memory amounts)
    {
        if(path[0] == address(0))
        {
            address[] memory new_path = new address[](path.length);
            new_path[0] = WETH;
            for(uint I = 1; I < path.length; ++I)
                new_path[I] = path[I];

            //  We completely ignore amountInMax there

            //  return this.swapETHForExactTokens{value: amountInMax}(amountOut, new_path, to, block.timestamp + 86400);
            //  require(path[0] == WETH, 'OrionPoolV2Router: INVALID_PATH');
            amounts = OrionPoolV2Library.getAmountsIn(factory, amountOut, new_path);
            require(amounts[0] <= msg.value, 'OrionPoolV2Router: EIA_2');
            IWETH(WETH).deposit{value: amounts[0]}();
            assert(IWETH(WETH).transfer(OrionPoolV2Library.pairFor(factory, new_path[0], new_path[1]), amounts[0]));
            _swap(amounts, new_path, to);
            // refund dust eth, if any
            if (msg.value > amounts[0]) TransferHelper.safeTransferETH(msg.sender, msg.value - amounts[0]);
            emit OrionPoolSwap
            (
                tx.origin,
                path[0],
                path[path.length-1],
                msg.value,
                amounts[0],
                amountOut,
                amountOut
            );
        }
        else if(path[path.length - 1] == address(0))
        {
            require(msg.value == 0, "NPF1");

            address[] memory new_path = new address[](path.length);
            for(uint I = 0; I < path.length-1; ++I)
                new_path[I] = path[I];
            new_path[path.length - 1] = WETH;

            //  return this.swapTokensForExactETH(amountOut, amountInMax, new_path, to, block.timestamp + 86400);
            //  require(path[path.length - 1] == WETH, 'OrionPoolV2Router: INVALID_PATH');
            amounts = OrionPoolV2Library.getAmountsIn(factory, amountOut, new_path);
            require(amounts[0] <= amountInMax, 'OrionPoolV2Router: EIA_3');
            TransferHelper.safeTransferFrom(
                new_path[0], msg.sender, OrionPoolV2Library.pairFor(factory, new_path[0], new_path[1]), amounts[0]
            );
            _swap(amounts, new_path, address(this));
            IWETH(WETH).withdraw(amounts[amounts.length - 1]);
            TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
            emit OrionPoolSwap
            (
                tx.origin,
                path[0],
                path[path.length-1],
                amountInMax,
                amounts[0],
                amountOut,
                amountOut
            );
        }
        else
        {
            require(msg.value == 0, "NPF1");

            address[] memory new_path = new address[](path.length);
            for(uint I = 0; I < path.length; ++I)
            {
                if(path[I] != address(0))
                    new_path[I] = path[I];
                else
                    new_path[I] = WETH;
            }

            //  return this.swapTokensForExactTokens(amountOut, amountInMax, path,to, block.timestamp + 86400);
            amounts = OrionPoolV2Library.getAmountsIn(factory, amountOut, new_path);
            require(amounts[0] <= amountInMax, 'OrionPoolV2Router: EIA_4');
            TransferHelper.safeTransferFrom(
                new_path[0], msg.sender, OrionPoolV2Library.pairFor(factory, new_path[0], new_path[1]), amounts[0]
            );
            _swap(amounts, new_path, to);
            emit OrionPoolSwap
            (
                tx.origin,
                path[0],
                path[path.length-1],
                amountInMax,
                amounts[0],
                amountOut,
                amountOut
            );
        }
    }
/*
    function swapExactTokensForTokensAutoRoute(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to
    ) external override returns (uint[] memory amounts)
    {
        if(path[0] == address(0))
        {
            address[] memory new_path = new address[](path.length);
            new_path[0] = WETH;
            for(uint I = 1; I < path.length; ++I)
                new_path[I] = path[I];
            return this.swapExactETHForTokens{value: amountIn}(amountOutMin, new_path, to, block.timestamp + 86400);
        }

        if(path[path.length - 1] == address(0))
        {
            address[] memory new_path = new address[](path.length);
            for(uint I = 0; I < path.length-1; ++I)
                new_path[I] = path[I];
            new_path[path.length - 1] = WETH;

            return this.swapExactTokensForETH(amountIn, amountOutMin, new_path, to, block.timestamp + 86400);
        }

        return this.swapExactTokensForTokens(amountIn, amountOutMin, path, to, block.timestamp + 86400);
    }

    function swapTokensForExactTokensAutoRoute(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to
    ) external override returns (uint[] memory amounts)
    {
        if(path[0] == address(0))
        {
            address[] memory new_path = new address[](path.length);
            new_path[0] = WETH;
            for(uint I = 1; I < path.length; ++I)
                new_path[I] = path[I];

            return this.swapETHForExactTokens{value: amountInMax}(amountOut, new_path, to, block.timestamp + 86400);
        }

        if(path[path.length - 1] == address(0))
        {
            address[] memory new_path = new address[](path.length);
            for(uint I = 0; I < path.length-1; ++I)
                new_path[I] = path[I];
            new_path[path.length - 1] = WETH;

            return this.swapTokensForExactETH(amountOut, amountInMax, new_path, to, block.timestamp + 86400);
        }

        return this.swapTokensForExactTokens(amountOut, amountInMax, path,to, block.timestamp + 86400);
    }
*/
}

File 2 of 12 : 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 3 of 12 : 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 4 of 12 : TransferHelper.sol
pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }
}

File 5 of 12 : OrionPoolV2Router02.sol
pragma solidity >0.7.0;

import '../core/interfaces/IOrionPoolV2Factory.sol';
import '../lib/TransferHelper.sol';

import './interfaces/IOrionPoolV2Router02.sol';
import './libraries/OrionPoolV2Library.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import './interfaces/IWETH.sol';

contract OrionPoolV2Router02 is IOrionPoolV2Router02 {
    using SafeMath for uint;

    address public immutable override factory;
    address public immutable override WETH;

    modifier ensure(uint deadline) {
        require(deadline >= block.timestamp, 'OrionPoolV2Router: EXPIRED');
        _;
    }

    constructor(address _factory, address _WETH) public {
        factory = _factory;
        WETH = _WETH;
    }

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

    // **** ADD LIQUIDITY ****
    function _addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin
    ) internal virtual returns (uint amountA, uint amountB) {
        // create the pair if it doesn't exist yet
        if (IOrionPoolV2Factory(factory).getPair(tokenA, tokenB) == address(0)) {
            IOrionPoolV2Factory(factory).createPair(tokenA, tokenB);
        }
        (uint reserveA, uint reserveB) = OrionPoolV2Library.getReserves(factory, tokenA, tokenB);
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint amountBOptimal = OrionPoolV2Library.quote(amountADesired, reserveA, reserveB);
            if (amountBOptimal <= amountBDesired) {
                require(amountBOptimal >= amountBMin, 'OrionPoolV2Router: INSUFFICIENT_B_AMOUNT');
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint amountAOptimal = OrionPoolV2Library.quote(amountBDesired, reserveB, reserveA);
                assert(amountAOptimal <= amountADesired);
                require(amountAOptimal >= amountAMin, 'OrionPoolV2Router: INSUFFICIENT_A_AMOUNT');
                (amountA, amountB) = (amountAOptimal, amountBDesired);
            }
        }
    }
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) returns (uint amountA, uint amountB, uint liquidity) {
        (amountA, amountB) = _addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin);
        //(amountA, amountB) = (amountADesired, amountBDesired);
        //address pair = OrionPoolV2Library.pairFor(factory, tokenA, tokenB);
        address pair = IOrionPoolV2Factory(factory).getPair(tokenA,tokenB);
        TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA);
        TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB);
        liquidity = IOrionPoolV2Pair(pair).mint(to);
    }
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) {
        (amountToken, amountETH) = _addLiquidity(
            token,
            WETH,
            amountTokenDesired,
            msg.value,
            amountTokenMin,
            amountETHMin
        );
        address pair = OrionPoolV2Library.pairFor(factory, token, WETH);
        TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken);
        IWETH(WETH).deposit{value: amountETH}();
        assert(IWETH(WETH).transfer(pair, amountETH));
        liquidity = IOrionPoolV2Pair(pair).mint(to);
        // refund dust eth, if any
        if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH);
    }

    // **** REMOVE LIQUIDITY ****
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountA, uint amountB) {
        address pair = OrionPoolV2Library.pairFor(factory, tokenA, tokenB);
        IOrionPoolV2Pair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
        (uint amount0, uint amount1) = IOrionPoolV2Pair(pair).burn(to);
        (address token0,) = OrionPoolV2Library.sortTokens(tokenA, tokenB);
        (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0);
        require(amountA >= amountAMin, 'OrionPoolV2Router: INSUFFICIENT_A_AMOUNT');
        require(amountB >= amountBMin, 'OrionPoolV2Router: INSUFFICIENT_B_AMOUNT');
    }
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountToken, uint amountETH) {
        (amountToken, amountETH) = removeLiquidity(
            token,
            WETH,
            liquidity,
            amountTokenMin,
            amountETHMin,
            address(this),
            deadline
        );
        TransferHelper.safeTransfer(token, to, amountToken);
        IWETH(WETH).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override returns (uint amountA, uint amountB) {
        address pair = OrionPoolV2Library.pairFor(factory, tokenA, tokenB);
        uint value = approveMax ? uint(-1) : liquidity;
        IOrionPoolV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountA, amountB) = removeLiquidity(tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline);
    }
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override returns (uint amountToken, uint amountETH) {
        address pair = OrionPoolV2Library.pairFor(factory, token, WETH);
        uint value = approveMax ? uint(-1) : liquidity;
        IOrionPoolV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountToken, amountETH) = removeLiquidityETH(token, liquidity, amountTokenMin, amountETHMin, to, deadline);
    }

    // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) ****
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountETH) {
        (, amountETH) = removeLiquidity(
            token,
            WETH,
            liquidity,
            amountTokenMin,
            amountETHMin,
            address(this),
            deadline
        );
        TransferHelper.safeTransfer(token, to, IERC20(token).balanceOf(address(this)));
        IWETH(WETH).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override returns (uint amountETH) {
        address pair = OrionPoolV2Library.pairFor(factory, token, WETH);
        uint value = approveMax ? uint(-1) : liquidity;
        IOrionPoolV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        amountETH = removeLiquidityETHSupportingFeeOnTransferTokens(
            token, liquidity, amountTokenMin, amountETHMin, to, deadline
        );
    }

    // **** SWAP ****
    // requires the initial amount to have already been sent to the first pair
    function _swap(uint[] memory amounts, address[] memory path, address _to) internal virtual {
        for (uint i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0,) = OrionPoolV2Library.sortTokens(input, output);
            uint amountOut = amounts[i + 1];
            (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOut) : (amountOut, uint(0));
            address to = i < path.length - 2 ? OrionPoolV2Library.pairFor(factory, output, path[i + 2]) : _to;
            IOrionPoolV2Pair(OrionPoolV2Library.pairFor(factory, input, output)).swap(
                amount0Out, amount1Out, to, new bytes(0)
            );
        }
    }
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) returns (uint[] memory amounts) {
        amounts = OrionPoolV2Library.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'OrionPoolV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, OrionPoolV2Library.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, to);
    }
 function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) returns (uint[] memory amounts) {
        amounts = OrionPoolV2Library.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, 'OrionPoolV2Router: EXCESSIVE_INPUT_AMOUNT');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, OrionPoolV2Library.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, to);
    }
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        payable
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[0] == WETH, 'OrionPoolV2Router: INVALID_PATH');
        amounts = OrionPoolV2Library.getAmountsOut(factory, msg.value, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'OrionPoolV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(IWETH(WETH).transfer(OrionPoolV2Library.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
    }
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[path.length - 1] == WETH, 'OrionPoolV2Router: INVALID_PATH');
        amounts = OrionPoolV2Library.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, 'OrionPoolV2Router: EXCESSIVE_INPUT_AMOUNT');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, OrionPoolV2Library.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, address(this));
        IWETH(WETH).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[path.length - 1] == WETH, 'OrionPoolV2Router: INVALID_PATH');
        amounts = OrionPoolV2Library.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'OrionPoolV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, OrionPoolV2Library.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, address(this));
        IWETH(WETH).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        payable
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[0] == WETH, 'OrionPoolV2Router: INVALID_PATH');
        amounts = OrionPoolV2Library.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= msg.value, 'OrionPoolV2Router: EXCESSIVE_INPUT_AMOUNT');
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(IWETH(WETH).transfer(OrionPoolV2Library.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
        // refund dust eth, if any
        if (msg.value > amounts[0]) TransferHelper.safeTransferETH(msg.sender, msg.value - amounts[0]);
    }

    // **** SWAP (supporting fee-on-transfer tokens) ****
    // requires the initial amount to have already been sent to the first pair
    function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal virtual {
        for (uint i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0,) = OrionPoolV2Library.sortTokens(input, output);
            IOrionPoolV2Pair pair = IOrionPoolV2Pair(OrionPoolV2Library.pairFor(factory, input, output));
            uint amountInput;
            uint amountOutput;
            { // scope to avoid stack too deep errors
            (uint reserve0, uint reserve1,) = pair.getReserves();
            (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
            amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput);
            amountOutput = OrionPoolV2Library.getAmountOut(amountInput, reserveInput, reserveOutput);
            }
            (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0));
            address to = i < path.length - 2 ? OrionPoolV2Library.pairFor(factory, output, path[i + 2]) : _to;
            pair.swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) {
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, OrionPoolV2Library.pairFor(factory, path[0], path[1]), amountIn
        );
        uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
            'OrionPoolV2Router: INSUFFICIENT_OUTPUT_AMOUNT'
        );
    }
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    )
        external
        virtual
        override
        payable
        ensure(deadline)
    {
        require(path[0] == WETH, 'OrionPoolV2Router: INVALID_PATH');
        uint amountIn = msg.value;
        IWETH(WETH).deposit{value: amountIn}();
        assert(IWETH(WETH).transfer(OrionPoolV2Library.pairFor(factory, path[0], path[1]), amountIn));
        uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
            'OrionPoolV2Router: INSUFFICIENT_OUTPUT_AMOUNT'
        );
    }
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    )
        external
        virtual
        override
        ensure(deadline)
    {
        require(path[path.length - 1] == WETH, 'OrionPoolV2Router: INVALID_PATH');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, OrionPoolV2Library.pairFor(factory, path[0], path[1]), amountIn
        );
        _swapSupportingFeeOnTransferTokens(path, address(this));
        uint amountOut = IERC20(WETH).balanceOf(address(this));
        require(amountOut >= amountOutMin, 'OrionPoolV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        IWETH(WETH).withdraw(amountOut);
        TransferHelper.safeTransferETH(to, amountOut);
    }

    // **** LIBRARY FUNCTIONS ****
    function quote(uint amountA, uint reserveA, uint reserveB) public pure virtual override returns (uint amountB) {
        return OrionPoolV2Library.quote(amountA, reserveA, reserveB);
    }

    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut)
        public
        pure
        virtual
        override
        returns (uint amountOut)
    {
        return OrionPoolV2Library.getAmountOut(amountIn, reserveIn, reserveOut);
    }

    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut)
        public
        pure
        virtual
        override
        returns (uint amountIn)
    {
        return OrionPoolV2Library.getAmountIn(amountOut, reserveIn, reserveOut);
    }

    function getAmountsOut(uint amountIn, address[] memory path)
        public
        view
        virtual
        override
        returns (uint[] memory amounts)
    {
        return OrionPoolV2Library.getAmountsOut(factory, amountIn, path);
    }

    function getAmountsIn(uint amountOut, address[] memory path)
        public
        view
        virtual
        override
        returns (uint[] memory amounts)
    {
        return OrionPoolV2Library.getAmountsIn(factory, amountOut, path);
    }
}

File 6 of 12 : IOrionPoolV2Router01.sol
pragma solidity >=0.6.2;

interface IOrionPoolV2Router01 {
    function factory() external view returns (address);
    function WETH() external view returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 7 of 12 : IOrionPoolV2Router02.sol
pragma solidity >=0.6.2;

import './IOrionPoolV2Router01.sol';

interface IOrionPoolV2Router02 is IOrionPoolV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 8 of 12 : IOrionPoolV2Router02Ext.sol
pragma solidity >=0.6.2;

interface IOrionPoolV2Router02Ext {
    function swapExactTokensForTokensAutoRoute(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to
    ) external payable returns (uint[] memory amounts);
    function swapTokensForExactTokensAutoRoute(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to
    ) external payable returns (uint[] memory amounts);

}

File 9 of 12 : IWETH.sol
pragma solidity >=0.5.0;

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

File 10 of 12 : OrionPoolV2Library.sol
pragma solidity >=0.5.0;

import '../../core/interfaces/IOrionPoolV2Pair.sol';
import '../../core/interfaces/IOrionPoolV2Factory.sol';

import "@openzeppelin/contracts/math/SafeMath.sol";

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

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

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

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

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

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

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

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

File 11 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library 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 12 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"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"}],"name":"OrionPoolSwap","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"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","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":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermit","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityWithPermit","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"swapExactTokensForTokensAutoRoute","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"swapTokensForExactTokensAutoRoute","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b5060405162005e0e38038062005e0e833981810160405260408110156200003757600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c615c19620001f5600039806101955280610e205280610e5b5280610f52528061117052806114fa52806116605280611a365280611b695280611bf15280611ee05280612036528061224752806124af528061258a52806126645280612732528061287852806129005280612b3c5280612bb75280612c6b5280612d375280612dcc5280612e40528061331b528061344b52806134d352806137d952806138dd5280613ae95280613d375280614023528061407952806140ad528061412152806142af52806143f2528061447a525080610fe052806110b75280611236528061126f52806113aa5280611588528061163e52806117ae5280611ad35280611c235280611f365280611fe852806122a1528061235b52806127c552806129325280612a8c5280612e7252806130b052806133b85280613505528061382f5280613b435280613cbc5280613ce55280613d155280613e825280614057528061434252806144ac5280614d235280614d59528061503352806151a952806155a7528061566052806157135250615c196000f3fe6080604052600436106101855760003560e01c80638803dbee116100d1578063bba22d0e1161008a578063ded9382a11610064578063ded9382a14610c16578063e8e3370014610c89578063f305d71914610d09578063fb3bdb4114610d4f576101be565b8063bba22d0e14610ac9578063c45a015514610b4c578063d06ca61f14610b61576101be565b80638803dbee14610898578063ad5c46481461092e578063ad615dec1461095f578063af2979eb14610995578063b6f9de95146109e8578063baa2abde14610a6c576101be565b80634a25d94a1161013e5780635da89813116101185780635da89813146106c5578063791ac947146107485780637ff36ab5146107de57806385f8c25914610862576101be565b80634a25d94a146105265780635b0d5984146105bc5780635c11d7951461062f576101be565b806302751cec146101c3578063054d50d41461022f57806318cbafe5146102775780631f00ca741461035d5780632195995c1461041257806338ed173914610490576101be565b366101be57336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101bc57fe5b005b600080fd5b3480156101cf57600080fd5b50610216600480360360c08110156101e657600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135610dd3565b6040805192835260208301919091528051918290030190f35b34801561023b57600080fd5b506102656004803603606081101561025257600080fd5b5080359060208101359060400135610eed565b60408051918252519081900360200190f35b34801561028357600080fd5b5061030d600480360360a081101561029a57600080fd5b813591602081013591810190606081016040820135600160201b8111156102c057600080fd5b8201836020820111156102d257600080fd5b803590602001918460208302840111600160201b831117156102f357600080fd5b91935091506001600160a01b038135169060200135610f02565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610349578181015183820152602001610331565b505050509050019250505060405180910390f35b34801561036957600080fd5b5061030d6004803603604081101561038057600080fd5b81359190810190604081016020820135600160201b8111156103a157600080fd5b8201836020820111156103b357600080fd5b803590602001918460208302840111600160201b831117156103d457600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061122f945050505050565b34801561041e57600080fd5b50610216600480360361016081101561043657600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff6101008201351690610120810135906101400135611265565b34801561049c57600080fd5b5061030d600480360360a08110156104b357600080fd5b813591602081013591810190606081016040820135600160201b8111156104d957600080fd5b8201836020820111156104eb57600080fd5b803590602001918460208302840111600160201b8311171561050c57600080fd5b91935091506001600160a01b03813516906020013561135f565b34801561053257600080fd5b5061030d600480360360a081101561054957600080fd5b813591602081013591810190606081016040820135600160201b81111561056f57600080fd5b82018360208201111561058157600080fd5b803590602001918460208302840111600160201b831117156105a257600080fd5b91935091506001600160a01b0381351690602001356114aa565b3480156105c857600080fd5b5061026560048036036101408110156105e057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135611636565b34801561063b57600080fd5b506101bc600480360360a081101561065257600080fd5b813591602081013591810190606081016040820135600160201b81111561067857600080fd5b82018360208201111561068a57600080fd5b803590602001918460208302840111600160201b831117156106ab57600080fd5b91935091506001600160a01b038135169060200135611744565b61030d600480360360808110156106db57600080fd5b813591602081013591810190606081016040820135600160201b81111561070157600080fd5b82018360208201111561071357600080fd5b803590602001918460208302840111600160201b8311171561073457600080fd5b9193509150356001600160a01b03166119c1565b34801561075457600080fd5b506101bc600480360360a081101561076b57600080fd5b813591602081013591810190606081016040820135600160201b81111561079157600080fd5b8201836020820111156107a357600080fd5b803590602001918460208302840111600160201b831117156107c457600080fd5b91935091506001600160a01b038135169060200135612461565b61030d600480360360808110156107f457600080fd5b81359190810190604081016020820135600160201b81111561081557600080fd5b82018360208201111561082757600080fd5b803590602001918460208302840111600160201b8311171561084857600080fd5b91935091506001600160a01b0381351690602001356126ea565b34801561086e57600080fd5b506102656004803603606081101561088557600080fd5b5080359060208101359060400135612a34565b3480156108a457600080fd5b5061030d600480360360a08110156108bb57600080fd5b813591602081013591810190606081016040820135600160201b8111156108e157600080fd5b8201836020820111156108f357600080fd5b803590602001918460208302840111600160201b8311171561091457600080fd5b91935091506001600160a01b038135169060200135612a41565b34801561093a57600080fd5b50610943612b3a565b604080516001600160a01b039092168252519081900360200190f35b34801561096b57600080fd5b506102656004803603606081101561098257600080fd5b5080359060208101359060400135612b5e565b3480156109a157600080fd5b50610265600480360360c08110156109b857600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612b6b565b6101bc600480360360808110156109fe57600080fd5b81359190810190604081016020820135600160201b811115610a1f57600080fd5b820183602082011115610a3157600080fd5b803590602001918460208302840111600160201b83111715610a5257600080fd5b91935091506001600160a01b038135169060200135612cf1565b348015610a7857600080fd5b50610216600480360360e0811015610a8f57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135613062565b61030d60048036036080811015610adf57600080fd5b813591602081013591810190606081016040820135600160201b811115610b0557600080fd5b820183602082011115610b1757600080fd5b803590602001918460208302840111600160201b83111715610b3857600080fd5b9193509150356001600160a01b03166132a6565b348015610b5857600080fd5b50610943613cba565b348015610b6d57600080fd5b5061030d60048036036040811015610b8457600080fd5b81359190810190604081016020820135600160201b811115610ba557600080fd5b820183602082011115610bb757600080fd5b803590602001918460208302840111600160201b83111715610bd857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550613cde945050505050565b348015610c2257600080fd5b506102166004803603610140811015610c3a57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135613d0b565b348015610c9557600080fd5b50610ceb6004803603610100811015610cad57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135613e1f565b60408051938452602084019290925282820152519081900360600190f35b610ceb600480360360c0811015610d1f57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135613fd4565b61030d60048036036080811015610d6557600080fd5b81359190810190604081016020820135600160201b811115610d8657600080fd5b820183602082011115610d9857600080fd5b803590602001918460208302840111600160201b83111715610db957600080fd5b91935091506001600160a01b038135169060200135614267565b6000808242811015610e1a576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b610e49897f00000000000000000000000000000000000000000000000000000000000000008a8a8a308a613062565b9093509150610e598986856145d1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ebf57600080fd5b505af1158015610ed3573d6000803e3d6000fd5b50505050610ee1858361473b565b50965096945050505050565b6000610efa848484614833565b949350505050565b60608142811015610f48576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686866000198101818110610f8257fe5b905060200201356001600160a01b03166001600160a01b031614610fdb576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b6110397f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061490b92505050565b9150868260018451038151811061104c57fe5b602002602001015110156110915760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b61112f868660008181106110a157fe5b905060200201356001600160a01b0316336111157f00000000000000000000000000000000000000000000000000000000000000008a8a60008181106110e357fe5b905060200201356001600160a01b03168b8b600181811061110057fe5b905060200201356001600160a01b0316614a57565b8560008151811061112257fe5b6020026020010151614b17565b61116e82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614c74915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836001855103815181106111ad57fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156111eb57600080fd5b505af11580156111ff573d6000803e3d6000fd5b50505050611224848360018551038151811061121757fe5b602002602001015161473b565b509695505050505050565b606061125c7f00000000000000000000000000000000000000000000000000000000000000008484614ea4565b90505b92915050565b60008060006112957f00000000000000000000000000000000000000000000000000000000000000008f8f614a57565b90506000876112a4578c6112a8565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561131e57600080fd5b505af1158015611332573d6000803e3d6000fd5b505050506113458f8f8f8f8f8f8f613062565b809450819550505050509b509b9950505050505050505050565b606081428110156113a5576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6114037f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061490b92505050565b9150868260018451038151811061141657fe5b6020026020010151101561145b5760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b61146b868660008181106110a157fe5b61122482878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614c74915050565b606081428110156114f0576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168686600019810181811061152a57fe5b905060200201356001600160a01b03166001600160a01b031614611583576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b6115e17f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250614ea492505050565b915086826000815181106115f157fe5b602002602001015111156110915760405162461bcd60e51b8152600401808060200182810382526029815260200180615b1f6029913960400191505060405180910390fd5b6000806116847f00000000000000000000000000000000000000000000000000000000000000008d7f0000000000000000000000000000000000000000000000000000000000000000614a57565b9050600086611693578b611697565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561170d57600080fd5b505af1158015611721573d6000803e3d6000fd5b505050506117338d8d8d8d8d8d612b6b565b9d9c50505050505050505050505050565b8042811015611788576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6117fd8585600081811061179857fe5b905060200201356001600160a01b0316336117f77f0000000000000000000000000000000000000000000000000000000000000000898960008181106117da57fe5b905060200201356001600160a01b03168a8a600181811061110057fe5b8a614b17565b60008585600019810181811061180f57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186b57600080fd5b505afa15801561187f573d6000803e3d6000fd5b505050506040513d602081101561189557600080fd5b505160408051602088810282810182019093528882529293506118d7929091899189918291850190849080828437600092019190915250889250614fdc915050565b8661197a82888860001981018181106118ec57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561194857600080fd5b505afa15801561195c573d6000803e3d6000fd5b505050506040513d602081101561197257600080fd5b5051906152de565b10156119b75760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b5050505050505050565b60606000848482816119cf57fe5b905060200201356001600160a01b03166001600160a01b03161415611dd35760608367ffffffffffffffff81118015611a0757600080fd5b50604051908082528060200260200182016040528015611a31578160200160208202803683370190505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611a6257fe5b6001600160a01b039092166020928302919091019091015260015b84811015611acd57858582818110611a9157fe5b905060200201356001600160a01b0316828281518110611aad57fe5b6001600160a01b0390921660209283029190910190910152600101611a7d565b50611af97f0000000000000000000000000000000000000000000000000000000000000000348361490b565b91508582600184510381518110611b0c57fe5b60200260200101511015611b67576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a20494f415f320000000000000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db083600081518110611ba357fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611bd657600080fd5b505af1158015611bea573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb611c717f000000000000000000000000000000000000000000000000000000000000000084600081518110611c4f57fe5b602002602001015185600181518110611c6457fe5b6020026020010151614a57565b84600081518110611c7e57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611ccc57600080fd5b505af1158015611ce0573d6000803e3d6000fd5b505050506040513d6020811015611cf657600080fd5b5051611cfe57fe5b611d09828285614c74565b600080516020615a228339815191523286866000818110611d2657fe5b905060200201356001600160a01b0316878760018a8a905003818110611d4857fe5b905060200201356001600160a01b031634348b8860018a510381518110611d6b57fe5b602002602001015160405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a150612458565b600084846000198101818110611de557fe5b905060200201356001600160a01b03166001600160a01b0316141561213f573415611e40576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff81118015611e5957600080fd5b50604051908082528060200260200182016040528015611e83578160200160208202803683370190505b50905060005b6000198501811015611edd57858582818110611ea157fe5b905060200201356001600160a01b0316828281518110611ebd57fe5b6001600160a01b0390921660209283029190910190910152600101611e89565b507f0000000000000000000000000000000000000000000000000000000000000000816001878790500381518110611f1157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050611f5c7f0000000000000000000000000000000000000000000000000000000000000000888361490b565b91508582600184510381518110611f6f57fe5b60200260200101511015611fca576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a20494f415f330000000000000000604482015290519081900360640190fd5b61202981600081518110611fda57fe5b6020026020010151336111157f00000000000000000000000000000000000000000000000000000000000000008560008151811061201457fe5b602002602001015186600181518110611c6457fe5b612034828230614c74565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d8360018551038151811061207357fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156120b157600080fd5b505af11580156120c5573d6000803e3d6000fd5b505050506120dd838360018551038151811061121757fe5b600080516020615a2283398151915232868660008181106120fa57fe5b905060200201356001600160a01b0316878760018a8a90500381811061211c57fe5b905060200201356001600160a01b03168a8b8b8860018a510381518110611d6b57fe5b341561217b576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff8111801561219457600080fd5b506040519080825280602002602001820160405280156121be578160200160208202803683370190505b50905060005b8481101561229b5760008686838181106121da57fe5b905060200201356001600160a01b03166001600160a01b0316146122455785858281811061220457fe5b905060200201356001600160a01b031682828151811061222057fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612293565b7f000000000000000000000000000000000000000000000000000000000000000082828151811061227257fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6001016121c4565b506122c77f0000000000000000000000000000000000000000000000000000000000000000888361490b565b915085826001845103815181106122da57fe5b60200260200101511015612335576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a20494f415f340000000000000000604482015290519081900360640190fd5b6123878585600081811061234557fe5b905060200201356001600160a01b0316336111157f00000000000000000000000000000000000000000000000000000000000000008560008151811061201457fe5b612392828285614c74565b600080516020615a2283398151915232868660008181106123af57fe5b905060200201356001600160a01b0316878760018a8a9050038181106123d157fe5b905060200201356001600160a01b03168a8b8b8860018a5103815181106123f457fe5b602002602001015160405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a1505b95945050505050565b80428110156124a5576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016858560001981018181106124df57fe5b905060200201356001600160a01b03166001600160a01b031614612538576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b6125488585600081811061179857fe5b612586858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614fdc915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156125f557600080fd5b505afa158015612609573d6000803e3d6000fd5b505050506040513d602081101561261f57600080fd5b50519050868110156126625760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156126c857600080fd5b505af11580156126dc573d6000803e3d6000fd5b505050506119b7848261473b565b60608142811015612730576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168686600081811061276757fe5b905060200201356001600160a01b03166001600160a01b0316146127c0576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b61281e7f00000000000000000000000000000000000000000000000000000000000000003488888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061490b92505050565b9150868260018451038151811061283157fe5b602002602001015110156128765760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836000815181106128b257fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156128e557600080fd5b505af11580156128f9573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb61295e7f0000000000000000000000000000000000000000000000000000000000000000898960008181106117da57fe5b8460008151811061296b57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156129b957600080fd5b505af11580156129cd573d6000803e3d6000fd5b505050506040513d60208110156129e357600080fd5b50516129eb57fe5b612a2a82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614c74915050565b5095945050505050565b6000610efa84848461533b565b60608142811015612a87576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b612ae57f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250614ea492505050565b91508682600081518110612af557fe5b6020026020010151111561145b5760405162461bcd60e51b8152600401808060200182810382526029815260200180615b1f6029913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610efa848484615413565b60008142811015612bb1576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b612be0887f00000000000000000000000000000000000000000000000000000000000000008989893089613062565b905080925050612c6988858a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612c3857600080fd5b505afa158015612c4c573d6000803e3d6000fd5b505050506040513d6020811015612c6257600080fd5b50516145d1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015612ccf57600080fd5b505af1158015612ce3573d6000803e3d6000fd5b50505050611224848361473b565b8042811015612d35576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856000818110612d6c57fe5b905060200201356001600160a01b03166001600160a01b031614612dc5576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612e2557600080fd5b505af1158015612e39573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb612e9e7f0000000000000000000000000000000000000000000000000000000000000000898960008181106117da57fe5b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612ee557600080fd5b505af1158015612ef9573d6000803e3d6000fd5b505050506040513d6020811015612f0f57600080fd5b5051612f1757fe5b600086866000198101818110612f2957fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612f8557600080fd5b505afa158015612f99573d6000803e3d6000fd5b505050506040513d6020811015612faf57600080fd5b50516040805160208981028281018201909352898252929350612ff19290918a918a918291850190849080828437600092019190915250899250614fdc915050565b8761197a828989600019810181811061300657fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561194857600080fd5b60008082428110156130a9576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b60006130d67f00000000000000000000000000000000000000000000000000000000000000008c8c614a57565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b15801561313157600080fd5b505af1158015613145573d6000803e3d6000fd5b505050506040513d602081101561315b57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b1580156131a857600080fd5b505af11580156131bc573d6000803e3d6000fd5b505050506040513d60408110156131d257600080fd5b508051602090910151909250905060006131ec8e8e6154b9565b509050806001600160a01b03168e6001600160a01b03161461320f578183613212565b82825b90975095508a8710156132565760405162461bcd60e51b8152600401808060200182810382526028815260200180615a426028913960400191505060405180910390fd5b898610156132955760405162461bcd60e51b8152600401808060200182810382526028815260200180615b6b6028913960400191505060405180910390fd5b505050505097509795505050505050565b60606000848482816132b457fe5b905060200201356001600160a01b03166001600160a01b031614156136cc5760608367ffffffffffffffff811180156132ec57600080fd5b50604051908082528060200260200182016040528015613316578160200160208202803683370190505b5090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061334757fe5b6001600160a01b039092166020928302919091019091015260015b848110156133b25785858281811061337657fe5b905060200201356001600160a01b031682828151811061339257fe5b6001600160a01b0390921660209283029190910190910152600101613362565b506133de7f00000000000000000000000000000000000000000000000000000000000000008883614ea4565b915034826000815181106133ee57fe5b60200260200101511115613449576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a204549415f320000000000000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db08360008151811061348557fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156134b857600080fd5b505af11580156134cc573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6135317f000000000000000000000000000000000000000000000000000000000000000084600081518110611c4f57fe5b8460008151811061353e57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561358c57600080fd5b505af11580156135a0573d6000803e3d6000fd5b505050506040513d60208110156135b657600080fd5b50516135be57fe5b6135c9828285614c74565b816000815181106135d657fe5b60200260200101513411156136055761360533836000815181106135f657fe5b6020026020010151340361473b565b600080516020615a22833981519152328686600081811061362257fe5b905060200201356001600160a01b0316878760018a8a90500381811061364457fe5b905060200201356001600160a01b0316348660008151811061366257fe5b60200260200101518c8d60405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a150612458565b6000848460001981018181106136de57fe5b905060200201356001600160a01b03166001600160a01b031614156139e1573415613739576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff8111801561375257600080fd5b5060405190808252806020026020018201604052801561377c578160200160208202803683370190505b50905060005b60001985018110156137d65785858281811061379a57fe5b905060200201356001600160a01b03168282815181106137b657fe5b6001600160a01b0390921660209283029190910190910152600101613782565b507f000000000000000000000000000000000000000000000000000000000000000081600187879050038151811061380a57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506138557f00000000000000000000000000000000000000000000000000000000000000008883614ea4565b9150858260008151811061386557fe5b602002602001015111156138c0576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a204549415f330000000000000000604482015290519081900360640190fd5b6138d081600081518110611fda57fe5b6138db828230614c74565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d8360018551038151811061391a57fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561395857600080fd5b505af115801561396c573d6000803e3d6000fd5b50505050613984838360018551038151811061121757fe5b600080516020615a2283398151915232868660008181106139a157fe5b905060200201356001600160a01b0316878760018a8a9050038181106139c357fe5b905060200201356001600160a01b0316898660008151811061366257fe5b3415613a1d576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff81118015613a3657600080fd5b50604051908082528060200260200182016040528015613a60578160200160208202803683370190505b50905060005b84811015613b3d576000868683818110613a7c57fe5b905060200201356001600160a01b03166001600160a01b031614613ae757858582818110613aa657fe5b905060200201356001600160a01b0316828281518110613ac257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050613b35565b7f0000000000000000000000000000000000000000000000000000000000000000828281518110613b1457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600101613a66565b50613b697f00000000000000000000000000000000000000000000000000000000000000008883614ea4565b91508582600081518110613b7957fe5b60200260200101511115613bd4576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a204549415f340000000000000000604482015290519081900360640190fd5b613be481600081518110611fda57fe5b613bef828285614c74565b600080516020615a228339815191523286866000818110613c0c57fe5b905060200201356001600160a01b0316878760018a8a905003818110613c2e57fe5b905060200201356001600160a01b03168986600081518110613c4c57fe5b60200260200101518c8d60405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a15095945050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b606061125c7f0000000000000000000000000000000000000000000000000000000000000000848461490b565b6000806000613d5b7f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000614a57565b9050600087613d6a578c613d6e565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b158015613de457600080fd5b505af1158015613df8573d6000803e3d6000fd5b50505050613e0a8e8e8e8e8e8e610dd3565b909f909e509c50505050505050505050505050565b60008060008342811015613e68576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b613e768c8c8c8c8c8c615597565b809450819550505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439058e8e6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015613efe57600080fd5b505afa158015613f12573d6000803e3d6000fd5b505050506040513d6020811015613f2857600080fd5b50519050613f388d338388614b17565b613f448c338387614b17565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015613f9357600080fd5b505af1158015613fa7573d6000803e3d6000fd5b505050506040513d6020811015613fbd57600080fd5b5051949d939c50939a509198505050505050505050565b6000806000834281101561401d576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b61404b8a7f00000000000000000000000000000000000000000000000000000000000000008b348c8c615597565b9094509250600061409d7f00000000000000000000000000000000000000000000000000000000000000008c7f0000000000000000000000000000000000000000000000000000000000000000614a57565b90506140ab8b338388614b17565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561410657600080fd5b505af115801561411a573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561419657600080fd5b505af11580156141aa573d6000803e3d6000fd5b505050506040513d60208110156141c057600080fd5b50516141c857fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b15801561421757600080fd5b505af115801561422b573d6000803e3d6000fd5b505050506040513d602081101561424157600080fd5b5051925034841015614259576142593385340361473b565b505096509650969350505050565b606081428110156142ad576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316868660008181106142e457fe5b905060200201356001600160a01b03166001600160a01b03161461433d576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b61439b7f000000000000000000000000000000000000000000000000000000000000000088888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250614ea492505050565b915034826000815181106143ab57fe5b602002602001015111156143f05760405162461bcd60e51b8152600401808060200182810382526029815260200180615b1f6029913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db08360008151811061442c57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561445f57600080fd5b505af1158015614473573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6144d87f0000000000000000000000000000000000000000000000000000000000000000898960008181106117da57fe5b846000815181106144e557fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561453357600080fd5b505af1158015614547573d6000803e3d6000fd5b505050506040513d602081101561455d57600080fd5b505161456557fe5b6145a482878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614c74915050565b816000815181106145b157fe5b6020026020010151341115612a2a57612a2a33836000815181106135f657fe5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b6020831061464e5780518252601f19909201916020918201910161462f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146146b0576040519150601f19603f3d011682016040523d82523d6000602084013e6146b5565b606091505b50915091508180156146e35750805115806146e357508080602001905160208110156146e057600080fd5b50515b614734576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106147875780518252601f199092019160209182019101614768565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146147e9576040519150601f19603f3d011682016040523d82523d6000602084013e6147ee565b606091505b505090508061482e5760405162461bcd60e51b8152600401808060200182810382526023815260200180615b486023913960400191505060405180910390fd5b505050565b60008084116148735760405162461bcd60e51b815260040180806020018281038252602d815260200180615bb7602d913960400191505060405180910390fd5b6000831180156148835750600082115b6148be5760405162461bcd60e51b815260040180806020018281038252602a8152602001806159d1602a913960400191505060405180910390fd5b60006148cc856103e5615828565b905060006148da8285615828565b905060006148f4836148ee886103e8615828565b90615881565b90508082816148ff57fe5b04979650505050505050565b6060600282511015614964576040805162461bcd60e51b815260206004820181905260248201527f4f72696f6e506f6f6c56324c6962726172793a20494e56414c49445f50415448604482015290519081900360640190fd5b815167ffffffffffffffff8111801561497c57600080fd5b506040519080825280602002602001820160405280156149a6578160200160208202803683370190505b50905082816000815181106149b757fe5b60200260200101818152505060005b6001835103811015614a4f57600080614a09878685815181106149e557fe5b60200260200101518786600101815181106149fc57fe5b60200260200101516158db565b91509150614a2b848481518110614a1c57fe5b60200260200101518383614833565b848460010181518110614a3a57fe5b602090810291909101015250506001016149c6565b509392505050565b6000806000614a6685856154b9565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f0c591b9bd08f1704b700bd0b662cd000c1bf71b54704b340e7442d09778ed7c7609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b60208310614b9c5780518252601f199092019160209182019101614b7d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614bfe576040519150601f19603f3d011682016040523d82523d6000602084013e614c03565b606091505b5091509150818015614c31575080511580614c315750808060200190516020811015614c2e57600080fd5b50515b614c6c5760405162461bcd60e51b8152600401808060200182810382526024815260200180615b936024913960400191505060405180910390fd5b505050505050565b60005b6001835103811015614e9e57600080848381518110614c9257fe5b6020026020010151858460010181518110614ca957fe5b6020026020010151915091506000614cc183836154b9565b5090506000878560010181518110614cd557fe5b60200260200101519050600080836001600160a01b0316866001600160a01b031614614d0357826000614d07565b6000835b91509150600060028a51038810614d1e5788614d52565b614d527f0000000000000000000000000000000000000000000000000000000000000000878c8b60020181518110611c6457fe5b9050614d7f7f00000000000000000000000000000000000000000000000000000000000000008888614a57565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015614dbc576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614e24578181015183820152602001614e0c565b50505050905090810190601f168015614e515780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015614e7357600080fd5b505af1158015614e87573d6000803e3d6000fd5b505060019099019850614c77975050505050505050565b50505050565b6060600282511015614efd576040805162461bcd60e51b815260206004820181905260248201527f4f72696f6e506f6f6c56324c6962726172793a20494e56414c49445f50415448604482015290519081900360640190fd5b815167ffffffffffffffff81118015614f1557600080fd5b50604051908082528060200260200182016040528015614f3f578160200160208202803683370190505b5090508281600183510381518110614f5357fe5b60209081029190910101528151600019015b8015614a4f57600080614f9587866001860381518110614f8157fe5b60200260200101518786815181106149fc57fe5b91509150614fb7848481518110614fa857fe5b6020026020010151838361533b565b846001850381518110614fc657fe5b6020908102919091010152505060001901614f65565b60005b600183510381101561482e57600080848381518110614ffa57fe5b602002602001015185846001018151811061501157fe5b602002602001015191509150600061502983836154b9565b50905060006150597f00000000000000000000000000000000000000000000000000000000000000008585614a57565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561509a57600080fd5b505afa1580156150ae573d6000803e3d6000fd5b505050506040513d60608110156150c457600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a8116908916146150fa5782846150fd565b83835b91509150615152828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561194857600080fd5b955061515f868383614833565b945050505050600080856001600160a01b0316886001600160a01b0316146151895782600061518d565b6000835b91509150600060028c51038a106151a4578a6151d8565b6151d87f0000000000000000000000000000000000000000000000000000000000000000898e8d60020181518110611c6457fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b8381101561526257818101518382015260200161524a565b50505050905090810190601f16801561528f5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156152b157600080fd5b505af11580156152c5573d6000803e3d6000fd5b50506001909b019a50614fdf9950505050505050505050565b600082821115615335576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600080841161537b5760405162461bcd60e51b815260040180806020018281038252602e8152602001806159a3602e913960400191505060405180910390fd5b60008311801561538b5750600082115b6153c65760405162461bcd60e51b815260040180806020018281038252602a8152602001806159d1602a913960400191505060405180910390fd5b60006153de6103e86153d88688615828565b90615828565b905060006153f26103e56153d886896152de565b9050615409600182848161540257fe5b0490615881565b9695505050505050565b60008084116154535760405162461bcd60e51b81526004018080602001828103825260278152602001806159fb6027913960400191505060405180910390fd5b6000831180156154635750600082115b61549e5760405162461bcd60e51b815260040180806020018281038252602a8152602001806159d1602a913960400191505060405180910390fd5b826154a98584615828565b816154b057fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561550d5760405162461bcd60e51b8152600401808060200182810382526027815260200180615a8b6027913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061552d578284615530565b83835b90925090506001600160a01b038216615590576040805162461bcd60e51b815260206004820181905260248201527f4f72696f6e506f6f6c56324c6962726172793a205a45524f5f41444452455353604482015290519081900360640190fd5b9250929050565b60008060006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439058a8a6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561562357600080fd5b505afa158015615637573d6000803e3d6000fd5b505050506040513d602081101561564d57600080fd5b50516001600160a01b0316141561570b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c9c6539689896040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b1580156156de57600080fd5b505af11580156156f2573d6000803e3d6000fd5b505050506040513d602081101561570857600080fd5b50505b6000806157397f00000000000000000000000000000000000000000000000000000000000000008b8b6158db565b9150915081600014801561574b575080155b1561575b5787935086925061581b565b6000615768898484615413565b90508781116157bb57858110156157b05760405162461bcd60e51b8152600401808060200182810382526028815260200180615b6b6028913960400191505060405180910390fd5b889450925082615819565b60006157c8898486615413565b9050898111156157d457fe5b878110156158135760405162461bcd60e51b8152600401808060200182810382526028815260200180615a426028913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b6000826158375750600061125f565b8282028284828161584457fe5b041461125c5760405162461bcd60e51b8152600401808060200182810382526021815260200180615a6a6021913960400191505060405180910390fd5b60008282018381101561125c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006158ea85856154b9565b5090506000806158fb888888614a57565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561593357600080fd5b505afa158015615947573d6000803e3d6000fd5b505050506040513d606081101561595d57600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b0387811690841614615990578082615993565b81815b9099909850965050505050505056fe4f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e544f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f4c49515549444954594f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f414d4f554e548f0089f8fadf4942b982917769498287b8259419819e042cd402d46a1265c3374f72696f6e506f6f6c5632526f757465723a20494e53554646494349454e545f415f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f72696f6e506f6f6c56324c6962726172793a204944454e544943414c5f4144445245535345534f72696f6e506f6f6c5632526f757465723a20455850495245440000000000004f72696f6e506f6f6c5632526f757465723a20494e56414c49445f50415448004f72696f6e506f6f6c5632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e544f72696f6e506f6f6c5632526f757465723a204558434553534956455f494e5055545f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c45444f72696f6e506f6f6c5632526f757465723a20494e53554646494349454e545f425f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c45444f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a2646970667358221220dfdb8f09c0ed44868d7c4f4d31a7220ea97b11e365ad98c1567fceb8808f28d564736f6c634300070400330000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x6080604052600436106101855760003560e01c80638803dbee116100d1578063bba22d0e1161008a578063ded9382a11610064578063ded9382a14610c16578063e8e3370014610c89578063f305d71914610d09578063fb3bdb4114610d4f576101be565b8063bba22d0e14610ac9578063c45a015514610b4c578063d06ca61f14610b61576101be565b80638803dbee14610898578063ad5c46481461092e578063ad615dec1461095f578063af2979eb14610995578063b6f9de95146109e8578063baa2abde14610a6c576101be565b80634a25d94a1161013e5780635da89813116101185780635da89813146106c5578063791ac947146107485780637ff36ab5146107de57806385f8c25914610862576101be565b80634a25d94a146105265780635b0d5984146105bc5780635c11d7951461062f576101be565b806302751cec146101c3578063054d50d41461022f57806318cbafe5146102775780631f00ca741461035d5780632195995c1461041257806338ed173914610490576101be565b366101be57336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216146101bc57fe5b005b600080fd5b3480156101cf57600080fd5b50610216600480360360c08110156101e657600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135610dd3565b6040805192835260208301919091528051918290030190f35b34801561023b57600080fd5b506102656004803603606081101561025257600080fd5b5080359060208101359060400135610eed565b60408051918252519081900360200190f35b34801561028357600080fd5b5061030d600480360360a081101561029a57600080fd5b813591602081013591810190606081016040820135600160201b8111156102c057600080fd5b8201836020820111156102d257600080fd5b803590602001918460208302840111600160201b831117156102f357600080fd5b91935091506001600160a01b038135169060200135610f02565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610349578181015183820152602001610331565b505050509050019250505060405180910390f35b34801561036957600080fd5b5061030d6004803603604081101561038057600080fd5b81359190810190604081016020820135600160201b8111156103a157600080fd5b8201836020820111156103b357600080fd5b803590602001918460208302840111600160201b831117156103d457600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061122f945050505050565b34801561041e57600080fd5b50610216600480360361016081101561043657600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff6101008201351690610120810135906101400135611265565b34801561049c57600080fd5b5061030d600480360360a08110156104b357600080fd5b813591602081013591810190606081016040820135600160201b8111156104d957600080fd5b8201836020820111156104eb57600080fd5b803590602001918460208302840111600160201b8311171561050c57600080fd5b91935091506001600160a01b03813516906020013561135f565b34801561053257600080fd5b5061030d600480360360a081101561054957600080fd5b813591602081013591810190606081016040820135600160201b81111561056f57600080fd5b82018360208201111561058157600080fd5b803590602001918460208302840111600160201b831117156105a257600080fd5b91935091506001600160a01b0381351690602001356114aa565b3480156105c857600080fd5b5061026560048036036101408110156105e057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135611636565b34801561063b57600080fd5b506101bc600480360360a081101561065257600080fd5b813591602081013591810190606081016040820135600160201b81111561067857600080fd5b82018360208201111561068a57600080fd5b803590602001918460208302840111600160201b831117156106ab57600080fd5b91935091506001600160a01b038135169060200135611744565b61030d600480360360808110156106db57600080fd5b813591602081013591810190606081016040820135600160201b81111561070157600080fd5b82018360208201111561071357600080fd5b803590602001918460208302840111600160201b8311171561073457600080fd5b9193509150356001600160a01b03166119c1565b34801561075457600080fd5b506101bc600480360360a081101561076b57600080fd5b813591602081013591810190606081016040820135600160201b81111561079157600080fd5b8201836020820111156107a357600080fd5b803590602001918460208302840111600160201b831117156107c457600080fd5b91935091506001600160a01b038135169060200135612461565b61030d600480360360808110156107f457600080fd5b81359190810190604081016020820135600160201b81111561081557600080fd5b82018360208201111561082757600080fd5b803590602001918460208302840111600160201b8311171561084857600080fd5b91935091506001600160a01b0381351690602001356126ea565b34801561086e57600080fd5b506102656004803603606081101561088557600080fd5b5080359060208101359060400135612a34565b3480156108a457600080fd5b5061030d600480360360a08110156108bb57600080fd5b813591602081013591810190606081016040820135600160201b8111156108e157600080fd5b8201836020820111156108f357600080fd5b803590602001918460208302840111600160201b8311171561091457600080fd5b91935091506001600160a01b038135169060200135612a41565b34801561093a57600080fd5b50610943612b3a565b604080516001600160a01b039092168252519081900360200190f35b34801561096b57600080fd5b506102656004803603606081101561098257600080fd5b5080359060208101359060400135612b5e565b3480156109a157600080fd5b50610265600480360360c08110156109b857600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612b6b565b6101bc600480360360808110156109fe57600080fd5b81359190810190604081016020820135600160201b811115610a1f57600080fd5b820183602082011115610a3157600080fd5b803590602001918460208302840111600160201b83111715610a5257600080fd5b91935091506001600160a01b038135169060200135612cf1565b348015610a7857600080fd5b50610216600480360360e0811015610a8f57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135613062565b61030d60048036036080811015610adf57600080fd5b813591602081013591810190606081016040820135600160201b811115610b0557600080fd5b820183602082011115610b1757600080fd5b803590602001918460208302840111600160201b83111715610b3857600080fd5b9193509150356001600160a01b03166132a6565b348015610b5857600080fd5b50610943613cba565b348015610b6d57600080fd5b5061030d60048036036040811015610b8457600080fd5b81359190810190604081016020820135600160201b811115610ba557600080fd5b820183602082011115610bb757600080fd5b803590602001918460208302840111600160201b83111715610bd857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550613cde945050505050565b348015610c2257600080fd5b506102166004803603610140811015610c3a57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135613d0b565b348015610c9557600080fd5b50610ceb6004803603610100811015610cad57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135613e1f565b60408051938452602084019290925282820152519081900360600190f35b610ceb600480360360c0811015610d1f57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135613fd4565b61030d60048036036080811015610d6557600080fd5b81359190810190604081016020820135600160201b811115610d8657600080fd5b820183602082011115610d9857600080fd5b803590602001918460208302840111600160201b83111715610db957600080fd5b91935091506001600160a01b038135169060200135614267565b6000808242811015610e1a576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b610e49897f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28a8a8a308a613062565b9093509150610e598986856145d1565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ebf57600080fd5b505af1158015610ed3573d6000803e3d6000fd5b50505050610ee1858361473b565b50965096945050505050565b6000610efa848484614833565b949350505050565b60608142811015610f48576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21686866000198101818110610f8257fe5b905060200201356001600160a01b03166001600160a01b031614610fdb576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b6110397f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061490b92505050565b9150868260018451038151811061104c57fe5b602002602001015110156110915760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b61112f868660008181106110a157fe5b905060200201356001600160a01b0316336111157f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18a8a60008181106110e357fe5b905060200201356001600160a01b03168b8b600181811061110057fe5b905060200201356001600160a01b0316614a57565b8560008151811061112257fe5b6020026020010151614b17565b61116e82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614c74915050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836001855103815181106111ad57fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156111eb57600080fd5b505af11580156111ff573d6000803e3d6000fd5b50505050611224848360018551038151811061121757fe5b602002602001015161473b565b509695505050505050565b606061125c7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18484614ea4565b90505b92915050565b60008060006112957f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18f8f614a57565b90506000876112a4578c6112a8565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561131e57600080fd5b505af1158015611332573d6000803e3d6000fd5b505050506113458f8f8f8f8f8f8f613062565b809450819550505050509b509b9950505050505050505050565b606081428110156113a5576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6114037f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061490b92505050565b9150868260018451038151811061141657fe5b6020026020010151101561145b5760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b61146b868660008181106110a157fe5b61122482878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614c74915050565b606081428110156114f0576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168686600019810181811061152a57fe5b905060200201356001600160a01b03166001600160a01b031614611583576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b6115e17f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf189888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250614ea492505050565b915086826000815181106115f157fe5b602002602001015111156110915760405162461bcd60e51b8152600401808060200182810382526029815260200180615b1f6029913960400191505060405180910390fd5b6000806116847f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18d7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2614a57565b9050600086611693578b611697565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561170d57600080fd5b505af1158015611721573d6000803e3d6000fd5b505050506117338d8d8d8d8d8d612b6b565b9d9c50505050505050505050505050565b8042811015611788576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6117fd8585600081811061179857fe5b905060200201356001600160a01b0316336117f77f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1898960008181106117da57fe5b905060200201356001600160a01b03168a8a600181811061110057fe5b8a614b17565b60008585600019810181811061180f57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186b57600080fd5b505afa15801561187f573d6000803e3d6000fd5b505050506040513d602081101561189557600080fd5b505160408051602088810282810182019093528882529293506118d7929091899189918291850190849080828437600092019190915250889250614fdc915050565b8661197a82888860001981018181106118ec57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561194857600080fd5b505afa15801561195c573d6000803e3d6000fd5b505050506040513d602081101561197257600080fd5b5051906152de565b10156119b75760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b5050505050505050565b60606000848482816119cf57fe5b905060200201356001600160a01b03166001600160a01b03161415611dd35760608367ffffffffffffffff81118015611a0757600080fd5b50604051908082528060200260200182016040528015611a31578160200160208202803683370190505b5090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110611a6257fe5b6001600160a01b039092166020928302919091019091015260015b84811015611acd57858582818110611a9157fe5b905060200201356001600160a01b0316828281518110611aad57fe5b6001600160a01b0390921660209283029190910190910152600101611a7d565b50611af97f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1348361490b565b91508582600184510381518110611b0c57fe5b60200260200101511015611b67576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a20494f415f320000000000000000604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db083600081518110611ba357fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611bd657600080fd5b505af1158015611bea573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb611c717f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf184600081518110611c4f57fe5b602002602001015185600181518110611c6457fe5b6020026020010151614a57565b84600081518110611c7e57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611ccc57600080fd5b505af1158015611ce0573d6000803e3d6000fd5b505050506040513d6020811015611cf657600080fd5b5051611cfe57fe5b611d09828285614c74565b600080516020615a228339815191523286866000818110611d2657fe5b905060200201356001600160a01b0316878760018a8a905003818110611d4857fe5b905060200201356001600160a01b031634348b8860018a510381518110611d6b57fe5b602002602001015160405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a150612458565b600084846000198101818110611de557fe5b905060200201356001600160a01b03166001600160a01b0316141561213f573415611e40576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff81118015611e5957600080fd5b50604051908082528060200260200182016040528015611e83578160200160208202803683370190505b50905060005b6000198501811015611edd57858582818110611ea157fe5b905060200201356001600160a01b0316828281518110611ebd57fe5b6001600160a01b0390921660209283029190910190910152600101611e89565b507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001878790500381518110611f1157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050611f5c7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1888361490b565b91508582600184510381518110611f6f57fe5b60200260200101511015611fca576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a20494f415f330000000000000000604482015290519081900360640190fd5b61202981600081518110611fda57fe5b6020026020010151336111157f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18560008151811061201457fe5b602002602001015186600181518110611c6457fe5b612034828230614c74565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d8360018551038151811061207357fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156120b157600080fd5b505af11580156120c5573d6000803e3d6000fd5b505050506120dd838360018551038151811061121757fe5b600080516020615a2283398151915232868660008181106120fa57fe5b905060200201356001600160a01b0316878760018a8a90500381811061211c57fe5b905060200201356001600160a01b03168a8b8b8860018a510381518110611d6b57fe5b341561217b576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff8111801561219457600080fd5b506040519080825280602002602001820160405280156121be578160200160208202803683370190505b50905060005b8481101561229b5760008686838181106121da57fe5b905060200201356001600160a01b03166001600160a01b0316146122455785858281811061220457fe5b905060200201356001600160a01b031682828151811061222057fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612293565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc282828151811061227257fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6001016121c4565b506122c77f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1888361490b565b915085826001845103815181106122da57fe5b60200260200101511015612335576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a20494f415f340000000000000000604482015290519081900360640190fd5b6123878585600081811061234557fe5b905060200201356001600160a01b0316336111157f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18560008151811061201457fe5b612392828285614c74565b600080516020615a2283398151915232868660008181106123af57fe5b905060200201356001600160a01b0316878760018a8a9050038181106123d157fe5b905060200201356001600160a01b03168a8b8b8860018a5103815181106123f457fe5b602002602001015160405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a1505b95945050505050565b80428110156124a5576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216858560001981018181106124df57fe5b905060200201356001600160a01b03166001600160a01b031614612538576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b6125488585600081811061179857fe5b612586858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614fdc915050565b60007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156125f557600080fd5b505afa158015612609573d6000803e3d6000fd5b505050506040513d602081101561261f57600080fd5b50519050868110156126625760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156126c857600080fd5b505af11580156126dc573d6000803e3d6000fd5b505050506119b7848261473b565b60608142811015612730576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03168686600081811061276757fe5b905060200201356001600160a01b03166001600160a01b0316146127c0576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b61281e7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf13488888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061490b92505050565b9150868260018451038151811061283157fe5b602002602001015110156128765760405162461bcd60e51b815260040180806020018281038252602d815260200180615af2602d913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0836000815181106128b257fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156128e557600080fd5b505af11580156128f9573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb61295e7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1898960008181106117da57fe5b8460008151811061296b57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156129b957600080fd5b505af11580156129cd573d6000803e3d6000fd5b505050506040513d60208110156129e357600080fd5b50516129eb57fe5b612a2a82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614c74915050565b5095945050505050565b6000610efa84848461533b565b60608142811015612a87576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b612ae57f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf189888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250614ea492505050565b91508682600081518110612af557fe5b6020026020010151111561145b5760405162461bcd60e51b8152600401808060200182810382526029815260200180615b1f6029913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6000610efa848484615413565b60008142811015612bb1576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b612be0887f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28989893089613062565b905080925050612c6988858a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612c3857600080fd5b505afa158015612c4c573d6000803e3d6000fd5b505050506040513d6020811015612c6257600080fd5b50516145d1565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015612ccf57600080fd5b505af1158015612ce3573d6000803e3d6000fd5b50505050611224848361473b565b8042811015612d35576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031685856000818110612d6c57fe5b905060200201356001600160a01b03166001600160a01b031614612dc5576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b60003490507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612e2557600080fd5b505af1158015612e39573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb612e9e7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1898960008181106117da57fe5b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612ee557600080fd5b505af1158015612ef9573d6000803e3d6000fd5b505050506040513d6020811015612f0f57600080fd5b5051612f1757fe5b600086866000198101818110612f2957fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612f8557600080fd5b505afa158015612f99573d6000803e3d6000fd5b505050506040513d6020811015612faf57600080fd5b50516040805160208981028281018201909352898252929350612ff19290918a918a918291850190849080828437600092019190915250899250614fdc915050565b8761197a828989600019810181811061300657fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561194857600080fd5b60008082428110156130a9576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b60006130d67f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18c8c614a57565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b15801561313157600080fd5b505af1158015613145573d6000803e3d6000fd5b505050506040513d602081101561315b57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b1580156131a857600080fd5b505af11580156131bc573d6000803e3d6000fd5b505050506040513d60408110156131d257600080fd5b508051602090910151909250905060006131ec8e8e6154b9565b509050806001600160a01b03168e6001600160a01b03161461320f578183613212565b82825b90975095508a8710156132565760405162461bcd60e51b8152600401808060200182810382526028815260200180615a426028913960400191505060405180910390fd5b898610156132955760405162461bcd60e51b8152600401808060200182810382526028815260200180615b6b6028913960400191505060405180910390fd5b505050505097509795505050505050565b60606000848482816132b457fe5b905060200201356001600160a01b03166001600160a01b031614156136cc5760608367ffffffffffffffff811180156132ec57600080fd5b50604051908082528060200260200182016040528015613316578160200160208202803683370190505b5090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160008151811061334757fe5b6001600160a01b039092166020928302919091019091015260015b848110156133b25785858281811061337657fe5b905060200201356001600160a01b031682828151811061339257fe5b6001600160a01b0390921660209283029190910190910152600101613362565b506133de7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18883614ea4565b915034826000815181106133ee57fe5b60200260200101511115613449576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a204549415f320000000000000000604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db08360008151811061348557fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156134b857600080fd5b505af11580156134cc573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb6135317f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf184600081518110611c4f57fe5b8460008151811061353e57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561358c57600080fd5b505af11580156135a0573d6000803e3d6000fd5b505050506040513d60208110156135b657600080fd5b50516135be57fe5b6135c9828285614c74565b816000815181106135d657fe5b60200260200101513411156136055761360533836000815181106135f657fe5b6020026020010151340361473b565b600080516020615a22833981519152328686600081811061362257fe5b905060200201356001600160a01b0316878760018a8a90500381811061364457fe5b905060200201356001600160a01b0316348660008151811061366257fe5b60200260200101518c8d60405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a150612458565b6000848460001981018181106136de57fe5b905060200201356001600160a01b03166001600160a01b031614156139e1573415613739576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff8111801561375257600080fd5b5060405190808252806020026020018201604052801561377c578160200160208202803683370190505b50905060005b60001985018110156137d65785858281811061379a57fe5b905060200201356001600160a01b03168282815181106137b657fe5b6001600160a01b0390921660209283029190910190910152600101613782565b507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600187879050038151811061380a57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506138557f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18883614ea4565b9150858260008151811061386557fe5b602002602001015111156138c0576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a204549415f330000000000000000604482015290519081900360640190fd5b6138d081600081518110611fda57fe5b6138db828230614c74565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d8360018551038151811061391a57fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561395857600080fd5b505af115801561396c573d6000803e3d6000fd5b50505050613984838360018551038151811061121757fe5b600080516020615a2283398151915232868660008181106139a157fe5b905060200201356001600160a01b0316878760018a8a9050038181106139c357fe5b905060200201356001600160a01b0316898660008151811061366257fe5b3415613a1d576040805162461bcd60e51b815260206004808301919091526024820152634e50463160e01b604482015290519081900360640190fd5b60608367ffffffffffffffff81118015613a3657600080fd5b50604051908082528060200260200182016040528015613a60578160200160208202803683370190505b50905060005b84811015613b3d576000868683818110613a7c57fe5b905060200201356001600160a01b03166001600160a01b031614613ae757858582818110613aa657fe5b905060200201356001600160a01b0316828281518110613ac257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050613b35565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2828281518110613b1457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600101613a66565b50613b697f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18883614ea4565b91508582600081518110613b7957fe5b60200260200101511115613bd4576040805162461bcd60e51b815260206004820152601860248201527f4f72696f6e506f6f6c5632526f757465723a204549415f340000000000000000604482015290519081900360640190fd5b613be481600081518110611fda57fe5b613bef828285614c74565b600080516020615a228339815191523286866000818110613c0c57fe5b905060200201356001600160a01b0316878760018a8a905003818110613c2e57fe5b905060200201356001600160a01b03168986600081518110613c4c57fe5b60200260200101518c8d60405180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185815260200184815260200183815260200182815260200197505050505050505060405180910390a15095945050505050565b7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf181565b606061125c7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1848461490b565b6000806000613d5b7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2614a57565b9050600087613d6a578c613d6e565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b158015613de457600080fd5b505af1158015613df8573d6000803e3d6000fd5b50505050613e0a8e8e8e8e8e8e610dd3565b909f909e509c50505050505050505050505050565b60008060008342811015613e68576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b613e768c8c8c8c8c8c615597565b809450819550505060007f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf16001600160a01b031663e6a439058e8e6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015613efe57600080fd5b505afa158015613f12573d6000803e3d6000fd5b505050506040513d6020811015613f2857600080fd5b50519050613f388d338388614b17565b613f448c338387614b17565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015613f9357600080fd5b505af1158015613fa7573d6000803e3d6000fd5b505050506040513d6020811015613fbd57600080fd5b5051949d939c50939a509198505050505050505050565b6000806000834281101561401d576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b61404b8a7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28b348c8c615597565b9094509250600061409d7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18c7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2614a57565b90506140ab8b338388614b17565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561410657600080fd5b505af115801561411a573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561419657600080fd5b505af11580156141aa573d6000803e3d6000fd5b505050506040513d60208110156141c057600080fd5b50516141c857fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b15801561421757600080fd5b505af115801561422b573d6000803e3d6000fd5b505050506040513d602081101561424157600080fd5b5051925034841015614259576142593385340361473b565b505096509650969350505050565b606081428110156142ad576040805162461bcd60e51b815260206004820152601a6024820152600080516020615ab2833981519152604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316868660008181106142e457fe5b905060200201356001600160a01b03166001600160a01b03161461433d576040805162461bcd60e51b815260206004820152601f6024820152600080516020615ad2833981519152604482015290519081900360640190fd5b61439b7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf188888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250614ea492505050565b915034826000815181106143ab57fe5b602002602001015111156143f05760405162461bcd60e51b8152600401808060200182810382526029815260200180615b1f6029913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db08360008151811061442c57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561445f57600080fd5b505af1158015614473573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb6144d87f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1898960008181106117da57fe5b846000815181106144e557fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561453357600080fd5b505af1158015614547573d6000803e3d6000fd5b505050506040513d602081101561455d57600080fd5b505161456557fe5b6145a482878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614c74915050565b816000815181106145b157fe5b6020026020010151341115612a2a57612a2a33836000815181106135f657fe5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b6020831061464e5780518252601f19909201916020918201910161462f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146146b0576040519150601f19603f3d011682016040523d82523d6000602084013e6146b5565b606091505b50915091508180156146e35750805115806146e357508080602001905160208110156146e057600080fd5b50515b614734576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106147875780518252601f199092019160209182019101614768565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146147e9576040519150601f19603f3d011682016040523d82523d6000602084013e6147ee565b606091505b505090508061482e5760405162461bcd60e51b8152600401808060200182810382526023815260200180615b486023913960400191505060405180910390fd5b505050565b60008084116148735760405162461bcd60e51b815260040180806020018281038252602d815260200180615bb7602d913960400191505060405180910390fd5b6000831180156148835750600082115b6148be5760405162461bcd60e51b815260040180806020018281038252602a8152602001806159d1602a913960400191505060405180910390fd5b60006148cc856103e5615828565b905060006148da8285615828565b905060006148f4836148ee886103e8615828565b90615881565b90508082816148ff57fe5b04979650505050505050565b6060600282511015614964576040805162461bcd60e51b815260206004820181905260248201527f4f72696f6e506f6f6c56324c6962726172793a20494e56414c49445f50415448604482015290519081900360640190fd5b815167ffffffffffffffff8111801561497c57600080fd5b506040519080825280602002602001820160405280156149a6578160200160208202803683370190505b50905082816000815181106149b757fe5b60200260200101818152505060005b6001835103811015614a4f57600080614a09878685815181106149e557fe5b60200260200101518786600101815181106149fc57fe5b60200260200101516158db565b91509150614a2b848481518110614a1c57fe5b60200260200101518383614833565b848460010181518110614a3a57fe5b602090810291909101015250506001016149c6565b509392505050565b6000806000614a6685856154b9565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f0c591b9bd08f1704b700bd0b662cd000c1bf71b54704b340e7442d09778ed7c7609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b60208310614b9c5780518252601f199092019160209182019101614b7d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614bfe576040519150601f19603f3d011682016040523d82523d6000602084013e614c03565b606091505b5091509150818015614c31575080511580614c315750808060200190516020811015614c2e57600080fd5b50515b614c6c5760405162461bcd60e51b8152600401808060200182810382526024815260200180615b936024913960400191505060405180910390fd5b505050505050565b60005b6001835103811015614e9e57600080848381518110614c9257fe5b6020026020010151858460010181518110614ca957fe5b6020026020010151915091506000614cc183836154b9565b5090506000878560010181518110614cd557fe5b60200260200101519050600080836001600160a01b0316866001600160a01b031614614d0357826000614d07565b6000835b91509150600060028a51038810614d1e5788614d52565b614d527f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1878c8b60020181518110611c6457fe5b9050614d7f7f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18888614a57565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015614dbc576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614e24578181015183820152602001614e0c565b50505050905090810190601f168015614e515780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015614e7357600080fd5b505af1158015614e87573d6000803e3d6000fd5b505060019099019850614c77975050505050505050565b50505050565b6060600282511015614efd576040805162461bcd60e51b815260206004820181905260248201527f4f72696f6e506f6f6c56324c6962726172793a20494e56414c49445f50415448604482015290519081900360640190fd5b815167ffffffffffffffff81118015614f1557600080fd5b50604051908082528060200260200182016040528015614f3f578160200160208202803683370190505b5090508281600183510381518110614f5357fe5b60209081029190910101528151600019015b8015614a4f57600080614f9587866001860381518110614f8157fe5b60200260200101518786815181106149fc57fe5b91509150614fb7848481518110614fa857fe5b6020026020010151838361533b565b846001850381518110614fc657fe5b6020908102919091010152505060001901614f65565b60005b600183510381101561482e57600080848381518110614ffa57fe5b602002602001015185846001018151811061501157fe5b602002602001015191509150600061502983836154b9565b50905060006150597f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18585614a57565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561509a57600080fd5b505afa1580156150ae573d6000803e3d6000fd5b505050506040513d60608110156150c457600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a8116908916146150fa5782846150fd565b83835b91509150615152828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561194857600080fd5b955061515f868383614833565b945050505050600080856001600160a01b0316886001600160a01b0316146151895782600061518d565b6000835b91509150600060028c51038a106151a4578a6151d8565b6151d87f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1898e8d60020181518110611c6457fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b8381101561526257818101518382015260200161524a565b50505050905090810190601f16801561528f5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156152b157600080fd5b505af11580156152c5573d6000803e3d6000fd5b50506001909b019a50614fdf9950505050505050505050565b600082821115615335576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600080841161537b5760405162461bcd60e51b815260040180806020018281038252602e8152602001806159a3602e913960400191505060405180910390fd5b60008311801561538b5750600082115b6153c65760405162461bcd60e51b815260040180806020018281038252602a8152602001806159d1602a913960400191505060405180910390fd5b60006153de6103e86153d88688615828565b90615828565b905060006153f26103e56153d886896152de565b9050615409600182848161540257fe5b0490615881565b9695505050505050565b60008084116154535760405162461bcd60e51b81526004018080602001828103825260278152602001806159fb6027913960400191505060405180910390fd5b6000831180156154635750600082115b61549e5760405162461bcd60e51b815260040180806020018281038252602a8152602001806159d1602a913960400191505060405180910390fd5b826154a98584615828565b816154b057fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561550d5760405162461bcd60e51b8152600401808060200182810382526027815260200180615a8b6027913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061552d578284615530565b83835b90925090506001600160a01b038216615590576040805162461bcd60e51b815260206004820181905260248201527f4f72696f6e506f6f6c56324c6962726172793a205a45524f5f41444452455353604482015290519081900360640190fd5b9250929050565b60008060006001600160a01b03167f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf16001600160a01b031663e6a439058a8a6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561562357600080fd5b505afa158015615637573d6000803e3d6000fd5b505050506040513d602081101561564d57600080fd5b50516001600160a01b0316141561570b577f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf16001600160a01b031663c9c6539689896040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b1580156156de57600080fd5b505af11580156156f2573d6000803e3d6000fd5b505050506040513d602081101561570857600080fd5b50505b6000806157397f0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf18b8b6158db565b9150915081600014801561574b575080155b1561575b5787935086925061581b565b6000615768898484615413565b90508781116157bb57858110156157b05760405162461bcd60e51b8152600401808060200182810382526028815260200180615b6b6028913960400191505060405180910390fd5b889450925082615819565b60006157c8898486615413565b9050898111156157d457fe5b878110156158135760405162461bcd60e51b8152600401808060200182810382526028815260200180615a426028913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b6000826158375750600061125f565b8282028284828161584457fe5b041461125c5760405162461bcd60e51b8152600401808060200182810382526021815260200180615a6a6021913960400191505060405180910390fd5b60008282018381101561125c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006158ea85856154b9565b5090506000806158fb888888614a57565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561593357600080fd5b505afa158015615947573d6000803e3d6000fd5b505050506040513d606081101561595d57600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b0387811690841614615990578082615993565b81815b9099909850965050505050505056fe4f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e544f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f4c49515549444954594f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f414d4f554e548f0089f8fadf4942b982917769498287b8259419819e042cd402d46a1265c3374f72696f6e506f6f6c5632526f757465723a20494e53554646494349454e545f415f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f72696f6e506f6f6c56324c6962726172793a204944454e544943414c5f4144445245535345534f72696f6e506f6f6c5632526f757465723a20455850495245440000000000004f72696f6e506f6f6c5632526f757465723a20494e56414c49445f50415448004f72696f6e506f6f6c5632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e544f72696f6e506f6f6c5632526f757465723a204558434553534956455f494e5055545f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c45444f72696f6e506f6f6c5632526f757465723a20494e53554646494349454e545f425f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c45444f72696f6e506f6f6c56324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a2646970667358221220dfdb8f09c0ed44868d7c4f4d31a7220ea97b11e365ad98c1567fceb8808f28d564736f6c63430007040033

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

0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : _factory (address): 0x5FA0060FcfEa35B31F7A5f6025F0fF399b98Edf1
Arg [1] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005fa0060fcfea35b31f7a5f6025f0ff399b98edf1
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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