Contract

0x95a7e403d7cF20F675fF9273D66e94d35ba49fA3

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Remove Liquidity...6484392024-12-19 2:38:2420 mins ago1734575904IN
0x95a7e403...35ba49fA3
0 S0.000060721
Remove Liquidity...6484342024-12-19 2:38:2020 mins ago1734575900IN
0x95a7e403...35ba49fA3
0 S0.000212581
Add Liquidity ET...6466102024-12-19 2:09:4249 mins ago1734574182IN
0x95a7e403...35ba49fA3
149.02032891 S0.000205041.1
Add Liquidity ET...6460692024-12-19 2:01:5256 mins ago1734573712IN
0x95a7e403...35ba49fA3
0.99705512 S0.000457892.5
Add Liquidity ET...6460042024-12-19 2:00:4458 mins ago1734573644IN
0x95a7e403...35ba49fA3
1.0040765 S0.000455162.5
Swap Exact ETH F...6407112024-12-19 0:58:491 hr ago1734569929IN
0x95a7e403...35ba49fA3
1 S0.000131231.00000001
Swap Exact ETH F...6393242024-12-19 0:39:202 hrs ago1734568760IN
0x95a7e403...35ba49fA3
0.1 S0.000298251.1
Swap Exact ETH F...6392132024-12-19 0:37:402 hrs ago1734568660IN
0x95a7e403...35ba49fA3
10 S0.000262241.1
Add Liquidity ET...6387462024-12-19 0:30:452 hrs ago1734568245IN
0x95a7e403...35ba49fA3
91.09206273 S0.000877084.4
Add Liquidity ET...6378542024-12-19 0:15:462 hrs ago1734567346IN
0x95a7e403...35ba49fA3
1 S0.00246641
Remove Liquidity...6375332024-12-19 0:10:492 hrs ago1734567049IN
0x95a7e403...35ba49fA3
0 S0.000199761.11
Add Liquidity ET...6340192024-12-18 23:39:033 hrs ago1734565143IN
0x95a7e403...35ba49fA3
9.96393102 S0.000214191.11
Swap Exact Token...6338922024-12-18 23:37:303 hrs ago1734565050IN
0x95a7e403...35ba49fA3
0 S0.000462143
Swap Exact ETH F...6338422024-12-18 23:36:513 hrs ago1734565011IN
0x95a7e403...35ba49fA3
10 S0.000496653
Swap Exact ETH F...6320462024-12-18 23:16:283 hrs ago1734563788IN
0x95a7e403...35ba49fA3
10 S0.000251781.1
Add Liquidity ET...6313732024-12-18 23:07:163 hrs ago1734563236IN
0x95a7e403...35ba49fA3
2,585.86577774 S0.00018821.11
Add Liquidity ET...6313462024-12-18 23:06:553 hrs ago1734563215IN
0x95a7e403...35ba49fA3
2,570.86599903 S0.000221291.11
Swap Exact ETH F...6308402024-12-18 22:59:393 hrs ago1734562779IN
0x95a7e403...35ba49fA3
20 S0.000262241.1
Add Liquidity ET...6306662024-12-18 22:57:094 hrs ago1734562629IN
0x95a7e403...35ba49fA3
30 S0.00020211.11
Add Liquidity ET...6301442024-12-18 22:52:464 hrs ago1734562366IN
0x95a7e403...35ba49fA3
9.97137561 S0.000210751.11
Add Liquidity ET...6300492024-12-18 22:52:124 hrs ago1734562332IN
0x95a7e403...35ba49fA3
9.96536802 S0.000207741.11
Add Liquidity ET...6299562024-12-18 22:51:394 hrs ago1734562299IN
0x95a7e403...35ba49fA3
9.9759902 S0.000208911.11
Add Liquidity ET...6295462024-12-18 22:49:144 hrs ago1734562154IN
0x95a7e403...35ba49fA3
10 S0.000218691.1
Add Liquidity ET...6292092024-12-18 22:47:144 hrs ago1734562034IN
0x95a7e403...35ba49fA3
2 S0.000218961.1
Remove Liquidity...6287802024-12-18 22:44:344 hrs ago1734561874IN
0x95a7e403...35ba49fA3
0 S0.000237241.11
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
6466102024-12-19 2:09:4249 mins ago1734574182
0x95a7e403...35ba49fA3
149.02032891 S
6460692024-12-19 2:01:5256 mins ago1734573712
0x95a7e403...35ba49fA3
0.99705512 S
6460042024-12-19 2:00:4458 mins ago1734573644
0x95a7e403...35ba49fA3
1.0040765 S
6407112024-12-19 0:58:491 hr ago1734569929
0x95a7e403...35ba49fA3
1 S
6393242024-12-19 0:39:202 hrs ago1734568760
0x95a7e403...35ba49fA3
0.1 S
6392132024-12-19 0:37:402 hrs ago1734568660
0x95a7e403...35ba49fA3
10 S
6387462024-12-19 0:30:452 hrs ago1734568245
0x95a7e403...35ba49fA3
1 wei
6387462024-12-19 0:30:452 hrs ago1734568245
0x95a7e403...35ba49fA3
91.09206273 S
6378542024-12-19 0:15:462 hrs ago1734567346
0x95a7e403...35ba49fA3
1 S
6348732024-12-18 23:48:263 hrs ago1734565706
0x95a7e403...35ba49fA3
0.24601722 S
6348732024-12-18 23:48:263 hrs ago1734565706
0x95a7e403...35ba49fA3
0.24601722 S
6347752024-12-18 23:47:243 hrs ago1734565644
0x95a7e403...35ba49fA3
0.2475 S
6347752024-12-18 23:47:243 hrs ago1734565644
0x95a7e403...35ba49fA3
0.2475 S
6340192024-12-18 23:39:033 hrs ago1734565143
0x95a7e403...35ba49fA3
9.96393102 S
6338922024-12-18 23:37:303 hrs ago1734565050
0x95a7e403...35ba49fA3
9.94009321 S
6338922024-12-18 23:37:303 hrs ago1734565050
0x95a7e403...35ba49fA3
9.94009321 S
6338422024-12-18 23:36:513 hrs ago1734565011
0x95a7e403...35ba49fA3
10 S
6320462024-12-18 23:16:283 hrs ago1734563788
0x95a7e403...35ba49fA3
10 S
6313732024-12-18 23:07:163 hrs ago1734563236
0x95a7e403...35ba49fA3
1 wei
6313732024-12-18 23:07:163 hrs ago1734563236
0x95a7e403...35ba49fA3
2,585.86577774 S
6313462024-12-18 23:06:553 hrs ago1734563215
0x95a7e403...35ba49fA3
1 wei
6313462024-12-18 23:06:553 hrs ago1734563215
0x95a7e403...35ba49fA3
2,570.86599903 S
6308402024-12-18 22:59:393 hrs ago1734562779
0x95a7e403...35ba49fA3
20 S
6306662024-12-18 22:57:094 hrs ago1734562629
0x95a7e403...35ba49fA3
1 wei
6306662024-12-18 22:57:094 hrs ago1734562629
0x95a7e403...35ba49fA3
29.99999999 S
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Router

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion
File 1 of 10 : Router.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.6.12;

import "./interfaces/IFactory.sol";
import "./libraries/TransferHelper.sol";

import "./interfaces/IRouter02.sol";
import "./libraries/PairLibrary.sol";
import "./libraries/SafeMath.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IWETH.sol";

contract Router is IRouter02 {
    using SafeMath for uint256;

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

    modifier ensure(uint256 deadline) {
        require(deadline >= block.timestamp, "Router: 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,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin
    ) internal virtual returns (uint256 amountA, uint256 amountB) {
        // create the pair if it doesn't exist yet
        if (IFactory(factory).getPair(tokenA, tokenB) == address(0)) {
            IFactory(factory).createPair(tokenA, tokenB);
        }
        (uint256 reserveA, uint256 reserveB) = PairLibrary.getReserves(factory, tokenA, tokenB);
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint256 amountBOptimal = PairLibrary.quote(amountADesired, reserveA, reserveB);
            if (amountBOptimal <= amountBDesired) {
                require(amountBOptimal >= amountBMin, "Router: INSUFFICIENT_B_AMOUNT");
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint256 amountAOptimal = PairLibrary.quote(amountBDesired, reserveB, reserveA);
                assert(amountAOptimal <= amountADesired);
                require(amountAOptimal >= amountAMin, "Router: INSUFFICIENT_A_AMOUNT");
                (amountA, amountB) = (amountAOptimal, amountBDesired);
            }
        }
    }

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        virtual
        override
        ensure(deadline)
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        )
    {
        (amountA, amountB) = _addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin);
        address pair = PairLibrary.pairFor(factory, tokenA, tokenB);
        TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA);
        TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB);
        liquidity = IPair(pair).mint(to);
    }

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        virtual
        override
        ensure(deadline)
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        )
    {
        (amountToken, amountETH) = _addLiquidity(token, WETH, amountTokenDesired, msg.value, amountTokenMin, amountETHMin);
        address pair = PairLibrary.pairFor(factory, token, WETH);
        TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken);
        IWETH(WETH).deposit{value: amountETH}();
        assert(IWETH(WETH).transfer(pair, amountETH));
        liquidity = IPair(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,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) public virtual override ensure(deadline) returns (uint256 amountA, uint256 amountB) {
        address pair = PairLibrary.pairFor(factory, tokenA, tokenB);
        IPair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
        (uint256 amount0, uint256 amount1) = IPair(pair).burn(to);
        (address token0, ) = PairLibrary.sortTokens(tokenA, tokenB);
        (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0);
        require(amountA >= amountAMin, "Router: INSUFFICIENT_A_AMOUNT");
        require(amountB >= amountBMin, "Router: INSUFFICIENT_B_AMOUNT");
    }

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) public virtual override ensure(deadline) returns (uint256 amountToken, uint256 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,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual override returns (uint256 amountA, uint256 amountB) {
        address pair = PairLibrary.pairFor(factory, tokenA, tokenB);
        uint256 value = approveMax ? uint256(-1) : liquidity;
        IPair(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,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual override returns (uint256 amountToken, uint256 amountETH) {
        address pair = PairLibrary.pairFor(factory, token, WETH);
        uint256 value = approveMax ? uint256(-1) : liquidity;
        IPair(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,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) public virtual override ensure(deadline) returns (uint256 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,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual override returns (uint256 amountETH) {
        address pair = PairLibrary.pairFor(factory, token, WETH);
        uint256 value = approveMax ? uint256(-1) : liquidity;
        IPair(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(
        uint256[] memory amounts,
        address[] memory path,
        address _to
    ) internal virtual {
        for (uint256 i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0, ) = PairLibrary.sortTokens(input, output);
            uint256 amountOut = amounts[i + 1];
            (uint256 amount0Out, uint256 amount1Out) = input == token0 ? (uint256(0), amountOut) : (amountOut, uint256(0));
            address to = i < path.length - 2 ? PairLibrary.pairFor(factory, output, path[i + 2]) : _to;
            IPair(PairLibrary.pairFor(factory, input, output)).swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external virtual override ensure(deadline) returns (uint256[] memory amounts) {
        amounts = PairLibrary.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, "Router: INSUFFICIENT_OUTPUT_AMOUNT");
        TransferHelper.safeTransferFrom(path[0], msg.sender, PairLibrary.pairFor(factory, path[0], path[1]), amounts[0]);
        _swap(amounts, path, to);
    }

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external virtual override ensure(deadline) returns (uint256[] memory amounts) {
        amounts = PairLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, "Router: EXCESSIVE_INPUT_AMOUNT");
        TransferHelper.safeTransferFrom(path[0], msg.sender, PairLibrary.pairFor(factory, path[0], path[1]), amounts[0]);
        _swap(amounts, path, to);
    }

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable virtual override ensure(deadline) returns (uint256[] memory amounts) {
        require(path[0] == WETH, "Router: INVALID_PATH");
        amounts = PairLibrary.getAmountsOut(factory, msg.value, path);
        require(amounts[amounts.length - 1] >= amountOutMin, "Router: INSUFFICIENT_OUTPUT_AMOUNT");
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(IWETH(WETH).transfer(PairLibrary.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
    }

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external virtual override ensure(deadline) returns (uint256[] memory amounts) {
        require(path[path.length - 1] == WETH, "Router: INVALID_PATH");
        amounts = PairLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, "Router: EXCESSIVE_INPUT_AMOUNT");
        TransferHelper.safeTransferFrom(path[0], msg.sender, PairLibrary.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(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external virtual override ensure(deadline) returns (uint256[] memory amounts) {
        require(path[path.length - 1] == WETH, "Router: INVALID_PATH");
        amounts = PairLibrary.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, "Router: INSUFFICIENT_OUTPUT_AMOUNT");
        TransferHelper.safeTransferFrom(path[0], msg.sender, PairLibrary.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(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable virtual override ensure(deadline) returns (uint256[] memory amounts) {
        require(path[0] == WETH, "Router: INVALID_PATH");
        amounts = PairLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= msg.value, "Router: EXCESSIVE_INPUT_AMOUNT");
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(IWETH(WETH).transfer(PairLibrary.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 (uint256 i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0, ) = PairLibrary.sortTokens(input, output);
            IPair pair = IPair(PairLibrary.pairFor(factory, input, output));
            uint256 amountInput;
            uint256 amountOutput;
            {
                // scope to avoid stack too deep errors
                (uint256 reserve0, uint256 reserve1, ) = pair.getReserves();
                (uint256 reserveInput, uint256 reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
                amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput);
                amountOutput = PairLibrary.getAmountOut(amountInput, reserveInput, reserveOutput, pair.feeAmount());
            }
            (uint256 amount0Out, uint256 amount1Out) = input == token0 ? (uint256(0), amountOutput) : (amountOutput, uint256(0));
            address to = i < path.length - 2 ? PairLibrary.pairFor(factory, output, path[i + 2]) : _to;
            pair.swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external virtual override ensure(deadline) {
        TransferHelper.safeTransferFrom(path[0], msg.sender, PairLibrary.pairFor(factory, path[0], path[1]), amountIn);
        uint256 balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin, "Router: INSUFFICIENT_OUTPUT_AMOUNT");
    }

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable virtual override ensure(deadline) {
        require(path[0] == WETH, "Router: INVALID_PATH");
        uint256 amountIn = msg.value;
        IWETH(WETH).deposit{value: amountIn}();
        assert(IWETH(WETH).transfer(PairLibrary.pairFor(factory, path[0], path[1]), amountIn));
        uint256 balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin, "Router: INSUFFICIENT_OUTPUT_AMOUNT");
    }

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external virtual override ensure(deadline) {
        require(path[path.length - 1] == WETH, "Router: INVALID_PATH");
        TransferHelper.safeTransferFrom(path[0], msg.sender, PairLibrary.pairFor(factory, path[0], path[1]), amountIn);
        _swapSupportingFeeOnTransferTokens(path, address(this));
        uint256 amountOut = IERC20(WETH).balanceOf(address(this));
        require(amountOut >= amountOutMin, "Router: INSUFFICIENT_OUTPUT_AMOUNT");
        IWETH(WETH).withdraw(amountOut);
        TransferHelper.safeTransferETH(to, amountOut);
    }

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

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 feeAmount
    ) public pure virtual override returns (uint256 amountOut) {
        return PairLibrary.getAmountOut(amountIn, reserveIn, reserveOut, feeAmount);
    }

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 feeAmount
    ) public pure virtual override returns (uint256 amountIn) {
        return PairLibrary.getAmountIn(amountOut, reserveIn, reserveOut, feeAmount);
    }

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

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

File 2 of 10 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0

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,
        uint256 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,
        uint256 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,
        uint256 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, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, "TransferHelper: ETH_TRANSFER_FAILED");
    }
}

File 3 of 10 : SafeMath.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.6.12;

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

library SafeMath {
    function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }

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

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

File 4 of 10 : PairLibrary.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.12;

import "../interfaces/IPair.sol";
import "./SafeMath.sol";

library PairLibrary {
    using SafeMath for uint256;

    // 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, "PairLibrary: IDENTICAL_ADDRESSES");
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), "PairLibrary: 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(
            uint256(
                keccak256(
                    abi.encodePacked(
                        hex"ff",
                        factory,
                        keccak256(abi.encodePacked(token0, token1)),
                        hex'b174fb9703cd825ac38ca3cf781a2750d5ee57f4268806e0bca9bcd3d74b67b5' // new
                        // hex"049f32ebc831c324153e0852a313f2be077e76367383aa39f9e12ad395265ab2" // init code hash for tests (hardhat)
                    )
                )
            )
        );
    }

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

    // fetches and sorts the reserves for a pair
    function getReservesAndFeeAmount(
        address factory,
        address tokenA,
        address tokenB
    )
        internal
        view
        returns (
            uint256 reserveA,
            uint256 reserveB,
            uint256 feeAmount
        )
    {
        (address token0, ) = sortTokens(tokenA, tokenB);
        IPair pair = IPair(pairFor(factory, tokenA, tokenB));
        (uint256 reserve0, uint256 reserve1, ) = pair.getReserves();
        feeAmount = pair.feeAmount();
        (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(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) internal pure returns (uint256 amountB) {
        require(amountA > 0, "PairLibrary: INSUFFICIENT_AMOUNT");
        require(reserveA > 0 && reserveB > 0, "PairLibrary: 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(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 feeAmount
    ) internal pure returns (uint256 amountOut) {
        require(amountIn > 0, "PairLibrary: INSUFFICIENT_INPUT_AMOUNT");
        require(reserveIn > 0 && reserveOut > 0, "PairLibrary: INSUFFICIENT_LIQUIDITY");
        uint256 amountInWithFee = amountIn.mul(100000 - feeAmount);
        uint256 numerator = amountInWithFee.mul(reserveOut);
        uint256 denominator = reserveIn.mul(100000).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(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 feeAmount
    ) internal pure returns (uint256 amountIn) {
        require(amountOut > 0, "PairLibrary: INSUFFICIENT_OUTPUT_AMOUNT");
        require(reserveIn > 0 && reserveOut > 0, "PairLibrary: INSUFFICIENT_LIQUIDITY");
        uint256 numerator = reserveIn.mul(amountOut).mul(100000);
        uint256 denominator = reserveOut.sub(amountOut).mul(100000 - feeAmount);
        amountIn = (numerator / denominator).add(1);
    }

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

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

File 5 of 10 : IWETH.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.12;

interface IWETH {
    function deposit() external payable;

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

    function withdraw(uint256) external;
}

File 6 of 10 : IRouter02.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.12;

import "./IRouter01.sol";

interface IRouter02 is IRouter01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

File 7 of 10 : IRouter01.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.12;

interface IRouter01 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 feeAmount
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 feeAmount
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts);
}

File 8 of 10 : IPair.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.5.0;

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

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

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

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

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

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

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

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

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

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

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

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

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

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

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

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

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;

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

File 9 of 10 : IFactory.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.5.0;

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

    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(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;

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

File 10 of 10 : IERC20.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0;

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

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

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

    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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"},{"internalType":"uint256","name":"feeAmount","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"},{"internalType":"uint256","name":"feeAmount","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"},{"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"},{"stateMutability":"payable","type":"receive"}]

60c060405234801561001057600080fd5b50604051620048cf380380620048cf8339818101604052604081101561003557600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c61474a620001856000398061015f5280610cf45280610d2f5280610e15528061103c52806113ce5280611578528061192f5280611a135280611aed5280611bbf5280611d0e5280611d965280611fdf5280612066528061211a52806121ea528061228852806122fc528061280f5280612a815280612ad75280612b0b5280612b7f5280612d115280612e735280612efb525080610eac5280610f835280611102528061113b528061127a5280611465528061155652806116ca5280611c5b5280611dc85280611f19528061232e5280612570528061279452806127bd52806127ed528061295e5280612ab55280612dad5280612f2d52806136dd52806137205280613bb85280613d9352806140d852806141915280614244525061474a6000f3fe60806040526004361061014f5760003560e01c80638803dbee116100b6578063c45a01551161006f578063c45a015514610a1c578063d06ca61f14610a31578063ded9382a14610ae6578063e8e3370014610b59578063f305d71914610bd9578063fb3bdb4114610c1f57610188565b80638803dbee146107eb578063ad5c464814610881578063ad615dec146108b2578063af2979eb146108e8578063b6f9de951461093b578063baa2abde146109bf57610188565b806352707d8c1161010857806352707d8c1461053e578063571fd0121461058c5780635b0d5984146105c85780635c11d7951461063b578063791ac947146106d15780637ff36ab51461076757610188565b806302751cec1461018d57806318cbafe5146101f95780631f00ca74146102df5780632195995c1461039457806338ed1739146104125780634a25d94a146104a857610188565b3661018857336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461018657fe5b005b600080fd5b34801561019957600080fd5b506101e0600480360360c08110156101b057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135610ca3565b6040805192835260208301919091528051918290030190f35b34801561020557600080fd5b5061028f600480360360a081101561021c57600080fd5b813591602081013591810190606081016040820135600160201b81111561024257600080fd5b82018360208201111561025457600080fd5b803590602001918460208302840111600160201b8311171561027557600080fd5b91935091506001600160a01b038135169060200135610dc1565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102cb5781810151838201526020016102b3565b505050509050019250505060405180910390f35b3480156102eb57600080fd5b5061028f6004803603604081101561030257600080fd5b81359190810190604081016020820135600160201b81111561032357600080fd5b82018360208201111561033557600080fd5b803590602001918460208302840111600160201b8311171561035657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110fb945050505050565b3480156103a057600080fd5b506101e060048036036101608110156103b857600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff6101008201351690610120810135906101400135611131565b34801561041e57600080fd5b5061028f600480360360a081101561043557600080fd5b813591602081013591810190606081016040820135600160201b81111561045b57600080fd5b82018360208201111561046d57600080fd5b803590602001918460208302840111600160201b8311171561048e57600080fd5b91935091506001600160a01b03813516906020013561122b565b3480156104b457600080fd5b5061028f600480360360a08110156104cb57600080fd5b813591602081013591810190606081016040820135600160201b8111156104f157600080fd5b82018360208201111561050357600080fd5b803590602001918460208302840111600160201b8311171561052457600080fd5b91935091506001600160a01b03813516906020013561137a565b34801561054a57600080fd5b5061057a6004803603608081101561056157600080fd5b5080359060208101359060408101359060600135611529565b60408051918252519081900360200190f35b34801561059857600080fd5b5061057a600480360360808110156105af57600080fd5b5080359060208101359060408101359060600135611540565b3480156105d457600080fd5b5061057a60048036036101408110156105ec57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e0820135169061010081013590610120013561154e565b34801561064757600080fd5b50610186600480360360a081101561065e57600080fd5b813591602081013591810190606081016040820135600160201b81111561068457600080fd5b82018360208201111561069657600080fd5b803590602001918460208302840111600160201b831117156106b757600080fd5b91935091506001600160a01b03813516906020013561165c565b3480156106dd57600080fd5b50610186600480360360a08110156106f457600080fd5b813591602081013591810190606081016040820135600160201b81111561071a57600080fd5b82018360208201111561072c57600080fd5b803590602001918460208302840111600160201b8311171561074d57600080fd5b91935091506001600160a01b0381351690602001356118dd565b61028f6004803603608081101561077d57600080fd5b81359190810190604081016020820135600160201b81111561079e57600080fd5b8201836020820111156107b057600080fd5b803590602001918460208302840111600160201b831117156107d157600080fd5b91935091506001600160a01b038135169060200135611b73565b3480156107f757600080fd5b5061028f600480360360a081101561080e57600080fd5b813591602081013591810190606081016040820135600160201b81111561083457600080fd5b82018360208201111561084657600080fd5b803590602001918460208302840111600160201b8311171561086757600080fd5b91935091506001600160a01b038135169060200135611eca565b34801561088d57600080fd5b50610896611fdd565b604080516001600160a01b039092168252519081900360200190f35b3480156108be57600080fd5b5061057a600480360360608110156108d557600080fd5b5080359060208101359060400135612001565b3480156108f457600080fd5b5061057a600480360360c081101561090b57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612016565b6101866004803603608081101561095157600080fd5b81359190810190604081016020820135600160201b81111561097257600080fd5b82018360208201111561098457600080fd5b803590602001918460208302840111600160201b831117156109a557600080fd5b91935091506001600160a01b0381351690602001356121a0565b3480156109cb57600080fd5b506101e0600480360360e08110156109e257600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c0013561251e565b348015610a2857600080fd5b50610896612792565b348015610a3d57600080fd5b5061028f60048036036040811015610a5457600080fd5b81359190810190604081016020820135600160201b811115610a7557600080fd5b820183602082011115610a8757600080fd5b803590602001918460208302840111600160201b83111715610aa857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506127b6945050505050565b348015610af257600080fd5b506101e06004803603610140811015610b0a57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356127e3565b348015610b6557600080fd5b50610bbb6004803603610100811015610b7d57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e001356128f7565b60408051938452602084019290925282820152519081900360600190f35b610bbb600480360360c0811015610bef57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612a2e565b61028f60048036036080811015610c3557600080fd5b81359190810190604081016020820135600160201b811115610c5657600080fd5b820183602082011115610c6857600080fd5b803590602001918460208302840111600160201b83111715610c8957600080fd5b91935091506001600160a01b038135169060200135612cc5565b6000808242811015610cee576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b610d1d897f00000000000000000000000000000000000000000000000000000000000000008a8a8a308a61251e565b9093509150610d2d898685613061565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d9357600080fd5b505af1158015610da7573d6000803e3d6000fd5b50505050610db585836131cb565b50965096945050505050565b60608142811015610e0b576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686866000198101818110610e4557fe5b905060200201356001600160a01b03166001600160a01b031614610ea7576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b610f057f0000000000000000000000000000000000000000000000000000000000000000898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506132c392505050565b91508682600184510381518110610f1857fe5b60200260200101511015610f5d5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b610ffb86866000818110610f6d57fe5b905060200201356001600160a01b031633610fe17f00000000000000000000000000000000000000000000000000000000000000008a8a6000818110610faf57fe5b905060200201356001600160a01b03168b8b6001818110610fcc57fe5b905060200201356001600160a01b0316613411565b85600081518110610fee57fe5b60200260200101516134d1565b61103a8287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061362e915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d8360018551038151811061107957fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156110b757600080fd5b505af11580156110cb573d6000803e3d6000fd5b505050506110f084836001855103815181106110e357fe5b60200260200101516131cb565b509695505050505050565b60606111287f0000000000000000000000000000000000000000000000000000000000000000848461386b565b90505b92915050565b60008060006111617f00000000000000000000000000000000000000000000000000000000000000008f8f613411565b9050600087611170578c611174565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156111ea57600080fd5b505af11580156111fe573d6000803e3d6000fd5b505050506112118f8f8f8f8f8f8f61251e565b809450819550505050509b509b9950505050505050505050565b60608142811015611275576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6112d37f0000000000000000000000000000000000000000000000000000000000000000898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506132c392505050565b915086826001845103815181106112e657fe5b6020026020010151101561132b5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b61133b86866000818110610f6d57fe5b6110f08287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925061362e915050565b606081428110156113c4576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868660001981018181106113fe57fe5b905060200201356001600160a01b03166001600160a01b031614611460576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b6114be7f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061386b92505050565b915086826000815181106114ce57fe5b60200260200101511115610f5d576040805162461bcd60e51b815260206004820152601e60248201527f526f757465723a204558434553534956455f494e5055545f414d4f554e540000604482015290519081900360640190fd5b6000611537858585856139a5565b95945050505050565b600061153785858585613a83565b60008061159c7f00000000000000000000000000000000000000000000000000000000000000008d7f0000000000000000000000000000000000000000000000000000000000000000613411565b90506000866115ab578b6115af565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561162557600080fd5b505af1158015611639573d6000803e3d6000fd5b5050505061164b8d8d8d8d8d8d612016565b9d9c50505050505050505050505050565b80428110156116a4576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b611719858560008181106116b457fe5b905060200201356001600160a01b0316336117137f0000000000000000000000000000000000000000000000000000000000000000898960008181106116f657fe5b905060200201356001600160a01b03168a8a6001818110610fcc57fe5b8a6134d1565b60008585600019810181811061172b57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561178757600080fd5b505afa15801561179b573d6000803e3d6000fd5b505050506040513d60208110156117b157600080fd5b505160408051602088810282810182019093528882529293506117f3929091899189918291850190849080828437600092019190915250889250613b61915050565b86611896828888600019810181811061180857fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186457600080fd5b505afa158015611878573d6000803e3d6000fd5b505050506040513d602081101561188e57600080fd5b505190613ec8565b10156118d35760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b5050505050505050565b8042811015611925576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168585600019810181811061195f57fe5b905060200201356001600160a01b03166001600160a01b0316146119c1576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b6119d1858560008181106116b457fe5b611a0f858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613b61915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611a7e57600080fd5b505afa158015611a92573d6000803e3d6000fd5b505050506040513d6020811015611aa857600080fd5b5051905086811015611aeb5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611b5157600080fd5b505af1158015611b65573d6000803e3d6000fd5b505050506118d384826131cb565b60608142811015611bbd576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686866000818110611bf457fe5b905060200201356001600160a01b03166001600160a01b031614611c56576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b611cb47f0000000000000000000000000000000000000000000000000000000000000000348888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506132c392505050565b91508682600184510381518110611cc757fe5b60200260200101511015611d0c5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db083600081518110611d4857fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611d7b57600080fd5b505af1158015611d8f573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb611df47f0000000000000000000000000000000000000000000000000000000000000000898960008181106116f657fe5b84600081518110611e0157fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611e4f57600080fd5b505af1158015611e63573d6000803e3d6000fd5b505050506040513d6020811015611e7957600080fd5b5051611e8157fe5b611ec08287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925061362e915050565b5095945050505050565b60608142811015611f14576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b611f727f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061386b92505050565b91508682600081518110611f8257fe5b6020026020010151111561132b576040805162461bcd60e51b815260206004820152601e60248201527f526f757465723a204558434553534956455f494e5055545f414d4f554e540000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b600061200e848484613f18565b949350505050565b60008142811015612060576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b61208f887f0000000000000000000000000000000000000000000000000000000000000000898989308961251e565b90508092505061211888858a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156120e757600080fd5b505afa1580156120fb573d6000803e3d6000fd5b505050506040513d602081101561211157600080fd5b5051613061565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561217e57600080fd5b505af1158015612192573d6000803e3d6000fd5b505050506110f084836131cb565b80428110156121e8576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168585600081811061221f57fe5b905060200201356001600160a01b03166001600160a01b031614612281576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156122e157600080fd5b505af11580156122f5573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb61235a7f0000000000000000000000000000000000000000000000000000000000000000898960008181106116f657fe5b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156123a157600080fd5b505af11580156123b5573d6000803e3d6000fd5b505050506040513d60208110156123cb57600080fd5b50516123d357fe5b6000868660001981018181106123e557fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561244157600080fd5b505afa158015612455573d6000803e3d6000fd5b505050506040513d602081101561246b57600080fd5b505160408051602089810282810182019093528982529293506124ad9290918a918a918291850190849080828437600092019190915250899250613b61915050565b8761189682898960001981018181106124c257fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186457600080fd5b6000808242811015612569576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b60006125967f00000000000000000000000000000000000000000000000000000000000000008c8c613411565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b1580156125f157600080fd5b505af1158015612605573d6000803e3d6000fd5b505050506040513d602081101561261b57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561266857600080fd5b505af115801561267c573d6000803e3d6000fd5b505050506040513d604081101561269257600080fd5b508051602090910151909250905060006126ac8e8e613fd4565b509050806001600160a01b03168e6001600160a01b0316146126cf5781836126d2565b82825b90975095508a87101561272c576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f415f414d4f554e54000000604482015290519081900360640190fd5b89861015612781576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f425f414d4f554e54000000604482015290519081900360640190fd5b505050505097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606111287f000000000000000000000000000000000000000000000000000000000000000084846132c3565b60008060006128337f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000613411565b9050600087612842578c612846565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156128bc57600080fd5b505af11580156128d0573d6000803e3d6000fd5b505050506128e28e8e8e8e8e8e610ca3565b909f909e509c50505050505050505050505050565b60008060008342811015612944576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6129528c8c8c8c8c8c6140c8565b909450925060006129847f00000000000000000000000000000000000000000000000000000000000000008e8e613411565b90506129928d3383886134d1565b61299e8c3383876134d1565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156129ed57600080fd5b505af1158015612a01573d6000803e3d6000fd5b505050506040513d6020811015612a1757600080fd5b5051949d939c50939a509198505050505050505050565b60008060008342811015612a7b576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b612aa98a7f00000000000000000000000000000000000000000000000000000000000000008b348c8c6140c8565b90945092506000612afb7f00000000000000000000000000000000000000000000000000000000000000008c7f0000000000000000000000000000000000000000000000000000000000000000613411565b9050612b098b3383886134d1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015612b6457600080fd5b505af1158015612b78573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612bf457600080fd5b505af1158015612c08573d6000803e3d6000fd5b505050506040513d6020811015612c1e57600080fd5b5051612c2657fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015612c7557600080fd5b505af1158015612c89573d6000803e3d6000fd5b505050506040513d6020811015612c9f57600080fd5b5051925034841015612cb757612cb7338534036131cb565b505096509650969350505050565b60608142811015612d0f576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686866000818110612d4657fe5b905060200201356001600160a01b03166001600160a01b031614612da8576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b612e067f00000000000000000000000000000000000000000000000000000000000000008888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061386b92505050565b91503482600081518110612e1657fe5b60200260200101511115612e71576040805162461bcd60e51b815260206004820152601e60248201527f526f757465723a204558434553534956455f494e5055545f414d4f554e540000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db083600081518110612ead57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015612ee057600080fd5b505af1158015612ef4573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb612f597f0000000000000000000000000000000000000000000000000000000000000000898960008181106116f657fe5b84600081518110612f6657fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612fb457600080fd5b505af1158015612fc8573d6000803e3d6000fd5b505050506040513d6020811015612fde57600080fd5b5051612fe657fe5b6130258287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925061362e915050565b8160008151811061303257fe5b6020026020010151341115611ec057611ec0338360008151811061305257fe5b602002602001015134036131cb565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b602083106130de5780518252601f1990920191602091820191016130bf565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613140576040519150601f19603f3d011682016040523d82523d6000602084013e613145565b606091505b5091509150818015613173575080511580613173575080806020019051602081101561317057600080fd5b50515b6131c4576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106132175780518252601f1990920191602091820191016131f8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613279576040519150601f19603f3d011682016040523d82523d6000602084013e61327e565b606091505b50509050806132be5760405162461bcd60e51b81526004018080602001828103825260238152602001806146a76023913960400191505060405180910390fd5b505050565b6060600282511015613318576040805162461bcd60e51b81526020600482015260196024820152780a0c2d2e498d2c4e4c2e4f27440929cac82989288bea082a89603b1b604482015290519081900360640190fd5b815167ffffffffffffffff8111801561333057600080fd5b5060405190808252806020026020018201604052801561335a578160200160208202803683370190505b509050828160008151811061336b57fe5b60200260200101818152505060005b60018351038110156134095760008060006133bf8887868151811061339b57fe5b60200260200101518887600101815181106133b257fe5b6020026020010151614385565b9250925092506133e48585815181106133d457fe5b60200260200101518484846139a5565b8585600101815181106133f357fe5b602090810291909101015250505060010161337a565b509392505050565b60008060006134208585613fd4565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fb174fb9703cd825ac38ca3cf781a2750d5ee57f4268806e0bca9bcd3d74b67b5609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106135565780518252601f199092019160209182019101613537565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146135b8576040519150601f19603f3d011682016040523d82523d6000602084013e6135bd565b606091505b50915091508180156135eb5750805115806135eb57508080602001905160208110156135e857600080fd5b50515b6136265760405162461bcd60e51b81526004018080602001828103825260248152602001806146ca6024913960400191505060405180910390fd5b505050505050565b60005b60018351038110156138655760008084838151811061364c57fe5b602002602001015185846001018151811061366357fe5b602002602001015191509150600061367b8383613fd4565b509050600087856001018151811061368f57fe5b60200260200101519050600080836001600160a01b0316866001600160a01b0316146136bd578260006136c1565b6000835b91509150600060028a510388106136d85788613719565b6137197f0000000000000000000000000000000000000000000000000000000000000000878c8b6002018151811061370c57fe5b6020026020010151613411565b90506137467f00000000000000000000000000000000000000000000000000000000000000008888613411565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015613783576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156137eb5781810151838201526020016137d3565b50505050905090810190601f1680156138185780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561383a57600080fd5b505af115801561384e573d6000803e3d6000fd5b505060019099019850613631975050505050505050565b50505050565b60606002825110156138c0576040805162461bcd60e51b81526020600482015260196024820152780a0c2d2e498d2c4e4c2e4f27440929cac82989288bea082a89603b1b604482015290519081900360640190fd5b815167ffffffffffffffff811180156138d857600080fd5b50604051908082528060200260200182016040528015613902578160200160208202803683370190505b509050828160018351038151811061391657fe5b60209081029190910101528151600019015b801561340957600080600061395a8887600187038151811061394657fe5b60200260200101518887815181106133b257fe5b92509250925061397f85858151811061396f57fe5b6020026020010151848484613a83565b85600186038151811061398e57fe5b602090810291909101015250505060001901613928565b60008085116139e55760405162461bcd60e51b815260040180806020018281038252602681526020018061465f6026913960400191505060405180910390fd5b6000841180156139f55750600083115b613a305760405162461bcd60e51b815260040180806020018281038252602381526020018061463c6023913960400191505060405180910390fd5b6000613a4286620186a08590036144c2565b90506000613a5082866144c2565b90506000613a6b83613a6589620186a06144c2565b90614525565b9050808281613a7657fe5b0498975050505050505050565b6000808511613ac35760405162461bcd60e51b81526004018080602001828103825260278152602001806146ee6027913960400191505060405180910390fd5b600084118015613ad35750600083115b613b0e5760405162461bcd60e51b815260040180806020018281038252602381526020018061463c6023913960400191505060405180910390fd5b6000613b27620186a0613b2187896144c2565b906144c2565b90506000613b3f620186a0859003613b21878a613ec8565b9050613b566001828481613b4f57fe5b0490614525565b979650505050505050565b60005b60018351038110156132be57600080848381518110613b7f57fe5b6020026020010151858460010181518110613b9657fe5b6020026020010151915091506000613bae8383613fd4565b5090506000613bde7f00000000000000000000000000000000000000000000000000000000000000008585613411565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613c1f57600080fd5b505afa158015613c33573d6000803e3d6000fd5b505050506040513d6060811015613c4957600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a811690891614613c7f578284613c82565b83835b91509150613cd7828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186457600080fd5b9550613d498683838a6001600160a01b03166369e154046040518163ffffffff1660e01b815260040160206040518083038186803b158015613d1857600080fd5b505afa158015613d2c573d6000803e3d6000fd5b505050506040513d6020811015613d4257600080fd5b50516139a5565b945050505050600080856001600160a01b0316886001600160a01b031614613d7357826000613d77565b6000835b91509150600060028c51038a10613d8e578a613dc2565b613dc27f0000000000000000000000000000000000000000000000000000000000000000898e8d6002018151811061370c57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015613e4c578181015183820152602001613e34565b50505050905090810190601f168015613e795780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015613e9b57600080fd5b505af1158015613eaf573d6000803e3d6000fd5b50506001909b019a50613b649950505050505050505050565b8082038281111561112b576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6000808411613f6e576040805162461bcd60e51b815260206004820181905260248201527f506169724c6962726172793a20494e53554646494349454e545f414d4f554e54604482015290519081900360640190fd5b600083118015613f7e5750600082115b613fb95760405162461bcd60e51b815260040180806020018281038252602381526020018061463c6023913960400191505060405180910390fd5b82613fc485846144c2565b81613fcb57fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561403e576040805162461bcd60e51b815260206004820181905260248201527f506169724c6962726172793a204944454e544943414c5f414444524553534553604482015290519081900360640190fd5b826001600160a01b0316846001600160a01b03161061405e578284614061565b83835b90925090506001600160a01b0382166140c1576040805162461bcd60e51b815260206004820152601960248201527f506169724c6962726172793a205a45524f5f4144445245535300000000000000604482015290519081900360640190fd5b9250929050565b60008060006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439058a8a6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561415457600080fd5b505afa158015614168573d6000803e3d6000fd5b505050506040513d602081101561417e57600080fd5b50516001600160a01b0316141561423c577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c9c6539689896040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561420f57600080fd5b505af1158015614223573d6000803e3d6000fd5b505050506040513d602081101561423957600080fd5b50505b60008061426a7f00000000000000000000000000000000000000000000000000000000000000008b8b614574565b9150915081600014801561427c575080155b1561428c57879350869250614378565b6000614299898484613f18565b905087811161430257858110156142f7576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f425f414d4f554e54000000604482015290519081900360640190fd5b889450925082614376565b600061430f898486613f18565b90508981111561431b57fe5b87811015614370576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f415f414d4f554e54000000604482015290519081900360640190fd5b94508793505b505b5050965096945050505050565b6000806000806143958686613fd4565b50905060006143a5888888613411565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156143e357600080fd5b505afa1580156143f7573d6000803e3d6000fd5b505050506040513d606081101561440d57600080fd5b50805160209182015160408051631a78550160e21b815290516001600160701b0393841696509290911693506001600160a01b038616926369e1540492600480840193829003018186803b15801561446457600080fd5b505afa158015614478573d6000803e3d6000fd5b505050506040513d602081101561448e57600080fd5b505194506001600160a01b03898116908516146144ac5780826144af565b81815b909b909a50949850939650505050505050565b60008115806144dd575050808202828282816144da57fe5b04145b61112b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561112b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b60008060006145838585613fd4565b509050600080614594888888613411565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156145cc57600080fd5b505afa1580156145e0573d6000803e3d6000fd5b505050506040513d60608110156145f657600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b038781169084161461462957808261462c565b81815b9099909850965050505050505056fe506169724c6962726172793a20494e53554646494349454e545f4c4951554944495459506169724c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c45445472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544506169724c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54a26469706673582212204dcb94dbbbf0a74bfe26ca5cb9ec7f16abf995701289429733de3ea64cc27c8b64736f6c634300060c00330000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38

Deployed Bytecode

0x60806040526004361061014f5760003560e01c80638803dbee116100b6578063c45a01551161006f578063c45a015514610a1c578063d06ca61f14610a31578063ded9382a14610ae6578063e8e3370014610b59578063f305d71914610bd9578063fb3bdb4114610c1f57610188565b80638803dbee146107eb578063ad5c464814610881578063ad615dec146108b2578063af2979eb146108e8578063b6f9de951461093b578063baa2abde146109bf57610188565b806352707d8c1161010857806352707d8c1461053e578063571fd0121461058c5780635b0d5984146105c85780635c11d7951461063b578063791ac947146106d15780637ff36ab51461076757610188565b806302751cec1461018d57806318cbafe5146101f95780631f00ca74146102df5780632195995c1461039457806338ed1739146104125780634a25d94a146104a857610188565b3661018857336001600160a01b037f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38161461018657fe5b005b600080fd5b34801561019957600080fd5b506101e0600480360360c08110156101b057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135610ca3565b6040805192835260208301919091528051918290030190f35b34801561020557600080fd5b5061028f600480360360a081101561021c57600080fd5b813591602081013591810190606081016040820135600160201b81111561024257600080fd5b82018360208201111561025457600080fd5b803590602001918460208302840111600160201b8311171561027557600080fd5b91935091506001600160a01b038135169060200135610dc1565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102cb5781810151838201526020016102b3565b505050509050019250505060405180910390f35b3480156102eb57600080fd5b5061028f6004803603604081101561030257600080fd5b81359190810190604081016020820135600160201b81111561032357600080fd5b82018360208201111561033557600080fd5b803590602001918460208302840111600160201b8311171561035657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110fb945050505050565b3480156103a057600080fd5b506101e060048036036101608110156103b857600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff6101008201351690610120810135906101400135611131565b34801561041e57600080fd5b5061028f600480360360a081101561043557600080fd5b813591602081013591810190606081016040820135600160201b81111561045b57600080fd5b82018360208201111561046d57600080fd5b803590602001918460208302840111600160201b8311171561048e57600080fd5b91935091506001600160a01b03813516906020013561122b565b3480156104b457600080fd5b5061028f600480360360a08110156104cb57600080fd5b813591602081013591810190606081016040820135600160201b8111156104f157600080fd5b82018360208201111561050357600080fd5b803590602001918460208302840111600160201b8311171561052457600080fd5b91935091506001600160a01b03813516906020013561137a565b34801561054a57600080fd5b5061057a6004803603608081101561056157600080fd5b5080359060208101359060408101359060600135611529565b60408051918252519081900360200190f35b34801561059857600080fd5b5061057a600480360360808110156105af57600080fd5b5080359060208101359060408101359060600135611540565b3480156105d457600080fd5b5061057a60048036036101408110156105ec57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e0820135169061010081013590610120013561154e565b34801561064757600080fd5b50610186600480360360a081101561065e57600080fd5b813591602081013591810190606081016040820135600160201b81111561068457600080fd5b82018360208201111561069657600080fd5b803590602001918460208302840111600160201b831117156106b757600080fd5b91935091506001600160a01b03813516906020013561165c565b3480156106dd57600080fd5b50610186600480360360a08110156106f457600080fd5b813591602081013591810190606081016040820135600160201b81111561071a57600080fd5b82018360208201111561072c57600080fd5b803590602001918460208302840111600160201b8311171561074d57600080fd5b91935091506001600160a01b0381351690602001356118dd565b61028f6004803603608081101561077d57600080fd5b81359190810190604081016020820135600160201b81111561079e57600080fd5b8201836020820111156107b057600080fd5b803590602001918460208302840111600160201b831117156107d157600080fd5b91935091506001600160a01b038135169060200135611b73565b3480156107f757600080fd5b5061028f600480360360a081101561080e57600080fd5b813591602081013591810190606081016040820135600160201b81111561083457600080fd5b82018360208201111561084657600080fd5b803590602001918460208302840111600160201b8311171561086757600080fd5b91935091506001600160a01b038135169060200135611eca565b34801561088d57600080fd5b50610896611fdd565b604080516001600160a01b039092168252519081900360200190f35b3480156108be57600080fd5b5061057a600480360360608110156108d557600080fd5b5080359060208101359060400135612001565b3480156108f457600080fd5b5061057a600480360360c081101561090b57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612016565b6101866004803603608081101561095157600080fd5b81359190810190604081016020820135600160201b81111561097257600080fd5b82018360208201111561098457600080fd5b803590602001918460208302840111600160201b831117156109a557600080fd5b91935091506001600160a01b0381351690602001356121a0565b3480156109cb57600080fd5b506101e0600480360360e08110156109e257600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c0013561251e565b348015610a2857600080fd5b50610896612792565b348015610a3d57600080fd5b5061028f60048036036040811015610a5457600080fd5b81359190810190604081016020820135600160201b811115610a7557600080fd5b820183602082011115610a8757600080fd5b803590602001918460208302840111600160201b83111715610aa857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506127b6945050505050565b348015610af257600080fd5b506101e06004803603610140811015610b0a57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356127e3565b348015610b6557600080fd5b50610bbb6004803603610100811015610b7d57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e001356128f7565b60408051938452602084019290925282820152519081900360600190f35b610bbb600480360360c0811015610bef57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612a2e565b61028f60048036036080811015610c3557600080fd5b81359190810190604081016020820135600160201b811115610c5657600080fd5b820183602082011115610c6857600080fd5b803590602001918460208302840111600160201b83111715610c8957600080fd5b91935091506001600160a01b038135169060200135612cc5565b6000808242811015610cee576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b610d1d897f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad388a8a8a308a61251e565b9093509150610d2d898685613061565b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d9357600080fd5b505af1158015610da7573d6000803e3d6000fd5b50505050610db585836131cb565b50965096945050505050565b60608142811015610e0b576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad381686866000198101818110610e4557fe5b905060200201356001600160a01b03166001600160a01b031614610ea7576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b610f057f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506132c392505050565b91508682600184510381518110610f1857fe5b60200260200101511015610f5d5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b610ffb86866000818110610f6d57fe5b905060200201356001600160a01b031633610fe17f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08a8a6000818110610faf57fe5b905060200201356001600160a01b03168b8b6001818110610fcc57fe5b905060200201356001600160a01b0316613411565b85600081518110610fee57fe5b60200260200101516134d1565b61103a8287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061362e915050565b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b0316632e1a7d4d8360018551038151811061107957fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156110b757600080fd5b505af11580156110cb573d6000803e3d6000fd5b505050506110f084836001855103815181106110e357fe5b60200260200101516131cb565b509695505050505050565b60606111287f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0848461386b565b90505b92915050565b60008060006111617f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08f8f613411565b9050600087611170578c611174565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156111ea57600080fd5b505af11580156111fe573d6000803e3d6000fd5b505050506112118f8f8f8f8f8f8f61251e565b809450819550505050509b509b9950505050505050505050565b60608142811015611275576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6112d37f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506132c392505050565b915086826001845103815181106112e657fe5b6020026020010151101561132b5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b61133b86866000818110610f6d57fe5b6110f08287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925061362e915050565b606081428110156113c4576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3816868660001981018181106113fe57fe5b905060200201356001600160a01b03166001600160a01b031614611460576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b6114be7f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061386b92505050565b915086826000815181106114ce57fe5b60200260200101511115610f5d576040805162461bcd60e51b815260206004820152601e60248201527f526f757465723a204558434553534956455f494e5055545f414d4f554e540000604482015290519081900360640190fd5b6000611537858585856139a5565b95945050505050565b600061153785858585613a83565b60008061159c7f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08d7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38613411565b90506000866115ab578b6115af565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561162557600080fd5b505af1158015611639573d6000803e3d6000fd5b5050505061164b8d8d8d8d8d8d612016565b9d9c50505050505050505050505050565b80428110156116a4576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b611719858560008181106116b457fe5b905060200201356001600160a01b0316336117137f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0898960008181106116f657fe5b905060200201356001600160a01b03168a8a6001818110610fcc57fe5b8a6134d1565b60008585600019810181811061172b57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561178757600080fd5b505afa15801561179b573d6000803e3d6000fd5b505050506040513d60208110156117b157600080fd5b505160408051602088810282810182019093528882529293506117f3929091899189918291850190849080828437600092019190915250889250613b61915050565b86611896828888600019810181811061180857fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186457600080fd5b505afa158015611878573d6000803e3d6000fd5b505050506040513d602081101561188e57600080fd5b505190613ec8565b10156118d35760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b5050505050505050565b8042811015611925576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38168585600019810181811061195f57fe5b905060200201356001600160a01b03166001600160a01b0316146119c1576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b6119d1858560008181106116b457fe5b611a0f858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613b61915050565b60007f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611a7e57600080fd5b505afa158015611a92573d6000803e3d6000fd5b505050506040513d6020811015611aa857600080fd5b5051905086811015611aeb5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611b5157600080fd5b505af1158015611b65573d6000803e3d6000fd5b505050506118d384826131cb565b60608142811015611bbd576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031686866000818110611bf457fe5b905060200201356001600160a01b03166001600160a01b031614611c56576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b611cb47f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0348888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506132c392505050565b91508682600184510381518110611cc757fe5b60200260200101511015611d0c5760405162461bcd60e51b81526004018080602001828103825260228152602001806146856022913960400191505060405180910390fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663d0e30db083600081518110611d4857fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611d7b57600080fd5b505af1158015611d8f573d6000803e3d6000fd5b50505050507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663a9059cbb611df47f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0898960008181106116f657fe5b84600081518110611e0157fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611e4f57600080fd5b505af1158015611e63573d6000803e3d6000fd5b505050506040513d6020811015611e7957600080fd5b5051611e8157fe5b611ec08287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925061362e915050565b5095945050505050565b60608142811015611f14576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b611f727f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061386b92505050565b91508682600081518110611f8257fe5b6020026020010151111561132b576040805162461bcd60e51b815260206004820152601e60248201527f526f757465723a204558434553534956455f494e5055545f414d4f554e540000604482015290519081900360640190fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3881565b600061200e848484613f18565b949350505050565b60008142811015612060576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b61208f887f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38898989308961251e565b90508092505061211888858a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156120e757600080fd5b505afa1580156120fb573d6000803e3d6000fd5b505050506040513d602081101561211157600080fd5b5051613061565b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561217e57600080fd5b505af1158015612192573d6000803e3d6000fd5b505050506110f084836131cb565b80428110156121e8576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b03168585600081811061221f57fe5b905060200201356001600160a01b03166001600160a01b031614612281576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b60003490507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156122e157600080fd5b505af11580156122f5573d6000803e3d6000fd5b50505050507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663a9059cbb61235a7f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0898960008181106116f657fe5b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156123a157600080fd5b505af11580156123b5573d6000803e3d6000fd5b505050506040513d60208110156123cb57600080fd5b50516123d357fe5b6000868660001981018181106123e557fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561244157600080fd5b505afa158015612455573d6000803e3d6000fd5b505050506040513d602081101561246b57600080fd5b505160408051602089810282810182019093528982529293506124ad9290918a918a918291850190849080828437600092019190915250899250613b61915050565b8761189682898960001981018181106124c257fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186457600080fd5b6000808242811015612569576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b60006125967f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08c8c613411565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b1580156125f157600080fd5b505af1158015612605573d6000803e3d6000fd5b505050506040513d602081101561261b57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561266857600080fd5b505af115801561267c573d6000803e3d6000fd5b505050506040513d604081101561269257600080fd5b508051602090910151909250905060006126ac8e8e613fd4565b509050806001600160a01b03168e6001600160a01b0316146126cf5781836126d2565b82825b90975095508a87101561272c576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f415f414d4f554e54000000604482015290519081900360640190fd5b89861015612781576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f425f414d4f554e54000000604482015290519081900360640190fd5b505050505097509795505050505050565b7f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad081565b60606111287f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad084846132c3565b60008060006128337f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08e7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38613411565b9050600087612842578c612846565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156128bc57600080fd5b505af11580156128d0573d6000803e3d6000fd5b505050506128e28e8e8e8e8e8e610ca3565b909f909e509c50505050505050505050505050565b60008060008342811015612944576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b6129528c8c8c8c8c8c6140c8565b909450925060006129847f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08e8e613411565b90506129928d3383886134d1565b61299e8c3383876134d1565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156129ed57600080fd5b505af1158015612a01573d6000803e3d6000fd5b505050506040513d6020811015612a1757600080fd5b5051949d939c50939a509198505050505050505050565b60008060008342811015612a7b576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b612aa98a7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad388b348c8c6140c8565b90945092506000612afb7f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08c7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38613411565b9050612b098b3383886134d1565b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015612b6457600080fd5b505af1158015612b78573d6000803e3d6000fd5b50505050507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612bf457600080fd5b505af1158015612c08573d6000803e3d6000fd5b505050506040513d6020811015612c1e57600080fd5b5051612c2657fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015612c7557600080fd5b505af1158015612c89573d6000803e3d6000fd5b505050506040513d6020811015612c9f57600080fd5b5051925034841015612cb757612cb7338534036131cb565b505096509650969350505050565b60608142811015612d0f576040805162461bcd60e51b815260206004820152600f60248201526e149bdd5d195c8e8811561412549151608a1b604482015290519081900360640190fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031686866000818110612d4657fe5b905060200201356001600160a01b03166001600160a01b031614612da8576040805162461bcd60e51b81526020600482015260146024820152730a4deeae8cae47440929cac82989288bea082a8960631b604482015290519081900360640190fd5b612e067f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061386b92505050565b91503482600081518110612e1657fe5b60200260200101511115612e71576040805162461bcd60e51b815260206004820152601e60248201527f526f757465723a204558434553534956455f494e5055545f414d4f554e540000604482015290519081900360640190fd5b7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663d0e30db083600081518110612ead57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015612ee057600080fd5b505af1158015612ef4573d6000803e3d6000fd5b50505050507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031663a9059cbb612f597f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0898960008181106116f657fe5b84600081518110612f6657fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612fb457600080fd5b505af1158015612fc8573d6000803e3d6000fd5b505050506040513d6020811015612fde57600080fd5b5051612fe657fe5b6130258287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925061362e915050565b8160008151811061303257fe5b6020026020010151341115611ec057611ec0338360008151811061305257fe5b602002602001015134036131cb565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b602083106130de5780518252601f1990920191602091820191016130bf565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613140576040519150601f19603f3d011682016040523d82523d6000602084013e613145565b606091505b5091509150818015613173575080511580613173575080806020019051602081101561317057600080fd5b50515b6131c4576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106132175780518252601f1990920191602091820191016131f8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613279576040519150601f19603f3d011682016040523d82523d6000602084013e61327e565b606091505b50509050806132be5760405162461bcd60e51b81526004018080602001828103825260238152602001806146a76023913960400191505060405180910390fd5b505050565b6060600282511015613318576040805162461bcd60e51b81526020600482015260196024820152780a0c2d2e498d2c4e4c2e4f27440929cac82989288bea082a89603b1b604482015290519081900360640190fd5b815167ffffffffffffffff8111801561333057600080fd5b5060405190808252806020026020018201604052801561335a578160200160208202803683370190505b509050828160008151811061336b57fe5b60200260200101818152505060005b60018351038110156134095760008060006133bf8887868151811061339b57fe5b60200260200101518887600101815181106133b257fe5b6020026020010151614385565b9250925092506133e48585815181106133d457fe5b60200260200101518484846139a5565b8585600101815181106133f357fe5b602090810291909101015250505060010161337a565b509392505050565b60008060006134208585613fd4565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fb174fb9703cd825ac38ca3cf781a2750d5ee57f4268806e0bca9bcd3d74b67b5609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106135565780518252601f199092019160209182019101613537565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146135b8576040519150601f19603f3d011682016040523d82523d6000602084013e6135bd565b606091505b50915091508180156135eb5750805115806135eb57508080602001905160208110156135e857600080fd5b50515b6136265760405162461bcd60e51b81526004018080602001828103825260248152602001806146ca6024913960400191505060405180910390fd5b505050505050565b60005b60018351038110156138655760008084838151811061364c57fe5b602002602001015185846001018151811061366357fe5b602002602001015191509150600061367b8383613fd4565b509050600087856001018151811061368f57fe5b60200260200101519050600080836001600160a01b0316866001600160a01b0316146136bd578260006136c1565b6000835b91509150600060028a510388106136d85788613719565b6137197f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0878c8b6002018151811061370c57fe5b6020026020010151613411565b90506137467f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08888613411565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015613783576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156137eb5781810151838201526020016137d3565b50505050905090810190601f1680156138185780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561383a57600080fd5b505af115801561384e573d6000803e3d6000fd5b505060019099019850613631975050505050505050565b50505050565b60606002825110156138c0576040805162461bcd60e51b81526020600482015260196024820152780a0c2d2e498d2c4e4c2e4f27440929cac82989288bea082a89603b1b604482015290519081900360640190fd5b815167ffffffffffffffff811180156138d857600080fd5b50604051908082528060200260200182016040528015613902578160200160208202803683370190505b509050828160018351038151811061391657fe5b60209081029190910101528151600019015b801561340957600080600061395a8887600187038151811061394657fe5b60200260200101518887815181106133b257fe5b92509250925061397f85858151811061396f57fe5b6020026020010151848484613a83565b85600186038151811061398e57fe5b602090810291909101015250505060001901613928565b60008085116139e55760405162461bcd60e51b815260040180806020018281038252602681526020018061465f6026913960400191505060405180910390fd5b6000841180156139f55750600083115b613a305760405162461bcd60e51b815260040180806020018281038252602381526020018061463c6023913960400191505060405180910390fd5b6000613a4286620186a08590036144c2565b90506000613a5082866144c2565b90506000613a6b83613a6589620186a06144c2565b90614525565b9050808281613a7657fe5b0498975050505050505050565b6000808511613ac35760405162461bcd60e51b81526004018080602001828103825260278152602001806146ee6027913960400191505060405180910390fd5b600084118015613ad35750600083115b613b0e5760405162461bcd60e51b815260040180806020018281038252602381526020018061463c6023913960400191505060405180910390fd5b6000613b27620186a0613b2187896144c2565b906144c2565b90506000613b3f620186a0859003613b21878a613ec8565b9050613b566001828481613b4f57fe5b0490614525565b979650505050505050565b60005b60018351038110156132be57600080848381518110613b7f57fe5b6020026020010151858460010181518110613b9657fe5b6020026020010151915091506000613bae8383613fd4565b5090506000613bde7f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08585613411565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613c1f57600080fd5b505afa158015613c33573d6000803e3d6000fd5b505050506040513d6060811015613c4957600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a811690891614613c7f578284613c82565b83835b91509150613cd7828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561186457600080fd5b9550613d498683838a6001600160a01b03166369e154046040518163ffffffff1660e01b815260040160206040518083038186803b158015613d1857600080fd5b505afa158015613d2c573d6000803e3d6000fd5b505050506040513d6020811015613d4257600080fd5b50516139a5565b945050505050600080856001600160a01b0316886001600160a01b031614613d7357826000613d77565b6000835b91509150600060028c51038a10613d8e578a613dc2565b613dc27f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0898e8d6002018151811061370c57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015613e4c578181015183820152602001613e34565b50505050905090810190601f168015613e795780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015613e9b57600080fd5b505af1158015613eaf573d6000803e3d6000fd5b50506001909b019a50613b649950505050505050505050565b8082038281111561112b576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6000808411613f6e576040805162461bcd60e51b815260206004820181905260248201527f506169724c6962726172793a20494e53554646494349454e545f414d4f554e54604482015290519081900360640190fd5b600083118015613f7e5750600082115b613fb95760405162461bcd60e51b815260040180806020018281038252602381526020018061463c6023913960400191505060405180910390fd5b82613fc485846144c2565b81613fcb57fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561403e576040805162461bcd60e51b815260206004820181905260248201527f506169724c6962726172793a204944454e544943414c5f414444524553534553604482015290519081900360640190fd5b826001600160a01b0316846001600160a01b03161061405e578284614061565b83835b90925090506001600160a01b0382166140c1576040805162461bcd60e51b815260206004820152601960248201527f506169724c6962726172793a205a45524f5f4144445245535300000000000000604482015290519081900360640190fd5b9250929050565b60008060006001600160a01b03167f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad06001600160a01b031663e6a439058a8a6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561415457600080fd5b505afa158015614168573d6000803e3d6000fd5b505050506040513d602081101561417e57600080fd5b50516001600160a01b0316141561423c577f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad06001600160a01b031663c9c6539689896040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561420f57600080fd5b505af1158015614223573d6000803e3d6000fd5b505050506040513d602081101561423957600080fd5b50505b60008061426a7f0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad08b8b614574565b9150915081600014801561427c575080155b1561428c57879350869250614378565b6000614299898484613f18565b905087811161430257858110156142f7576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f425f414d4f554e54000000604482015290519081900360640190fd5b889450925082614376565b600061430f898486613f18565b90508981111561431b57fe5b87811015614370576040805162461bcd60e51b815260206004820152601d60248201527f526f757465723a20494e53554646494349454e545f415f414d4f554e54000000604482015290519081900360640190fd5b94508793505b505b5050965096945050505050565b6000806000806143958686613fd4565b50905060006143a5888888613411565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156143e357600080fd5b505afa1580156143f7573d6000803e3d6000fd5b505050506040513d606081101561440d57600080fd5b50805160209182015160408051631a78550160e21b815290516001600160701b0393841696509290911693506001600160a01b038616926369e1540492600480840193829003018186803b15801561446457600080fd5b505afa158015614478573d6000803e3d6000fd5b505050506040513d602081101561448e57600080fd5b505194506001600160a01b03898116908516146144ac5780826144af565b81815b909b909a50949850939650505050505050565b60008115806144dd575050808202828282816144da57fe5b04145b61112b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561112b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b60008060006145838585613fd4565b509050600080614594888888613411565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156145cc57600080fd5b505afa1580156145e0573d6000803e3d6000fd5b505050506040513d60608110156145f657600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b038781169084161461462957808261462c565b81815b9099909850965050505050505056fe506169724c6962726172793a20494e53554646494349454e545f4c4951554944495459506169724c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c45445472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544506169724c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54a26469706673582212204dcb94dbbbf0a74bfe26ca5cb9ec7f16abf995701289429733de3ea64cc27c8b64736f6c634300060c0033

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

0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38

-----Decoded View---------------
Arg [0] : _factory (address): 0x1570300e9cFEC66c9Fb0C8bc14366C86EB170Ad0
Arg [1] : _WETH (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001570300e9cfec66c9fb0c8bc14366c86eb170ad0
Arg [1] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38


Block Transaction 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
[ 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.