Contract Address Details

0xA0D11CeeF5341Adf7d1FbefA4e826E7ED6EEa9AD

Contract Name
AdaswapRouter02
Creator
0x49f4d8–d44f49 at 0x8c3ee8–670b1f
Balance
0 mADA
Tokens
Fetching tokens...
Transactions
7,977 Transactions
Transfers
7,001 Transfers
Gas Used
1,181,895,316
Last Balance Update
41826977
Contract name:
AdaswapRouter02




Optimization enabled
true
Compiler version
v0.8.13+commit.abaa5c0e




Optimization runs
999999
EVM Version
istanbul




Verified at
2022-11-25T06:15:02.714616Z

Constructor Arguments

000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f9

Arg [0] (address) : 0xe07c22c184ca252a525511b798bb8ce96abdcc5b
Arg [1] (address) : 0xae83571000af4499798d1e3b0fa0070eb3a3e3f9

              

Contract source code

pragma solidity =0.8.13;

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

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

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

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

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

// 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::safeApprove: 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::safeTransfer: 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::transferFrom: transferFrom failed'
        );
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

pragma solidity =0.8.13;

interface IAdaswapERC20 is IERC20 {

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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

interface IAdaswapPair is IAdaswapERC20 {

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

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

    function initialize(address, address) external;
}

library AdaswapLibrary {

    // 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, 'AdaswapLibrary: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'AdaswapLibrary: 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(uint160(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'da83fe29e2166f27198116fed6d80db58af433b2543a0040e0672ed25a6cbbc1' // init code hash
            )))));
    }

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

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

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

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

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

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

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

contract AdaswapRouter02 is IAdaswapRouter02 {

    address public immutable factory;
    address public immutable WETH;

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

    constructor(address _factory, address _WETH) {
        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 (IAdaswapFactory(factory).getPair(tokenA, tokenB) == address(0)) {
            IAdaswapFactory(factory).createPair(tokenA, tokenB);
        }
        (uint256 reserveA, uint256 reserveB) = AdaswapLibrary.getReserves(
            factory,
            tokenA,
            tokenB
        );
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint256 amountBOptimal = AdaswapLibrary.quote(
                amountADesired,
                reserveA,
                reserveB
            );
            if (amountBOptimal <= amountBDesired) {
                require(
                    amountBOptimal >= amountBMin,
                    'AdaswapRouter: INSUFFICIENT_B_AMOUNT'
                );
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint256 amountAOptimal = AdaswapLibrary.quote(
                    amountBDesired,
                    reserveB,
                    reserveA
                );
                assert(amountAOptimal <= amountADesired);
                require(
                    amountAOptimal >= amountAMin,
                    'AdaswapRouter: 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 = AdaswapLibrary.pairFor(factory, tokenA, tokenB);
        TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA);
        TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB);
        liquidity = IAdaswapPair(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 = AdaswapLibrary.pairFor(factory, token, WETH);
        TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken);
        IWETH(WETH).deposit{value: amountETH}();
        assert(IWETH(WETH).transfer(pair, amountETH));
        liquidity = IAdaswapPair(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 = AdaswapLibrary.pairFor(factory, tokenA, tokenB);
        IAdaswapPair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
        (uint256 amount0, uint256 amount1) = IAdaswapPair(pair).burn(to);
        (address token0, ) = AdaswapLibrary.sortTokens(tokenA, tokenB);
        (amountA, amountB) = tokenA == token0
            ? (amount0, amount1)
            : (amount1, amount0);
        require(
            amountA >= amountAMin,
            'AdaswapRouter: INSUFFICIENT_A_AMOUNT'
        );
        require(
            amountB >= amountBMin,
            'AdaswapRouter: 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 returns (uint256 amountA, uint256 amountB) {
        address pair = AdaswapLibrary.pairFor(factory, tokenA, tokenB);
        uint256 value = approveMax ? type(uint256).max : liquidity;
        IAdaswapPair(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 = AdaswapLibrary.pairFor(factory, token, WETH);
        uint256 value = approveMax ? type(uint256).max : liquidity;
        IAdaswapPair(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 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 returns (uint256 amountETH) {
        address pair = AdaswapLibrary.pairFor(factory, token, WETH);
        uint256 value = approveMax ? type(uint256).max : liquidity;
        IAdaswapPair(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, ) = AdaswapLibrary.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
                ? AdaswapLibrary.pairFor(factory, output, path[i + 2])
                : _to;
            IAdaswapPair(AdaswapLibrary.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 = AdaswapLibrary.getAmountsOut(factory, amountIn, path);
        require(
            amounts[amounts.length - 1] >= amountOutMin,
            'AdaswapRouter: INSUFFICIENT_OUTPUT_AMOUNT'
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            AdaswapLibrary.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 = AdaswapLibrary.getAmountsIn(factory, amountOut, path);
        require(
            amounts[0] <= amountInMax,
            'AdaswapRouter: EXCESSIVE_INPUT_AMOUNT'
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            AdaswapLibrary.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, 'AdaswapRouter: INVALID_PATH');
        amounts = AdaswapLibrary.getAmountsOut(factory, msg.value, path);
        require(
            amounts[amounts.length - 1] >= amountOutMin,
            'AdaswapRouter: INSUFFICIENT_OUTPUT_AMOUNT'
        );
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(
            IWETH(WETH).transfer(
                AdaswapLibrary.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, 'AdaswapRouter: INVALID_PATH');
        amounts = AdaswapLibrary.getAmountsIn(factory, amountOut, path);
        require(
            amounts[0] <= amountInMax,
            'AdaswapRouter: EXCESSIVE_INPUT_AMOUNT'
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            AdaswapLibrary.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, 'AdaswapRouter: INVALID_PATH');
        amounts = AdaswapLibrary.getAmountsOut(factory, amountIn, path);
        require(
            amounts[amounts.length - 1] >= amountOutMin,
            'AdaswapRouter: INSUFFICIENT_OUTPUT_AMOUNT'
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            AdaswapLibrary.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, 'AdaswapRouter: INVALID_PATH');
        amounts = AdaswapLibrary.getAmountsIn(factory, amountOut, path);
        require(
            amounts[0] <= msg.value,
            'AdaswapRouter: EXCESSIVE_INPUT_AMOUNT'
        );
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(
            IWETH(WETH).transfer(
                AdaswapLibrary.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, ) = AdaswapLibrary.sortTokens(input, output);
            IAdaswapPair pair = IAdaswapPair(
                AdaswapLibrary.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)) - reserveInput;
                amountOutput = AdaswapLibrary.getAmountOut(
                    amountInput,
                    reserveInput,
                    reserveOutput
                );
            }
            (uint256 amount0Out, uint256 amount1Out) = input == token0
                ? (uint256(0), amountOutput)
                : (amountOutput, uint256(0));
            address to = i < path.length - 2
                ? AdaswapLibrary.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 ensure(deadline) {
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            AdaswapLibrary.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) - balanceBefore >=
                amountOutMin,
            'AdaswapRouter: INSUFFICIENT_OUTPUT_AMOUNT'
        );
    }

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable virtual ensure(deadline) {
        require(path[0] == WETH, 'AdaswapRouter: INVALID_PATH');
        uint256 amountIn = msg.value;
        IWETH(WETH).deposit{value: amountIn}();
        assert(
            IWETH(WETH).transfer(
                AdaswapLibrary.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) - balanceBefore >= amountOutMin,
            'AdaswapRouter: INSUFFICIENT_OUTPUT_AMOUNT'
        );
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

Contract ABI

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

Deployed ByteCode

0x60806040526004361061018f5760003560e01c80638803dbee116100d6578063c45a01551161007f578063e8e3370011610059578063e8e33700146104e8578063f305d71914610523578063fb3bdb411461053657600080fd5b8063c45a015514610474578063d06ca61f146104a8578063ded9382a146104c857600080fd5b8063af2979eb116100b0578063af2979eb14610421578063b6f9de9514610441578063baa2abde1461045457600080fd5b80638803dbee14610388578063ad5c4648146103a8578063ad615dec1461040157600080fd5b80634a25d94a11610138578063791ac94711610112578063791ac947146103355780637ff36ab51461035557806385f8c2591461036857600080fd5b80634a25d94a146102d55780635b0d5984146102f55780635c11d7951461031557600080fd5b80631f00ca74116101695780631f00ca74146102755780632195995c1461029557806338ed1739146102b557600080fd5b806302751cec146101e0578063054d50d41461021a57806318cbafe51461024857600080fd5b366101db573373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f916146101d9576101d9614b98565b005b600080fd5b3480156101ec57600080fd5b506102006101fb366004614bfc565b610549565b604080519283526020830191909152015b60405180910390f35b34801561022657600080fd5b5061023a610235366004614c5a565b6106b1565b604051908152602001610211565b34801561025457600080fd5b50610268610263366004614ccb565b6106c6565b6040516102119190614d3e565b34801561028157600080fd5b50610268610290366004614db1565b610b20565b3480156102a157600080fd5b506102006102b0366004614ebf565b610b54565b3480156102c157600080fd5b506102686102d0366004614ccb565b610c8b565b3480156102e157600080fd5b506102686102f0366004614ccb565b610e63565b34801561030157600080fd5b5061023a610310366004614f69565b6110bf565b34801561032157600080fd5b506101d9610330366004614ccb565b61120a565b34801561034157600080fd5b506101d9610350366004614ccb565b611573565b610268610363366004614fff565b611904565b34801561037457600080fd5b5061023a610383366004614c5a565b611d62565b34801561039457600080fd5b506102686103a3366004614ccb565b611d6f565b3480156103b457600080fd5b506103dc7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f981565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610211565b34801561040d57600080fd5b5061023a61041c366004614c5a565b611ee6565b34801561042d57600080fd5b5061023a61043c366004614bfc565b611ef3565b6101d961044f366004614fff565b6120d8565b34801561046057600080fd5b5061020061046f366004615066565b612548565b34801561048057600080fd5b506103dc7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b81565b3480156104b457600080fd5b506102686104c3366004614db1565b61289e565b3480156104d457600080fd5b506102006104e3366004614f69565b6128cb565b3480156104f457600080fd5b506105086105033660046150d8565b612a1c565b60408051938452602084019290925290820152606001610211565b610508610531366004614bfc565b612b8a565b610268610544366004614fff565b612e8c565b60008082428110156105bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064015b60405180910390fd5b6105eb897f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f98a8a8a308a612548565b90935091506105fb898685613320565b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018390527f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b15801561068357600080fd5b505af1158015610697573d6000803e3d6000fd5b505050506106a585836134b6565b50965096945050505050565b60006106be8484846135c5565b949350505050565b60608142811015610733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f9168686610777600182615183565b8181106107865761078661519a565b905060200201602081019061079b91906151c9565b73ffffffffffffffffffffffffffffffffffffffff1614610818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f41646173776170526f757465723a20494e56414c49445f50415448000000000060448201526064016105b3565b6108767f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061374092505050565b91508682600184516108889190615183565b815181106108985761089861519a565b6020026020010151101561092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f41646173776170526f757465723a20494e53554646494349454e545f4f55545060448201527f55545f414d4f554e54000000000000000000000000000000000000000000000060648201526084016105b3565b6109f3868660008181106109445761094461519a565b905060200201602081019061095991906151c9565b336109d37f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8a8a60008181106109915761099161519a565b90506020020160208101906109a691906151c9565b8b8b60018181106109b9576109b961519a565b90506020020160208101906109ce91906151c9565b6138e5565b856000815181106109e6576109e661519a565b6020026020010151613a1a565b610a3282878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613bb9915050565b7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d8360018551610a7d9190615183565b81518110610a8d57610a8d61519a565b60200260200101516040518263ffffffff1660e01b8152600401610ab391815260200190565b600060405180830381600087803b158015610acd57600080fd5b505af1158015610ae1573d6000803e3d6000fd5b50505050610b15848360018551610af89190615183565b81518110610b0857610b0861519a565b60200260200101516134b6565b509695505050505050565b6060610b4d7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8484613de8565b9392505050565b6000806000610b847f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8f8f6138e5565b9050600087610b93578c610bb5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b6040517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101829052606481018b905260ff8916608482015260a4810188905260c4810187905290915073ffffffffffffffffffffffffffffffffffffffff83169063d505accf9060e401600060405180830381600087803b158015610c4a57600080fd5b505af1158015610c5e573d6000803e3d6000fd5b50505050610c718f8f8f8f8f8f8f612548565b809450819550505050509b509b9950505050505050505050565b60608142811015610cf8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b610d567f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061374092505050565b9150868260018451610d689190615183565b81518110610d7857610d7861519a565b60200260200101511015610e0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f41646173776170526f757465723a20494e53554646494349454e545f4f55545060448201527f55545f414d4f554e54000000000000000000000000000000000000000000000060648201526084016105b3565b610e24868660008181106109445761094461519a565b610b1582878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613bb9915050565b60608142811015610ed0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f9168686610f14600182615183565b818110610f2357610f2361519a565b9050602002016020810190610f3891906151c9565b73ffffffffffffffffffffffffffffffffffffffff1614610fb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f41646173776170526f757465723a20494e56414c49445f50415448000000000060448201526064016105b3565b6110137f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b89888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613de892505050565b915086826000815181106110295761102961519a565b6020026020010151111561092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f41646173776170526f757465723a204558434553534956455f494e5055545f4160448201527f4d4f554e5400000000000000000000000000000000000000000000000000000060648201526084016105b3565b60008061110d7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8d7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f96138e5565b905060008661111c578b61113e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b6040517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101829052606481018a905260ff8816608482015260a4810187905260c4810186905290915073ffffffffffffffffffffffffffffffffffffffff83169063d505accf9060e401600060405180830381600087803b1580156111d357600080fd5b505af11580156111e7573d6000803e3d6000fd5b505050506111f98d8d8d8d8d8d611ef3565b9d9c50505050505050505050505050565b8042811015611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b6113068585600081811061128b5761128b61519a565b90506020020160208101906112a091906151c9565b336113007f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b898960008181106112d8576112d861519a565b90506020020160208101906112ed91906151c9565b8a8a60018181106109b9576109b961519a565b8a613a1a565b60008585611315600182615183565b8181106113245761132461519a565b905060200201602081019061133991906151c9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015291909116906370a0823190602401602060405180830381865afa1580156113a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cb91906151e6565b905061140b868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250889250613f83915050565b8681878761141a600182615183565b8181106114295761142961519a565b905060200201602081019061143e91906151c9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015291909116906370a08231906024015b602060405180830381865afa1580156114ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d191906151e6565b6114db9190615183565b1015611569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f41646173776170526f757465723a20494e53554646494349454e545f4f55545060448201527f55545f414d4f554e54000000000000000000000000000000000000000000000060648201526084016105b3565b5050505050505050565b80428110156115de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f9168585611622600182615183565b8181106116315761163161519a565b905060200201602081019061164691906151c9565b73ffffffffffffffffffffffffffffffffffffffff16146116c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f41646173776170526f757465723a20494e56414c49445f50415448000000000060448201526064016105b3565b6116d98585600081811061128b5761128b61519a565b611717858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613f83915050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156117a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c891906151e6565b90508681101561185a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f41646173776170526f757465723a20494e53554646494349454e545f4f55545060448201527f55545f414d4f554e54000000000000000000000000000000000000000000000060648201526084016105b3565b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290527f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b1580156118e257600080fd5b505af11580156118f6573d6000803e3d6000fd5b5050505061156984826134b6565b60608142811015611971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff16868660008181106119bb576119bb61519a565b90506020020160208101906119d091906151c9565b73ffffffffffffffffffffffffffffffffffffffff1614611a4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f41646173776170526f757465723a20494e56414c49445f50415448000000000060448201526064016105b3565b611aab7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b3488888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061374092505050565b9150868260018451611abd9190615183565b81518110611acd57611acd61519a565b60200260200101511015611b63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f41646173776170526f757465723a20494e53554646494349454e545f4f55545060448201527f55545f414d4f554e54000000000000000000000000000000000000000000000060648201526084016105b3565b7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1663d0e30db083600081518110611bb257611bb261519a565b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611be557600080fd5b505af1158015611bf9573d6000803e3d6000fd5b50505050507f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611c717f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b898960008181106112d8576112d861519a565b84600081518110611c8457611c8461519a565b60200260200101516040518363ffffffff1660e01b8152600401611cca92919073ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6020604051808303816000875af1158015611ce9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0d91906151ff565b611d1957611d19614b98565b611d5882878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613bb9915050565b5095945050505050565b60006106be8484846142f8565b60608142811015611ddc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b611e3a7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b89888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613de892505050565b91508682600081518110611e5057611e5061519a565b60200260200101511115610e0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f41646173776170526f757465723a204558434553534956455f494e5055545f4160448201527f4d4f554e5400000000000000000000000000000000000000000000000000000060648201526084016105b3565b60006106be848484614478565b60008142811015611f60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b611f8f887f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f98989893089612548565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290935061202e91508990869073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015612005573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202991906151e6565b613320565b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018390527f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b1580156120b657600080fd5b505af11580156120ca573d6000803e3d6000fd5b50505050610b1584836134b6565b8042811015612143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff168585600081811061218d5761218d61519a565b90506020020160208101906121a291906151c9565b73ffffffffffffffffffffffffffffffffffffffff161461221f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f41646173776170526f757465723a20494e56414c49445f50415448000000000060448201526064016105b3565b60003490507f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561228c57600080fd5b505af11580156122a0573d6000803e3d6000fd5b50505050507f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6123187f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b898960008181106112d8576112d861519a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018490526044016020604051808303816000875af115801561238a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ae91906151ff565b6123ba576123ba614b98565b600086866123c9600182615183565b8181106123d8576123d861519a565b90506020020160208101906123ed91906151c9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015291909116906370a0823190602401602060405180830381865afa15801561245b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247f91906151e6565b90506124bf878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613f83915050565b878188886124ce600182615183565b8181106124dd576124dd61519a565b90506020020160208101906124f291906151c9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015291909116906370a0823190602401611490565b60008082428110156125b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b60006125e37f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8c8c6138e5565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff821660248201819052604482018c90529192506323b872dd906064016020604051808303816000875af115801561265f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268391906151ff565b506040517f89afcb4400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015260009182918416906389afcb449060240160408051808303816000875af11580156126f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061271a919061521c565b91509150600061272a8e8e6145ba565b5090508073ffffffffffffffffffffffffffffffffffffffff168e73ffffffffffffffffffffffffffffffffffffffff161461276757818361276a565b82825b90975095508a8710156127fe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41646173776170526f757465723a20494e53554646494349454e545f415f414d60448201527f4f554e540000000000000000000000000000000000000000000000000000000060648201526084016105b3565b8986101561288d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41646173776170526f757465723a20494e53554646494349454e545f425f414d60448201527f4f554e540000000000000000000000000000000000000000000000000000000060648201526084016105b3565b505050505097509795505050505050565b6060610b4d7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8484613740565b600080600061291b7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8e7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f96138e5565b905060008761292a578c61294c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b6040517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101829052606481018b905260ff8916608482015260a4810188905260c4810187905290915073ffffffffffffffffffffffffffffffffffffffff83169063d505accf9060e401600060405180830381600087803b1580156129e157600080fd5b505af11580156129f5573d6000803e3d6000fd5b50505050612a078e8e8e8e8e8e610549565b909f909e509c50505050505050505050505050565b60008060008342811015612a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b612a9a8c8c8c8c8c8c61473e565b90945092506000612acc7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8e8e6138e5565b9050612ada8d338388613a1a565b612ae68c338387613a1a565b6040517f6a62784200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152821690636a627842906024016020604051808303816000875af1158015612b54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7891906151e6565b92505050985098509895505050505050565b60008060008342811015612bfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b612c288a7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f98b348c8c61473e565b90945092506000612c7a7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8c7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f96138e5565b9050612c888b338388613a1a565b7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015612cf057600080fd5b505af1158015612d04573d6000803e3d6000fd5b50506040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018990527f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f916935063a9059cbb925060440190506020604051808303816000875af1158015612d9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc391906151ff565b612dcf57612dcf614b98565b6040517f6a62784200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152821690636a627842906024016020604051808303816000875af1158015612e3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e6191906151e6565b925083341115612e7e57612e7e33612e798634615183565b6134b6565b505096509650969350505050565b60608142811015612ef9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646173776170526f757465723a20455850495245440000000000000000000060448201526064016105b3565b7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1686866000818110612f4357612f4361519a565b9050602002016020810190612f5891906151c9565b73ffffffffffffffffffffffffffffffffffffffff1614612fd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f41646173776170526f757465723a20494e56414c49445f50415448000000000060448201526064016105b3565b6130337f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b88888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613de892505050565b915034826000815181106130495761304961519a565b602002602001015111156130df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f41646173776170526f757465723a204558434553534956455f494e5055545f4160448201527f4d4f554e5400000000000000000000000000000000000000000000000000000060648201526084016105b3565b7f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1663d0e30db08360008151811061312e5761312e61519a565b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561316157600080fd5b505af1158015613175573d6000803e3d6000fd5b50505050507f000000000000000000000000ae83571000af4499798d1e3b0fa0070eb3a3e3f973ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6131ed7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b898960008181106112d8576112d861519a565b846000815181106132005761320061519a565b60200260200101516040518363ffffffff1660e01b815260040161324692919073ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6020604051808303816000875af1158015613265573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061328991906151ff565b61329557613295614b98565b6132d482878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613bb9915050565b816000815181106132e7576132e761519a565b6020026020010151341115611d5857611d58338360008151811061330d5761330d61519a565b602002602001015134612e799190615183565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916133b7919061526c565b6000604051808303816000865af19150503d80600081146133f4576040519150601f19603f3d011682016040523d82523d6000602084013e6133f9565b606091505b509150915081801561342357508051158061342357508080602001905181019061342391906151ff565b6134af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c65640000000000000000000000000000000000000060648201526084016105b3565b5050505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516134ed919061526c565b60006040518083038185875af1925050503d806000811461352a576040519150601f19603f3d011682016040523d82523d6000602084013e61352f565b606091505b50509050806135c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c656400000000000000000000000060648201526084016105b3565b505050565b6000808411613656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f416461737761704c6962726172793a20494e53554646494349454e545f494e5060448201527f55545f414d4f554e54000000000000000000000000000000000000000000000060648201526084016105b3565b6000831180156136665750600082115b6136f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416461737761704c6962726172793a20494e53554646494349454e545f4c495160448201527f554944495459000000000000000000000000000000000000000000000000000060648201526084016105b3565b6000613700856103e5615288565b9050600061370e8483615288565b905060008261371f876103e8615288565b61372991906152c5565b905061373581836152dd565b979650505050505050565b60606002825110156137ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416461737761704c6962726172793a20494e56414c49445f504154480000000060448201526064016105b3565b815167ffffffffffffffff8111156137c8576137c8614d82565b6040519080825280602002602001820160405280156137f1578160200160208202803683370190505b50905082816000815181106138085761380861519a565b60200260200101818152505060005b600183516138259190615183565b8110156138dd57600080613878878685815181106138455761384561519a565b60200260200101518786600161385b91906152c5565b8151811061386b5761386b61519a565b6020026020010151614a99565b915091506138a08484815181106138915761389161519a565b602002602001015183836135c5565b846138ac8560016152c5565b815181106138bc576138bc61519a565b602002602001018181525050505080806138d590615318565b915050613817565b509392505050565b60008060006138f485856145ba565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016139da9291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016600183015260158201527fda83fe29e2166f27198116fed6d80db58af433b2543a0040e0672ed25a6cbbc1603582015260550190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209695505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691613ab9919061526c565b6000604051808303816000865af19150503d8060008114613af6576040519150601f19603f3d011682016040523d82523d6000602084013e613afb565b606091505b5091509150818015613b25575080511580613b25575080806020019051810190613b2591906151ff565b613bb1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c656400000000000000000000000000000060648201526084016105b3565b505050505050565b60005b60018351613bca9190615183565b811015613de257600080848381518110613be657613be661519a565b602002602001015185846001613bfc91906152c5565b81518110613c0c57613c0c61519a565b6020026020010151915091506000613c2483836145ba565b509050600087613c358660016152c5565b81518110613c4557613c4561519a565b602002602001015190506000808373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614613c8d57826000613c91565b6000835b91509150600060028a51613ca59190615183565b8810613cb15788613cff565b613cff7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b878c613ce28c60026152c5565b81518110613cf257613cf261519a565b60200260200101516138e5565b9050613d2c7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b88886138e5565b73ffffffffffffffffffffffffffffffffffffffff1663022c0d9f84848460006040519080825280601f01601f191660200182016040528015613d76576020820181803683370190505b506040518563ffffffff1660e01b8152600401613d969493929190615350565b600060405180830381600087803b158015613db057600080fd5b505af1158015613dc4573d6000803e3d6000fd5b50505050505050505050508080613dda90615318565b915050613bbc565b50505050565b6060600282511015613e56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416461737761704c6962726172793a20494e56414c49445f504154480000000060448201526064016105b3565b815167ffffffffffffffff811115613e7057613e70614d82565b604051908082528060200260200182016040528015613e99578160200160208202803683370190505b509050828160018351613eac9190615183565b81518110613ebc57613ebc61519a565b602002602001018181525050600060018351613ed89190615183565b90505b80156138dd57600080613f1e8786613ef4600187615183565b81518110613f0457613f0461519a565b602002602001015187868151811061386b5761386b61519a565b91509150613f46848481518110613f3757613f3761519a565b602002602001015183836142f8565b84613f52600186615183565b81518110613f6257613f6261519a565b60200260200101818152505050508080613f7b906153cc565b915050613edb565b60005b60018351613f949190615183565b8110156135c057600080848381518110613fb057613fb061519a565b602002602001015185846001613fc691906152c5565b81518110613fd657613fd661519a565b6020026020010151915091506000613fee83836145ba565b509050600061401e7f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b85856138e5565b90506000806000808473ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015614071573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614095919061541f565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691506000808773ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16146140f75782846140fa565b83835b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa15801561416e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061419291906151e6565b61419c9190615183565b95506141a98683836135c5565b9450505050506000808573ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146141ed578260006141f1565b6000835b91509150600060028c516142059190615183565b8a10614211578a614242565b6142427f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b898e613ce28e60026152c5565b604080516000815260208101918290527f022c0d9f0000000000000000000000000000000000000000000000000000000090915290915073ffffffffffffffffffffffffffffffffffffffff87169063022c0d9f906142aa9086908690869060248101615350565b600060405180830381600087803b1580156142c457600080fd5b505af11580156142d8573d6000803e3d6000fd5b5050505050505050505050505080806142f090615318565b915050613f86565b6000808411614389576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f416461737761704c6962726172793a20494e53554646494349454e545f4f555460448201527f5055545f414d4f554e540000000000000000000000000000000000000000000060648201526084016105b3565b6000831180156143995750600082115b614425576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416461737761704c6962726172793a20494e53554646494349454e545f4c495160448201527f554944495459000000000000000000000000000000000000000000000000000060648201526084016105b3565b60006144318585615288565b61443d906103e8615288565b9050600061444b8685615183565b614457906103e5615288565b905061446381836152dd565b61446e9060016152c5565b9695505050505050565b6000808411614509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f416461737761704c6962726172793a20494e53554646494349454e545f414d4f60448201527f554e54000000000000000000000000000000000000000000000000000000000060648201526084016105b3565b6000831180156145195750600082115b6145a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416461737761704c6962726172793a20494e53554646494349454e545f4c495160448201527f554944495459000000000000000000000000000000000000000000000000000060648201526084016105b3565b826145b08386615288565b6106be91906152dd565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603614678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f416461737761704c6962726172793a204944454e544943414c5f41444452455360448201527f534553000000000000000000000000000000000000000000000000000000000060648201526084016105b3565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16106146b25782846146b5565b83835b909250905073ffffffffffffffffffffffffffffffffffffffff8216614737576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416461737761704c6962726172793a205a45524f5f414444524553530000000060448201526064016105b3565b9250929050565b6040517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301528681166024830152600091829182917f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b9091169063e6a4390590604401602060405180830381865afa1580156147db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147ff919061546f565b73ffffffffffffffffffffffffffffffffffffffff16036148d6576040517fc9c6539600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015288811660248301527f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b169063c9c65396906044016020604051808303816000875af11580156148b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148d4919061546f565b505b6000806149047f000000000000000000000000e07c22c184ca252a525511b798bb8ce96abdcc5b8b8b614a99565b91509150816000148015614916575080155b1561492657879350869250614a8c565b6000614933898484614478565b90508781116149d657858110156149cb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41646173776170526f757465723a20494e53554646494349454e545f425f414d60448201527f4f554e540000000000000000000000000000000000000000000000000000000060648201526084016105b3565b889450925082614a8a565b60006149e3898486614478565b9050898111156149f5576149f5614b98565b87811015614a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41646173776170526f757465723a20494e53554646494349454e545f415f414d60448201527f4f554e540000000000000000000000000000000000000000000000000000000060648201526084016105b3565b94508793505b505b5050965096945050505050565b6000806000614aa885856145ba565b509050600080614ab98888886138e5565b73ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015614b03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614b27919061541f565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614614b86578082614b89565b81815b90999098509650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114614be957600080fd5b50565b8035614bf781614bc7565b919050565b60008060008060008060c08789031215614c1557600080fd5b8635614c2081614bc7565b95506020870135945060408701359350606087013592506080870135614c4581614bc7565b8092505060a087013590509295509295509295565b600080600060608486031215614c6f57600080fd5b505081359360208301359350604090920135919050565b60008083601f840112614c9857600080fd5b50813567ffffffffffffffff811115614cb057600080fd5b6020830191508360208260051b850101111561473757600080fd5b60008060008060008060a08789031215614ce457600080fd5b8635955060208701359450604087013567ffffffffffffffff811115614d0957600080fd5b614d1589828a01614c86565b9095509350506060870135614d2981614bc7565b80925050608087013590509295509295509295565b6020808252825182820181905260009190848201906040850190845b81811015614d7657835183529284019291840191600101614d5a565b50909695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060408385031215614dc457600080fd5b8235915060208084013567ffffffffffffffff80821115614de457600080fd5b818601915086601f830112614df857600080fd5b813581811115614e0a57614e0a614d82565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f83011681018181108582111715614e4d57614e4d614d82565b604052918252848201925083810185019189831115614e6b57600080fd5b938501935b82851015614e9057614e8185614bec565b84529385019392850192614e70565b8096505050505050509250929050565b8015158114614be957600080fd5b803560ff81168114614bf757600080fd5b60008060008060008060008060008060006101608c8e031215614ee157600080fd5b8b35614eec81614bc7565b9a5060208c0135614efc81614bc7565b995060408c0135985060608c0135975060808c0135965060a08c0135614f2181614bc7565b955060c08c0135945060e08c0135614f3881614ea0565b9350614f476101008d01614eae565b92506101208c013591506101408c013590509295989b509295989b9093969950565b6000806000806000806000806000806101408b8d031215614f8957600080fd5b8a35614f9481614bc7565b995060208b0135985060408b0135975060608b0135965060808b0135614fb981614bc7565b955060a08b0135945060c08b0135614fd081614ea0565b9350614fde60e08c01614eae565b92506101008b013591506101208b013590509295989b9194979a5092959850565b60008060008060006080868803121561501757600080fd5b85359450602086013567ffffffffffffffff81111561503557600080fd5b61504188828901614c86565b909550935050604086013561505581614bc7565b949793965091946060013592915050565b600080600080600080600060e0888a03121561508157600080fd5b873561508c81614bc7565b9650602088013561509c81614bc7565b955060408801359450606088013593506080880135925060a08801356150c181614bc7565b8092505060c0880135905092959891949750929550565b600080600080600080600080610100898b0312156150f557600080fd5b883561510081614bc7565b9750602089013561511081614bc7565b965060408901359550606089013594506080890135935060a0890135925060c089013561513c81614bc7565b8092505060e089013590509295985092959890939650565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561519557615195615154565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156151db57600080fd5b8135610b4d81614bc7565b6000602082840312156151f857600080fd5b5051919050565b60006020828403121561521157600080fd5b8151610b4d81614ea0565b6000806040838503121561522f57600080fd5b505080516020909101519092909150565b60005b8381101561525b578181015183820152602001615243565b83811115613de25750506000910152565b6000825161527e818460208701615240565b9190910192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156152c0576152c0615154565b500290565b600082198211156152d8576152d8615154565b500190565b600082615313577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361534957615349615154565b5060010190565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff8316604082015260806060820152600082518060808401526153978160a0850160208701615240565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160a00195945050505050565b6000816153db576153db615154565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b80516dffffffffffffffffffffffffffff81168114614bf757600080fd5b60008060006060848603121561543457600080fd5b61543d84615401565b925061544b60208501615401565b9150604084015163ffffffff8116811461546457600080fd5b809150509250925092565b60006020828403121561548157600080fd5b8151610b4d81614bc756fea264697066735822122077194a01468f00f8d5eac7c489fe3ab4edaeb73c72b5b8843891378774b295a164736f6c634300080d0033