Contract Address Details

0x639A647fbe20b6c8ac19E48E2de44ea792c62c5C

Contract Name
AnyswapV6Router
Creator
0xfa9da5–d99251 at 0x979b7e–c170ce
Balance
0 KAI ( )
Tokens
Fetching tokens...
Transactions
3,040 Transactions
Transfers
0 Transfers
Gas Used
123,914,731
Last Balance Update
23734858
Contract name:
AnyswapV6Router




Optimization enabled
true
Compiler version
v0.8.14+commit.80d49f37




Optimization runs
200
EVM Version
default




Verified at
2022-06-30T07:39:22.170959Z

Constructor Arguments

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d000000000000000000000000e19105463d6fe2f2bd86c69ad478f4b76ce49c53

Arg [0] (address) : 0x0000000000000000000000000000000000000000
Arg [1] (address) : 0xaf984e23eaa3e7967f3c5e007fbe397d8566d23d
Arg [2] (address) : 0xe19105463d6fe2f2bd86c69ad478f4b76ce49c53

              

Contract source code

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.8.2;

interface ISushiswapV2Pair {
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
}

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

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

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

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

library SushiswapV2Library {
    using SafeMathSushiswap for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'SushiswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'SushiswapV2Library: 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(uint256(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'e18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303' // init code hash
            )))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = ISushiswapV2Pair(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, 'SushiswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'SushiswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

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

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

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'SushiswapV2Library: 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, 'SushiswapV2Library: 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);
        }
    }
}

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

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

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

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

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

interface AnyswapV1ERC20 {
    function mint(address to, uint256 amount) external returns (bool);
    function burn(address from, uint256 amount) external returns (bool);
    function setMinter(address _auth) external;
    function applyMinter() external;
    function revokeMinter(address _auth) external;
    function changeVault(address newVault) external returns (bool);
    function depositVault(uint amount, address to) external returns (uint);
    function withdrawVault(address from, uint amount, address to) external returns (uint);
    function underlying() external view returns (address);
    function deposit(uint amount, address to) external returns (uint);
    function withdraw(uint amount, address to) external returns (uint);
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

library Address {
    function isContract(address account) internal view returns (bool) {
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }
}

library SafeERC20 {
    using Address for address;

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

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

    function safeApprove(IERC20 token, address spender, uint value) internal {
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

contract AnyswapV6Router {
    using SafeERC20 for IERC20;
    using SafeMathSushiswap for uint;

    address public immutable factory;
    address public immutable wNATIVE;

    bool public enableSwapTrade;
    modifier swapTradeEnabled() {
        require(enableSwapTrade, 'AnyswapV6Router: SwapTrade disabled');
        _;
    }

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

    constructor(address _factory, address _wNATIVE, address _mpc) {
        _newMPC = _mpc;
        _newMPCEffectiveTime = block.timestamp;
        factory = _factory;
        wNATIVE = _wNATIVE;
    }

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

    address private _oldMPC;
    address private _newMPC;
    uint256 private _newMPCEffectiveTime;


    event LogChangeMPC(address indexed oldMPC, address indexed newMPC, uint indexed effectiveTime, uint chainID);
    event LogChangeRouter(address indexed oldRouter, address indexed newRouter, uint chainID);
    event LogAnySwapIn(bytes32 indexed txhash, address indexed token, address indexed to, uint amount, uint fromChainID, uint toChainID);
    event LogAnySwapOut(address indexed token, address indexed from, address indexed to, uint amount, uint fromChainID, uint toChainID);
    event LogAnySwapOut(address indexed token, address indexed from, string to, uint amount, uint fromChainID, uint toChainID);
    event LogAnySwapTradeTokensForTokens(address[] path, address indexed from, address indexed to, uint amountIn, uint amountOutMin, uint fromChainID, uint toChainID);
    event LogAnySwapTradeTokensForNative(address[] path, address indexed from, address indexed to, uint amountIn, uint amountOutMin, uint fromChainID, uint toChainID);

    modifier onlyMPC() {
        require(msg.sender == mpc(), "AnyswapV3Router: FORBIDDEN");
        _;
    }

    function mpc() public view returns (address) {
        if (block.timestamp >= _newMPCEffectiveTime) {
            return _newMPC;
        }
        return _oldMPC;
    }

    function cID() public view returns (uint id) {
        assembly {id := chainid()}
    }

    function setEnableSwapTrade(bool enable) external onlyMPC {
        enableSwapTrade = enable;
    }

    function changeMPC(address newMPC) public onlyMPC returns (bool) {
        require(newMPC != address(0), "AnyswapV3Router: address(0x0)");
        _oldMPC = mpc();
        _newMPC = newMPC;
        _newMPCEffectiveTime = block.timestamp + 2*24*3600;
        emit LogChangeMPC(_oldMPC, _newMPC, _newMPCEffectiveTime, cID());
        return true;
    }

    function changeVault(address token, address newVault) public onlyMPC returns (bool) {
        require(newVault != address(0), "AnyswapV3Router: address(0x0)");
        return AnyswapV1ERC20(token).changeVault(newVault);
    }

    function setMinter(address token, address _auth) external onlyMPC {
        return AnyswapV1ERC20(token).setMinter(_auth);
    }

    function applyMinter(address token) external onlyMPC {
        return AnyswapV1ERC20(token).applyMinter();
    }

    function revokeMinter(address token, address _auth) external onlyMPC {
        return AnyswapV1ERC20(token).revokeMinter(_auth);
    }

    function _anySwapOut(address from, address token, address to, uint amount, uint toChainID) internal {
        AnyswapV1ERC20(token).burn(from, amount);
        emit LogAnySwapOut(token, from, to, amount, cID(), toChainID);
    }

    // Swaps `amount` `token` from this chain to `toChainID` chain with recipient `to`
    function anySwapOut(address token, address to, uint amount, uint toChainID) external {
        _anySwapOut(msg.sender, token, to, amount, toChainID);
    }

    // Swaps `amount` `token` from this chain to `toChainID` chain with recipient `to` by minting with `underlying`
    function anySwapOutUnderlying(address token, address to, uint amount, uint toChainID) external {
        IERC20(AnyswapV1ERC20(token).underlying()).safeTransferFrom(msg.sender, token, amount);
        emit LogAnySwapOut(token, msg.sender, to, amount, cID(), toChainID);
    }

    function anySwapOutNative(address token, address to, uint toChainID) external payable {
        require(AnyswapV1ERC20(token).underlying() == wNATIVE, "AnyswapV3Router: underlying is not wNATIVE");
        IwNATIVE(wNATIVE).deposit{value: msg.value}();
        assert(IwNATIVE(wNATIVE).transfer(token, msg.value));
        emit LogAnySwapOut(token, msg.sender, to, msg.value, cID(), toChainID);
    }

    function anySwapOut(address[] calldata tokens, address[] calldata to, uint[] calldata amounts, uint[] calldata toChainIDs) external {
        for (uint i = 0; i < tokens.length; i++) {
            _anySwapOut(msg.sender, tokens[i], to[i], amounts[i], toChainIDs[i]);
        }
    }

    function anySwapOut(address token, string memory to, uint amount, uint toChainID) external {
        AnyswapV1ERC20(token).burn(msg.sender, amount);
        emit LogAnySwapOut(token, msg.sender, to, amount, cID(), toChainID);
    }

    function anySwapOutUnderlying(address token, string memory to, uint amount, uint toChainID) external {
        IERC20(AnyswapV1ERC20(token).underlying()).safeTransferFrom(msg.sender, token, amount);
        emit LogAnySwapOut(token, msg.sender, to, amount, cID(), toChainID);
    }

    function anySwapOutNative(address token, string memory to, uint toChainID) external payable {
        require(AnyswapV1ERC20(token).underlying() == wNATIVE, "AnyswapV3Router: underlying is not wNATIVE");
        IwNATIVE(wNATIVE).deposit{value: msg.value}();
        assert(IwNATIVE(wNATIVE).transfer(token, msg.value));
        emit LogAnySwapOut(token, msg.sender, to, msg.value, cID(), toChainID);
    }

    // swaps `amount` `token` in `fromChainID` to `to` on this chainID
    function _anySwapIn(bytes32 txs, address token, address to, uint amount, uint fromChainID) internal {
        AnyswapV1ERC20(token).mint(to, amount);
        emit LogAnySwapIn(txs, token, to, amount, fromChainID, cID());
    }

    // swaps `amount` `token` in `fromChainID` to `to` on this chainID
    // triggered by `anySwapOut`
    function anySwapIn(bytes32 txs, address token, address to, uint amount, uint fromChainID) external onlyMPC {
        _anySwapIn(txs, token, to, amount, fromChainID);
    }

    // swaps `amount` `token` in `fromChainID` to `to` on this chainID with `to` receiving `underlying`
    function anySwapInUnderlying(bytes32 txs, address token, address to, uint amount, uint fromChainID) external onlyMPC {
        _anySwapIn(txs, token, to, amount, fromChainID);
        AnyswapV1ERC20(token).withdrawVault(to, amount, to);
    }

    // swaps `amount` `token` in `fromChainID` to `to` on this chainID with `to` receiving `underlying` if possible
    function anySwapInAuto(bytes32 txs, address token, address to, uint amount, uint fromChainID) external onlyMPC {
        _anySwapIn(txs, token, to, amount, fromChainID);
        AnyswapV1ERC20 _anyToken = AnyswapV1ERC20(token);
        address _underlying = _anyToken.underlying();
        if (_underlying != address(0) && IERC20(_underlying).balanceOf(token) >= amount) {
            if (_underlying == wNATIVE) {
                _anyToken.withdrawVault(to, amount, address(this));
                IwNATIVE(wNATIVE).withdraw(amount);
                TransferHelper.safeTransferNative(to, amount);
            } else {
                _anyToken.withdrawVault(to, amount, to);
            }
        }
    }

    function depositNative(address token, address to) external payable returns (uint) {
        require(AnyswapV1ERC20(token).underlying() == wNATIVE, "AnyswapV3Router: underlying is not wNATIVE");
        IwNATIVE(wNATIVE).deposit{value: msg.value}();
        assert(IwNATIVE(wNATIVE).transfer(token, msg.value));
        AnyswapV1ERC20(token).depositVault(msg.value, to);
        return msg.value;
    }

    function withdrawNative(address token, uint amount, address to) external returns (uint) {
        require(AnyswapV1ERC20(token).underlying() == wNATIVE, "AnyswapV3Router: underlying is not wNATIVE");
        AnyswapV1ERC20(token).withdrawVault(msg.sender, amount, address(this));
        IwNATIVE(wNATIVE).withdraw(amount);
        TransferHelper.safeTransferNative(to, amount);
        return amount;
    }

    // extracts mpc fee from bridge fees
    function anySwapFeeTo(address token, uint amount) external onlyMPC {
        address _mpc = mpc();
        AnyswapV1ERC20(token).mint(_mpc, amount);
        AnyswapV1ERC20(token).withdrawVault(_mpc, amount, _mpc);
    }

    function anySwapIn(bytes32[] calldata txs, address[] calldata tokens, address[] calldata to, uint256[] calldata amounts, uint[] calldata fromChainIDs) external onlyMPC {
        for (uint i = 0; i < tokens.length; i++) {
            _anySwapIn(txs[i], tokens[i], to[i], amounts[i], fromChainIDs[i]);
        }
    }

    // **** SWAP ****
    // requires the initial amount to have already been sent to the first pair
    function _swap(uint[] memory amounts, address[] memory path, address _to) internal virtual {
        for (uint i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0,) = SushiswapV2Library.sortTokens(input, output);
            uint amountOut = amounts[i + 1];
            (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOut) : (amountOut, uint(0));
            address to = i < path.length - 2 ? SushiswapV2Library.pairFor(factory, output, path[i + 2]) : _to;
            ISushiswapV2Pair(SushiswapV2Library.pairFor(factory, input, output)).swap(
                amount0Out, amount1Out, to, new bytes(0)
            );
        }
    }

    // sets up a cross-chain trade from this chain to `toChainID` for `path` trades to `to`
    function anySwapOutExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline,
        uint toChainID
    ) external virtual swapTradeEnabled ensure(deadline) {
        AnyswapV1ERC20(path[0]).burn(msg.sender, amountIn);
        emit LogAnySwapTradeTokensForTokens(path, msg.sender, to, amountIn, amountOutMin, cID(), toChainID);
    }

    // sets up a cross-chain trade from this chain to `toChainID` for `path` trades to `to`
    function anySwapOutExactTokensForTokensUnderlying(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline,
        uint toChainID
    ) external virtual swapTradeEnabled ensure(deadline) {
        IERC20(AnyswapV1ERC20(path[0]).underlying()).safeTransferFrom(msg.sender, path[0], amountIn);
        AnyswapV1ERC20(path[0]).depositVault(amountIn, msg.sender);
        AnyswapV1ERC20(path[0]).burn(msg.sender, amountIn);
        emit LogAnySwapTradeTokensForTokens(path, msg.sender, to, amountIn, amountOutMin, cID(), toChainID);
    }

    // Swaps `amounts[path.length-1]` `path[path.length-1]` to `to` on this chain
    // Triggered by `anySwapOutExactTokensForTokens`
    function anySwapInExactTokensForTokens(
        bytes32 txs,
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline,
        uint fromChainID
    ) external onlyMPC virtual swapTradeEnabled ensure(deadline) returns (uint[] memory amounts) {
        amounts = SushiswapV2Library.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'SushiswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        _anySwapIn(txs, path[0], SushiswapV2Library.pairFor(factory, path[0], path[1]), amounts[0], fromChainID);
        _swap(amounts, path, to);
    }

    // sets up a cross-chain trade from this chain to `toChainID` for `path` trades to `to`
    function anySwapOutExactTokensForNative(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline,
        uint toChainID
    ) external virtual swapTradeEnabled ensure(deadline) {
        AnyswapV1ERC20(path[0]).burn(msg.sender, amountIn);
        emit LogAnySwapTradeTokensForNative(path, msg.sender, to, amountIn, amountOutMin, cID(), toChainID);
    }

    // sets up a cross-chain trade from this chain to `toChainID` for `path` trades to `to`
    function anySwapOutExactTokensForNativeUnderlying(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline,
        uint toChainID
    ) external virtual swapTradeEnabled ensure(deadline) {
        IERC20(AnyswapV1ERC20(path[0]).underlying()).safeTransferFrom(msg.sender, path[0], amountIn);
        AnyswapV1ERC20(path[0]).depositVault(amountIn, msg.sender);
        AnyswapV1ERC20(path[0]).burn(msg.sender, amountIn);
        emit LogAnySwapTradeTokensForNative(path, msg.sender, to, amountIn, amountOutMin, cID(), toChainID);
    }

    // Swaps `amounts[path.length-1]` `path[path.length-1]` to `to` on this chain
    // Triggered by `anySwapOutExactTokensForNative`
    function anySwapInExactTokensForNative(
        bytes32 txs,
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline,
        uint fromChainID
    ) external onlyMPC virtual swapTradeEnabled ensure(deadline) returns (uint[] memory amounts) {
        require(path[path.length - 1] == wNATIVE, 'AnyswapV3Router: INVALID_PATH');
        amounts = SushiswapV2Library.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'AnyswapV3Router: INSUFFICIENT_OUTPUT_AMOUNT');
        _anySwapIn(txs, path[0],  SushiswapV2Library.pairFor(factory, path[0], path[1]), amounts[0], fromChainID);
        _swap(amounts, path, address(this));
        IwNATIVE(wNATIVE).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferNative(to, amounts[amounts.length - 1]);
    }

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

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

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

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

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

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_factory","internalType":"address"},{"type":"address","name":"_wNATIVE","internalType":"address"},{"type":"address","name":"_mpc","internalType":"address"}]},{"type":"event","name":"LogAnySwapIn","inputs":[{"type":"bytes32","name":"txhash","internalType":"bytes32","indexed":true},{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"fromChainID","internalType":"uint256","indexed":false},{"type":"uint256","name":"toChainID","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogAnySwapOut","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"fromChainID","internalType":"uint256","indexed":false},{"type":"uint256","name":"toChainID","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogAnySwapOut","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"string","name":"to","internalType":"string","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"fromChainID","internalType":"uint256","indexed":false},{"type":"uint256","name":"toChainID","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogAnySwapTradeTokensForNative","inputs":[{"type":"address[]","name":"path","internalType":"address[]","indexed":false},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amountIn","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountOutMin","internalType":"uint256","indexed":false},{"type":"uint256","name":"fromChainID","internalType":"uint256","indexed":false},{"type":"uint256","name":"toChainID","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogAnySwapTradeTokensForTokens","inputs":[{"type":"address[]","name":"path","internalType":"address[]","indexed":false},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amountIn","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountOutMin","internalType":"uint256","indexed":false},{"type":"uint256","name":"fromChainID","internalType":"uint256","indexed":false},{"type":"uint256","name":"toChainID","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogChangeMPC","inputs":[{"type":"address","name":"oldMPC","internalType":"address","indexed":true},{"type":"address","name":"newMPC","internalType":"address","indexed":true},{"type":"uint256","name":"effectiveTime","internalType":"uint256","indexed":true},{"type":"uint256","name":"chainID","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogChangeRouter","inputs":[{"type":"address","name":"oldRouter","internalType":"address","indexed":true},{"type":"address","name":"newRouter","internalType":"address","indexed":true},{"type":"uint256","name":"chainID","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapFeeTo","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapIn","inputs":[{"type":"bytes32[]","name":"txs","internalType":"bytes32[]"},{"type":"address[]","name":"tokens","internalType":"address[]"},{"type":"address[]","name":"to","internalType":"address[]"},{"type":"uint256[]","name":"amounts","internalType":"uint256[]"},{"type":"uint256[]","name":"fromChainIDs","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapIn","inputs":[{"type":"bytes32","name":"txs","internalType":"bytes32"},{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"fromChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapInAuto","inputs":[{"type":"bytes32","name":"txs","internalType":"bytes32"},{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"fromChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"anySwapInExactTokensForNative","inputs":[{"type":"bytes32","name":"txs","internalType":"bytes32"},{"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":"uint256","name":"fromChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"anySwapInExactTokensForTokens","inputs":[{"type":"bytes32","name":"txs","internalType":"bytes32"},{"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":"uint256","name":"fromChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapInUnderlying","inputs":[{"type":"bytes32","name":"txs","internalType":"bytes32"},{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"fromChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOut","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOut","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"string","name":"to","internalType":"string"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOut","inputs":[{"type":"address[]","name":"tokens","internalType":"address[]"},{"type":"address[]","name":"to","internalType":"address[]"},{"type":"uint256[]","name":"amounts","internalType":"uint256[]"},{"type":"uint256[]","name":"toChainIDs","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOutExactTokensForNative","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":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOutExactTokensForNativeUnderlying","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":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOutExactTokensForTokens","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":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOutExactTokensForTokensUnderlying","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":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"anySwapOutNative","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"string","name":"to","internalType":"string"},{"type":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"anySwapOutNative","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOutUnderlying","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"string","name":"to","internalType":"string"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"anySwapOutUnderlying","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"toChainID","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"applyMinter","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"id","internalType":"uint256"}],"name":"cID","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"changeMPC","inputs":[{"type":"address","name":"newMPC","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"changeVault","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"newVault","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"depositNative","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"enableSwapTrade","inputs":[]},{"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":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"mpc","inputs":[]},{"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":[],"name":"revokeMinter","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"_auth","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setEnableSwapTrade","inputs":[{"type":"bool","name":"enable","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinter","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"_auth","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"wNATIVE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"withdrawNative","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x60c06040523480156200001157600080fd5b506040516200445338038062004453833981016040819052620000349162000081565b600180546001600160a01b0319166001600160a01b03928316179055426002559182166080521660a052620000cb565b80516001600160a01b03811681146200007c57600080fd5b919050565b6000806000606084860312156200009757600080fd5b620000a28462000064565b9250620000b26020850162000064565b9150620000c26040850162000064565b90509250925092565b60805160a0516142c16200019260003960008181610223015281816105590152818161084501528181610904015281816112590152818161144201528181611518015281816115ca0152818161165e01528181611afc01528181611bae01528181611c4201528181611d8a01528181611ec2015281816121680152818161221a01526122ae01526000818161060b01528181610c5801528181610e1f01528181610f37015281816113050152818161243c01528181612fe3015261303301526142c16000f3fe6080604052600436106102135760003560e01c8063825bb13c11610118578063ad615dec116100a0578063d8b9f6101161006f578063d8b9f6101461066d578063d9e35bb21461068d578063dcfb77b1146106ad578063edbdf5e2146106cd578063f75c2664146106ed57600080fd5b8063ad615dec146105d9578063c45a0155146105f9578063c604b0b81461062d578063d06ca61f1461064d57600080fd5b806387cc6e2f116100e757806387cc6e2f146105275780638fd903f51461054757806399a2f2d7146105935780639f122d6c146105a6578063a5e56571146105c657600080fd5b8063825bb13c146104a7578063832e9492146104c757806385f8c259146104e757806387bafe5f1461050757600080fd5b8063353cb3a81161019b578063540dd52c1161016a578063540dd52c146104215780635b7b018c1461043457806365782f56146104545780636a45397214610474578063701bb8911461049457600080fd5b8063353cb3a8146103975780633f88de89146103c1578063456862aa146103e157806352a397d51461040157600080fd5b80630bb57203116101e25780630bb57203146102ea5780631f00ca741461030a578063241dc2df1461033757806325121b76146103575780632fc1e7281461037757600080fd5b80630175b1c414610257578063049b4e7e14610277578063054d50d414610297578063085c6d5e146102ca57600080fd5b3661025257336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610250576102506136d5565b005b600080fd5b34801561026357600080fd5b50610250610272366004613700565b610702565b34801561028357600080fd5b50610250610292366004613809565b6109f3565b3480156102a357600080fd5b506102b76102b2366004613869565b610abb565b6040519081526020015b60405180910390f35b3480156102d657600080fd5b506102506102e53660046138a3565b610ad0565b3480156102f657600080fd5b5061025061030536600461390c565b610b1b565b34801561031657600080fd5b5061032a610325366004613989565b610c51565b6040516102c19190613a47565b34801561034357600080fd5b50610250610352366004613a8b565b610c87565b34801561036357600080fd5b50610250610372366004613ad1565b610c9a565b34801561038357600080fd5b5061032a610392366004613bc2565b610d9d565b3480156103a357600080fd5b506000546103b19060ff1681565b60405190151581526020016102c1565b3480156103cd57600080fd5b506102506103dc366004613700565b611018565b3480156103ed57600080fd5b506103b16103fc366004613c47565b6110d6565b34801561040d57600080fd5b5061032a61041c366004613bc2565b6111d2565b61025061042f366004613c80565b611516565b34801561044057600080fd5b506103b161044f366004613cd9565b611728565b34801561046057600080fd5b5061025061046f36600461390c565b61185f565b34801561048057600080fd5b5061025061048f36600461390c565b611974565b6102b76104a2366004613c47565b611af8565b3480156104b357600080fd5b506102506104c2366004613700565b611d3a565b3480156104d357600080fd5b506102b76104e2366004613cf6565b611d86565b3480156104f357600080fd5b506102b7610502366004613869565b611f38565b34801561051357600080fd5b50610250610522366004613c47565b611f45565b34801561053357600080fd5b50610250610542366004613d38565b611fd5565b34801561055357600080fd5b5061057b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102c1565b34801561059f57600080fd5b50466102b7565b3480156105b257600080fd5b506102506105c1366004613c47565b612100565b6102506105d4366004613d64565b612166565b3480156105e557600080fd5b506102b76105f4366004613869565b612382565b34801561060557600080fd5b5061057b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561063957600080fd5b50610250610648366004613809565b61238f565b34801561065957600080fd5b5061032a610668366004613989565b612435565b34801561067957600080fd5b5061025061068836600461390c565b612462565b34801561069957600080fd5b506102506106a8366004613cd9565b61256b565b3480156106b957600080fd5b506102506106c8366004613da5565b6125f5565b3480156106d957600080fd5b506102506106e8366004613a8b565b6126a6565b3480156106f957600080fd5b5061057b612742565b61070a612742565b6001600160a01b0316336001600160a01b0316146107435760405162461bcd60e51b815260040161073a90613e69565b60405180910390fd5b6107508585858585612772565b60008490506000816001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b99190613ea0565b90506001600160a01b0381161580159061083e57506040516370a0823160e01b81526001600160a01b0387811660048301528591908316906370a0823190602401602060405180830381865afa158015610817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083b9190613ebd565b10155b156109ea577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03160361097757604051620e75bb60e21b81526001600160a01b038316906239d6ec906108aa90889088903090600401613ed6565b6020604051808303816000875af11580156108c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ed9190613ebd565b50604051632e1a7d4d60e01b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b50505050610972858561284b565b6109ea565b604051620e75bb60e21b81526001600160a01b038316906239d6ec906109a590889088908290600401613ed6565b6020604051808303816000875af11580156109c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e89190613ebd565b505b50505050505050565b610a6c338584876001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5b9190613ea0565b6001600160a01b031692919061291c565b336001600160a01b0385167f409e0ad946b19f77602d6cf11d59e1796ddaa4828159a0b4fb7fa2ff6b161b798585465b86604051610aad9493929190613f51565b60405180910390a350505050565b6000610ac8848484612976565b949350505050565b610ad8612742565b6001600160a01b0316336001600160a01b031614610b085760405162461bcd60e51b815260040161073a90613e69565b6000805460ff1916911515919091179055565b60005460ff16610b3d5760405162461bcd60e51b815260040161073a90613f80565b8142811015610b5e5760405162461bcd60e51b815260040161073a90613fc3565b85856000818110610b7157610b71613ffa565b9050602002016020810190610b869190613cd9565b604051632770a7eb60e21b8152336004820152602481018a90526001600160a01b039190911690639dc29fac906044016020604051808303816000875af1158015610bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf99190614010565b506001600160a01b038416337ffea6abdf4fd32f20966dff7619354cd82cd43dc78a3bee479f04c74dbfc585b388888c8c465b89604051610c3f9695949392919061402d565b60405180910390a35050505050505050565b6060610c7e7f00000000000000000000000000000000000000000000000000000000000000008484612a44565b90505b92915050565b610c943385858585612bda565b50505050565b610ca2612742565b6001600160a01b0316336001600160a01b031614610cd25760405162461bcd60e51b815260040161073a90613e69565b60005b87811015610d9057610d7e8b8b83818110610cf257610cf2613ffa565b905060200201358a8a84818110610d0b57610d0b613ffa565b9050602002016020810190610d209190613cd9565b898985818110610d3257610d32613ffa565b9050602002016020810190610d479190613cd9565b888886818110610d5957610d59613ffa565b90506020020135878787818110610d7257610d72613ffa565b90506020020135612772565b80610d88816140ad565b915050610cd5565b5050505050505050505050565b6060610da7612742565b6001600160a01b0316336001600160a01b031614610dd75760405162461bcd60e51b815260040161073a90613e69565b60005460ff16610df95760405162461bcd60e51b815260040161073a90613f80565b8242811015610e1a5760405162461bcd60e51b815260040161073a90613fc3565b610e787f00000000000000000000000000000000000000000000000000000000000000008a898980806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612cb192505050565b9150878260018451610e8a91906140c6565b81518110610e9a57610e9a613ffa565b60200260200101511015610f065760405162461bcd60e51b815260206004820152602d60248201527f5375736869737761705632526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b606482015260840161073a565b610fcc8a88886000818110610f1d57610f1d613ffa565b9050602002016020810190610f329190613cd9565b610fab7f00000000000000000000000000000000000000000000000000000000000000008b8b6000818110610f6957610f69613ffa565b9050602002016020810190610f7e9190613cd9565b8c8c6001818110610f9157610f91613ffa565b9050602002016020810190610fa69190613cd9565b612e27565b85600081518110610fbe57610fbe613ffa565b602002602001015187612772565b61100b828888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a9250612f00915050565b5098975050505050505050565b611020612742565b6001600160a01b0316336001600160a01b0316146110505760405162461bcd60e51b815260040161073a90613e69565b61105d8585858585612772565b604051620e75bb60e21b81526001600160a01b038516906239d6ec9061108b90869086908290600401613ed6565b6020604051808303816000875af11580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ce9190613ebd565b505050505050565b60006110e0612742565b6001600160a01b0316336001600160a01b0316146111105760405162461bcd60e51b815260040161073a90613e69565b6001600160a01b0382166111665760405162461bcd60e51b815260206004820152601d60248201527f416e79737761705633526f757465723a20616464726573732830783029000000604482015260640161073a565b6040516360e232a960e01b81526001600160a01b0383811660048301528416906360e232a9906024016020604051808303816000875af11580156111ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7e9190614010565b60606111dc612742565b6001600160a01b0316336001600160a01b03161461120c5760405162461bcd60e51b815260040161073a90613e69565b60005460ff1661122e5760405162461bcd60e51b815260040161073a90613f80565b824281101561124f5760405162461bcd60e51b815260040161073a90613fc3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001687876112866001826140c6565b81811061129557611295613ffa565b90506020020160208101906112aa9190613cd9565b6001600160a01b0316146113005760405162461bcd60e51b815260206004820152601d60248201527f416e79737761705633526f757465723a20494e56414c49445f50415448000000604482015260640161073a565b61135e7f00000000000000000000000000000000000000000000000000000000000000008a898980806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612cb192505050565b915087826001845161137091906140c6565b8151811061138057611380613ffa565b602002602001015110156113ea5760405162461bcd60e51b815260206004820152602b60248201527f416e79737761705633526f757465723a20494e53554646494349454e545f4f5560448201526a1514155517d05353d5539560aa1b606482015260840161073a565b6114018a88886000818110610f1d57610f1d613ffa565b61144082888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250612f00915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836001855161147e91906140c6565b8151811061148e5761148e613ffa565b60200260200101516040518263ffffffff1660e01b81526004016114b491815260200190565b600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050505061100b8583600185516114f991906140c6565b8151811061150957611509613ffa565b602002602001015161284b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561157e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a29190613ea0565b6001600160a01b0316146115c85760405162461bcd60e51b815260040161073a906140dd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561162357600080fd5b505af1158015611637573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b0387811660048301523460248301527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925060440190506020604051808303816000875af11580156116ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cf9190614010565b6116db576116db6136d5565b336001600160a01b0384167f409e0ad946b19f77602d6cf11d59e1796ddaa4828159a0b4fb7fa2ff6b161b798434468660405161171b9493929190613f51565b60405180910390a3505050565b6000611732612742565b6001600160a01b0316336001600160a01b0316146117625760405162461bcd60e51b815260040161073a90613e69565b6001600160a01b0382166117b85760405162461bcd60e51b815260206004820152601d60248201527f416e79737761705633526f757465723a20616464726573732830783029000000604482015260640161073a565b6117c0612742565b60008054610100600160a81b0319166101006001600160a01b0393841602179055600180546001600160a01b031916918416919091179055611805426202a300614127565b60028190556001546000546001600160a01b0391821691610100909104167fcda32bc39904597666dfa9f9c845714756e1ffffad55b52e0d344673a21981214660405190815260200160405180910390a45060015b919050565b60005460ff166118815760405162461bcd60e51b815260040161073a90613f80565b81428110156118a25760405162461bcd60e51b815260040161073a90613fc3565b858560008181106118b5576118b5613ffa565b90506020020160208101906118ca9190613cd9565b604051632770a7eb60e21b8152336004820152602481018a90526001600160a01b039190911690639dc29fac906044016020604051808303816000875af1158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190614010565b506001600160a01b038416337f278277e0209c347189add7bd92411973b5f6b8644f7ac62ea1be984ce993f8f488888c8c46610c2c565b60005460ff166119965760405162461bcd60e51b815260040161073a90613f80565b81428110156119b75760405162461bcd60e51b815260040161073a90613fc3565b611a4933878760008181106119ce576119ce613ffa565b90506020020160208101906119e39190613cd9565b8a898960008181106119f7576119f7613ffa565b9050602002016020810190611a0c9190613cd9565b6001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a37573d6000803e3d6000fd5b85856000818110611a5c57611a5c613ffa565b9050602002016020810190611a719190613cd9565b604051630bebbf4d60e41b8152600481018a90523360248201526001600160a01b03919091169063bebbf4d0906044016020604051808303816000875af1158015611ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae49190613ebd565b50858560008181106118b5576118b5613ffa565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b869190613ea0565b6001600160a01b031614611bac5760405162461bcd60e51b815260040161073a906140dd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611c0757600080fd5b505af1158015611c1b573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b0387811660048301523460248301527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925060440190506020604051808303816000875af1158015611c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb39190614010565b611cbf57611cbf6136d5565b604051630bebbf4d60e41b81523460048201526001600160a01b03838116602483015284169063bebbf4d0906044016020604051808303816000875af1158015611d0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d319190613ebd565b50349392505050565b611d42612742565b6001600160a01b0316336001600160a01b031614611d725760405162461bcd60e51b815260040161073a90613e69565b611d7f8585858585612772565b5050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e149190613ea0565b6001600160a01b031614611e3a5760405162461bcd60e51b815260040161073a906140dd565b604051620e75bb60e21b81526001600160a01b038516906239d6ec90611e6890339087903090600401613ed6565b6020604051808303816000875af1158015611e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eab9190613ebd565b50604051632e1a7d4d60e01b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015611f0e57600080fd5b505af1158015611f22573d6000803e3d6000fd5b50505050611f30828461284b565b509092915050565b6000610ac8848484613102565b611f4d612742565b6001600160a01b0316336001600160a01b031614611f7d5760405162461bcd60e51b815260040161073a90613e69565b60405163cfbd488560e01b81526001600160a01b03828116600483015283169063cfbd4885906024015b600060405180830381600087803b158015611fc157600080fd5b505af11580156110ce573d6000803e3d6000fd5b611fdd612742565b6001600160a01b0316336001600160a01b03161461200d5760405162461bcd60e51b815260040161073a90613e69565b6000612017612742565b6040516340c10f1960e01b81526001600160a01b03808316600483015260248201859052919250908416906340c10f19906044016020604051808303816000875af115801561206a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208e9190614010565b50604051620e75bb60e21b81526001600160a01b038416906239d6ec906120bd90849086908290600401613ed6565b6020604051808303816000875af11580156120dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c949190613ebd565b612108612742565b6001600160a01b0316336001600160a01b0316146121385760405162461bcd60e51b815260040161073a90613e69565b604051637e51dad560e11b81526001600160a01b03828116600483015283169063fca3b5aa90602401611fa7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f29190613ea0565b6001600160a01b0316146122185760405162461bcd60e51b815260040161073a906140dd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561227357600080fd5b505af1158015612287573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b0387811660048301523460248301527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925060440190506020604051808303816000875af11580156122fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231f9190614010565b61232b5761232b6136d5565b6001600160a01b0380831690339085167f97116cf6cd4f6412bb47914d6db18da9e16ab2142f543b86e207c24fbd16b23a3446604080519283526020830191909152810186905260600160405180910390a4505050565b6000610ac88484846131cb565b604051632770a7eb60e21b8152336004820152602481018390526001600160a01b03851690639dc29fac906044016020604051808303816000875af11580156123dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124009190614010565b50336001600160a01b0385167f409e0ad946b19f77602d6cf11d59e1796ddaa4828159a0b4fb7fa2ff6b161b79858546610a9c565b6060610c7e7f00000000000000000000000000000000000000000000000000000000000000008484612cb1565b60005460ff166124845760405162461bcd60e51b815260040161073a90613f80565b81428110156124a55760405162461bcd60e51b815260040161073a90613fc3565b6124bc33878760008181106119ce576119ce613ffa565b858560008181106124cf576124cf613ffa565b90506020020160208101906124e49190613cd9565b604051630bebbf4d60e41b8152600481018a90523360248201526001600160a01b03919091169063bebbf4d0906044016020604051808303816000875af1158015612533573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125579190613ebd565b5085856000818110610b7157610b71613ffa565b612573612742565b6001600160a01b0316336001600160a01b0316146125a35760405162461bcd60e51b815260040161073a90613e69565b806001600160a01b0316630d707df86040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156125de57600080fd5b505af1158015611d7f573d6000803e3d6000fd5b50565b60005b8781101561269b57612689338a8a8481811061261657612616613ffa565b905060200201602081019061262b9190613cd9565b89898581811061263d5761263d613ffa565b90506020020160208101906126529190613cd9565b88888681811061266457612664613ffa565b9050602002013587878781811061267d5761267d613ffa565b90506020020135612bda565b80612693816140ad565b9150506125f8565b505050505050505050565b6126ea338584876001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a37573d6000803e3d6000fd5b6001600160a01b0380841690339086167f97116cf6cd4f6412bb47914d6db18da9e16ab2142f543b86e207c24fbd16b23a8546604080519283526020830191909152810186905260600160405180910390a450505050565b6000600254421061275d57506001546001600160a01b031690565b5060005461010090046001600160a01b031690565b6040516340c10f1960e01b81526001600160a01b038481166004830152602482018490528516906340c10f19906044016020604051808303816000875af11580156127c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e59190614010565b50826001600160a01b0316846001600160a01b0316867faac9ce45fe3adf5143598c4f18a369591a20a3384aedaf1b525d29127e1fcd5585856128254690565b604080519384526020840192909252908201526060015b60405180910390a45050505050565b604080516000808252602082019092526001600160a01b038416908390604051612875919061413f565b60006040518083038185875af1925050503d80600081146128b2576040519150601f19603f3d011682016040523d82523d6000602084013e6128b7565b606091505b50509050806129175760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657248656c7065723a204e41544956455f5452414e534645525f60448201526511905253115160d21b606482015260840161073a565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c9490859061325b565b60008084116129cb5760405162461bcd60e51b815260206004820152602d602482015260008051602061426c83398151915260448201526c17d25394155517d05353d55395609a1b606482015260840161073a565b6000831180156129db5750600082115b6129f75760405162461bcd60e51b815260040161073a9061415b565b6000612a05856103e56133e2565b90506000612a1382856133e2565b90506000612a2d83612a27886103e86133e2565b90613446565b9050612a3981836141a9565b979650505050505050565b6060600282511015612a985760405162461bcd60e51b815260206004820181905260248201527f53757368697377617056324c6962726172793a20494e56414c49445f50415448604482015260640161073a565b815167ffffffffffffffff811115612ab257612ab2613752565b604051908082528060200260200182016040528015612adb578160200160208202803683370190505b509050828160018351612aee91906140c6565b81518110612afe57612afe613ffa565b602002602001018181525050600060018351612b1a91906140c6565b90505b8015612bd257600080612b6d8786612b366001876140c6565b81518110612b4657612b46613ffa565b6020026020010151878681518110612b6057612b60613ffa565b6020026020010151613490565b91509150612b95848481518110612b8657612b86613ffa565b60200260200101518383613102565b84612ba16001866140c6565b81518110612bb157612bb1613ffa565b60200260200101818152505050508080612bca906141cb565b915050612b1d565b509392505050565b604051632770a7eb60e21b81526001600160a01b03868116600483015260248201849052851690639dc29fac906044016020604051808303816000875af1158015612c29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4d9190614010565b50826001600160a01b0316856001600160a01b0316856001600160a01b03167f97116cf6cd4f6412bb47914d6db18da9e16ab2142f543b86e207c24fbd16b23a85612c954690565b604080519283526020830191909152810186905260600161283c565b6060600282511015612d055760405162461bcd60e51b815260206004820181905260248201527f53757368697377617056324c6962726172793a20494e56414c49445f50415448604482015260640161073a565b815167ffffffffffffffff811115612d1f57612d1f613752565b604051908082528060200260200182016040528015612d48578160200160208202803683370190505b5090508281600081518110612d5f57612d5f613ffa565b60200260200101818152505060005b60018351612d7c91906140c6565b811015612bd257600080612dc287868581518110612d9c57612d9c613ffa565b602002602001015187866001612db29190614127565b81518110612b6057612b60613ffa565b91509150612dea848481518110612ddb57612ddb613ffa565b60200260200101518383612976565b84612df6856001614127565b81518110612e0657612e06613ffa565b60200260200101818152505050508080612e1f906140ad565b915050612d6e565b6000806000612e36858561355a565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b1660348201529193509150869060480160405160208183030381529060405280519060200120604051602001612ede9291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527fe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b60005b60018351612f1191906140c6565b811015610c9457600080848381518110612f2d57612f2d613ffa565b602002602001015185846001612f439190614127565b81518110612f5357612f53613ffa565b6020026020010151915091506000612f6b838361355a565b509050600087612f7c866001614127565b81518110612f8c57612f8c613ffa565b60200260200101519050600080836001600160a01b0316866001600160a01b031614612fba57826000612fbe565b6000835b91509150600060028a51612fd291906140c6565b8810612fde578861302c565b61302c7f0000000000000000000000000000000000000000000000000000000000000000878c61300f8c6002614127565b8151811061301f5761301f613ffa565b6020026020010151612e27565b90506130597f00000000000000000000000000000000000000000000000000000000000000008888612e27565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015613096576020820181803683370190505b506040518563ffffffff1660e01b81526004016130b694939291906141e2565b600060405180830381600087803b1580156130d057600080fd5b505af11580156130e4573d6000803e3d6000fd5b505050505050505050505080806130fa906140ad565b915050612f03565b60008084116131585760405162461bcd60e51b815260206004820152602e602482015260008051602061426c83398151915260448201526d17d3d55514155517d05353d5539560921b606482015260840161073a565b6000831180156131685750600082115b6131845760405162461bcd60e51b815260040161073a9061415b565b600061319c6103e861319686886133e2565b906133e2565b905060006131b06103e56131968689613653565b90506131c16001612a2783856141a9565b9695505050505050565b600080841161321a5760405162461bcd60e51b8152602060048201526027602482015260008051602061426c83398151915260448201526617d05353d5539560ca1b606482015260840161073a565b60008311801561322a5750600082115b6132465760405162461bcd60e51b815260040161073a9061415b565b8261325185846133e2565b610ac891906141a9565b61326d826001600160a01b031661369e565b6132b95760405162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015260640161073a565b600080836001600160a01b0316836040516132d4919061413f565b6000604051808303816000865af19150503d8060008114613311576040519150601f19603f3d011682016040523d82523d6000602084013e613316565b606091505b5091509150816133685760405162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015260640161073a565b805115610c9457808060200190518101906133839190614010565b610c945760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161073a565b60008115806134035750508082028282828161340057613400614193565b04145b610c815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015260640161073a565b80820182811015610c815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015260640161073a565b600080600061349f858561355a565b5090506000806134b0888888612e27565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156134ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135119190614226565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b03161461354857808261354b565b81815b90999098509650505050505050565b600080826001600160a01b0316846001600160a01b0316036135ce5760405162461bcd60e51b815260206004820152602760248201527f53757368697377617056324c6962726172793a204944454e544943414c5f41446044820152664452455353455360c81b606482015260840161073a565b826001600160a01b0316846001600160a01b0316106135ee5782846135f1565b83835b90925090506001600160a01b03821661364c5760405162461bcd60e51b815260206004820181905260248201527f53757368697377617056324c6962726172793a205a45524f5f41444452455353604482015260640161073a565b9250929050565b80820382811115610c815760405162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015260640161073a565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590610ac85750141592915050565b634e487b7160e01b600052600160045260246000fd5b6001600160a01b03811681146125f257600080fd5b600080600080600060a0868803121561371857600080fd5b85359450602086013561372a816136eb565b9350604086013561373a816136eb565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561379157613791613752565b604052919050565b600082601f8301126137aa57600080fd5b813567ffffffffffffffff8111156137c4576137c4613752565b6137d7601f8201601f1916602001613768565b8181528460208386010111156137ec57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561381f57600080fd5b843561382a816136eb565b9350602085013567ffffffffffffffff81111561384657600080fd5b61385287828801613799565b949794965050505060408301359260600135919050565b60008060006060848603121561387e57600080fd5b505081359360208301359350604090920135919050565b80151581146125f257600080fd5b6000602082840312156138b557600080fd5b81356138c081613895565b9392505050565b60008083601f8401126138d957600080fd5b50813567ffffffffffffffff8111156138f157600080fd5b6020830191508360208260051b850101111561364c57600080fd5b600080600080600080600060c0888a03121561392757600080fd5b8735965060208801359550604088013567ffffffffffffffff81111561394c57600080fd5b6139588a828b016138c7565b909650945050606088013561396c816136eb565b969995985093969295946080840135945060a09093013592915050565b6000806040838503121561399c57600080fd5b8235915060208084013567ffffffffffffffff808211156139bc57600080fd5b818601915086601f8301126139d057600080fd5b8135818111156139e2576139e2613752565b8060051b91506139f3848301613768565b8181529183018401918481019089841115613a0d57600080fd5b938501935b83851015613a375784359250613a27836136eb565b8282529385019390850190613a12565b8096505050505050509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613a7f57835183529284019291840191600101613a63565b50909695505050505050565b60008060008060808587031215613aa157600080fd5b8435613aac816136eb565b93506020850135613abc816136eb565b93969395505050506040820135916060013590565b60008060008060008060008060008060a08b8d031215613af057600080fd5b8a3567ffffffffffffffff80821115613b0857600080fd5b613b148e838f016138c7565b909c509a5060208d0135915080821115613b2d57600080fd5b613b398e838f016138c7565b909a50985060408d0135915080821115613b5257600080fd5b613b5e8e838f016138c7565b909850965060608d0135915080821115613b7757600080fd5b613b838e838f016138c7565b909650945060808d0135915080821115613b9c57600080fd5b50613ba98d828e016138c7565b915080935050809150509295989b9194979a5092959850565b60008060008060008060008060e0898b031215613bde57600080fd5b883597506020890135965060408901359550606089013567ffffffffffffffff811115613c0a57600080fd5b613c168b828c016138c7565b9096509450506080890135613c2a816136eb565b979a969950949793969295929450505060a08201359160c0013590565b60008060408385031215613c5a57600080fd5b8235613c65816136eb565b91506020830135613c75816136eb565b809150509250929050565b600080600060608486031215613c9557600080fd5b8335613ca0816136eb565b9250602084013567ffffffffffffffff811115613cbc57600080fd5b613cc886828701613799565b925050604084013590509250925092565b600060208284031215613ceb57600080fd5b81356138c0816136eb565b600080600060608486031215613d0b57600080fd5b8335613d16816136eb565b9250602084013591506040840135613d2d816136eb565b809150509250925092565b60008060408385031215613d4b57600080fd5b8235613d56816136eb565b946020939093013593505050565b600080600060608486031215613d7957600080fd5b8335613d84816136eb565b92506020840135613d94816136eb565b929592945050506040919091013590565b6000806000806000806000806080898b031215613dc157600080fd5b883567ffffffffffffffff80821115613dd957600080fd5b613de58c838d016138c7565b909a50985060208b0135915080821115613dfe57600080fd5b613e0a8c838d016138c7565b909850965060408b0135915080821115613e2357600080fd5b613e2f8c838d016138c7565b909650945060608b0135915080821115613e4857600080fd5b50613e558b828c016138c7565b999c989b5096995094979396929594505050565b6020808252601a908201527f416e79737761705633526f757465723a20464f5242494444454e000000000000604082015260600190565b600060208284031215613eb257600080fd5b81516138c0816136eb565b600060208284031215613ecf57600080fd5b5051919050565b6001600160a01b0393841681526020810192909252909116604082015260600190565b60005b83811015613f14578181015183820152602001613efc565b83811115610c945750506000910152565b60008151808452613f3d816020860160208601613ef9565b601f01601f19169290920160200192915050565b608081526000613f646080830187613f25565b6020830195909552506040810192909252606090910152919050565b60208082526023908201527f416e79737761705636526f757465723a205377617054726164652064697361626040820152621b195960ea1b606082015260800190565b60208082526018908201527f416e79737761705633526f757465723a20455850495245440000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561402257600080fd5b81516138c081613895565b60a0808252810186905260008760c08301825b89811015614070578235614053816136eb565b6001600160a01b0316825260209283019290910190600101614040565b50602084019790975250506040810193909352606083019190915260809091015292915050565b634e487b7160e01b600052601160045260246000fd5b6000600182016140bf576140bf614097565b5060010190565b6000828210156140d8576140d8614097565b500390565b6020808252602a908201527f416e79737761705633526f757465723a20756e6465726c79696e67206973206e6040820152696f7420774e415449564560b01b606082015260800190565b6000821982111561413a5761413a614097565b500190565b60008251614151818460208701613ef9565b9190910192915050565b6020808252602a9082015260008051602061426c8339815191526040820152695f4c495155494449545960b01b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826141c657634e487b7160e01b600052601260045260246000fd5b500490565b6000816141da576141da614097565b506000190190565b84815283602082015260018060a01b03831660408201526080606082015260006131c16080830184613f25565b80516001600160701b038116811461185a57600080fd5b60008060006060848603121561423b57600080fd5b6142448461420f565b92506142526020850161420f565b9150604084015163ffffffff81168114613d2d57600080fdfe53757368697377617056324c6962726172793a20494e53554646494349454e54a2646970667358221220574495a1c1f7fcb4ee58cc64e09183bde93506b739a4d6240eb9dbae120ae74064736f6c634300080e00330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d000000000000000000000000e19105463d6fe2f2bd86c69ad478f4b76ce49c53

Deployed ByteCode

0x6080604052600436106102135760003560e01c8063825bb13c11610118578063ad615dec116100a0578063d8b9f6101161006f578063d8b9f6101461066d578063d9e35bb21461068d578063dcfb77b1146106ad578063edbdf5e2146106cd578063f75c2664146106ed57600080fd5b8063ad615dec146105d9578063c45a0155146105f9578063c604b0b81461062d578063d06ca61f1461064d57600080fd5b806387cc6e2f116100e757806387cc6e2f146105275780638fd903f51461054757806399a2f2d7146105935780639f122d6c146105a6578063a5e56571146105c657600080fd5b8063825bb13c146104a7578063832e9492146104c757806385f8c259146104e757806387bafe5f1461050757600080fd5b8063353cb3a81161019b578063540dd52c1161016a578063540dd52c146104215780635b7b018c1461043457806365782f56146104545780636a45397214610474578063701bb8911461049457600080fd5b8063353cb3a8146103975780633f88de89146103c1578063456862aa146103e157806352a397d51461040157600080fd5b80630bb57203116101e25780630bb57203146102ea5780631f00ca741461030a578063241dc2df1461033757806325121b76146103575780632fc1e7281461037757600080fd5b80630175b1c414610257578063049b4e7e14610277578063054d50d414610297578063085c6d5e146102ca57600080fd5b3661025257336001600160a01b037f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d1614610250576102506136d5565b005b600080fd5b34801561026357600080fd5b50610250610272366004613700565b610702565b34801561028357600080fd5b50610250610292366004613809565b6109f3565b3480156102a357600080fd5b506102b76102b2366004613869565b610abb565b6040519081526020015b60405180910390f35b3480156102d657600080fd5b506102506102e53660046138a3565b610ad0565b3480156102f657600080fd5b5061025061030536600461390c565b610b1b565b34801561031657600080fd5b5061032a610325366004613989565b610c51565b6040516102c19190613a47565b34801561034357600080fd5b50610250610352366004613a8b565b610c87565b34801561036357600080fd5b50610250610372366004613ad1565b610c9a565b34801561038357600080fd5b5061032a610392366004613bc2565b610d9d565b3480156103a357600080fd5b506000546103b19060ff1681565b60405190151581526020016102c1565b3480156103cd57600080fd5b506102506103dc366004613700565b611018565b3480156103ed57600080fd5b506103b16103fc366004613c47565b6110d6565b34801561040d57600080fd5b5061032a61041c366004613bc2565b6111d2565b61025061042f366004613c80565b611516565b34801561044057600080fd5b506103b161044f366004613cd9565b611728565b34801561046057600080fd5b5061025061046f36600461390c565b61185f565b34801561048057600080fd5b5061025061048f36600461390c565b611974565b6102b76104a2366004613c47565b611af8565b3480156104b357600080fd5b506102506104c2366004613700565b611d3a565b3480156104d357600080fd5b506102b76104e2366004613cf6565b611d86565b3480156104f357600080fd5b506102b7610502366004613869565b611f38565b34801561051357600080fd5b50610250610522366004613c47565b611f45565b34801561053357600080fd5b50610250610542366004613d38565b611fd5565b34801561055357600080fd5b5061057b7f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d81565b6040516001600160a01b0390911681526020016102c1565b34801561059f57600080fd5b50466102b7565b3480156105b257600080fd5b506102506105c1366004613c47565b612100565b6102506105d4366004613d64565b612166565b3480156105e557600080fd5b506102b76105f4366004613869565b612382565b34801561060557600080fd5b5061057b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561063957600080fd5b50610250610648366004613809565b61238f565b34801561065957600080fd5b5061032a610668366004613989565b612435565b34801561067957600080fd5b5061025061068836600461390c565b612462565b34801561069957600080fd5b506102506106a8366004613cd9565b61256b565b3480156106b957600080fd5b506102506106c8366004613da5565b6125f5565b3480156106d957600080fd5b506102506106e8366004613a8b565b6126a6565b3480156106f957600080fd5b5061057b612742565b61070a612742565b6001600160a01b0316336001600160a01b0316146107435760405162461bcd60e51b815260040161073a90613e69565b60405180910390fd5b6107508585858585612772565b60008490506000816001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b99190613ea0565b90506001600160a01b0381161580159061083e57506040516370a0823160e01b81526001600160a01b0387811660048301528591908316906370a0823190602401602060405180830381865afa158015610817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083b9190613ebd565b10155b156109ea577f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b0316816001600160a01b03160361097757604051620e75bb60e21b81526001600160a01b038316906239d6ec906108aa90889088903090600401613ed6565b6020604051808303816000875af11580156108c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ed9190613ebd565b50604051632e1a7d4d60e01b8152600481018590527f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b50505050610972858561284b565b6109ea565b604051620e75bb60e21b81526001600160a01b038316906239d6ec906109a590889088908290600401613ed6565b6020604051808303816000875af11580156109c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e89190613ebd565b505b50505050505050565b610a6c338584876001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5b9190613ea0565b6001600160a01b031692919061291c565b336001600160a01b0385167f409e0ad946b19f77602d6cf11d59e1796ddaa4828159a0b4fb7fa2ff6b161b798585465b86604051610aad9493929190613f51565b60405180910390a350505050565b6000610ac8848484612976565b949350505050565b610ad8612742565b6001600160a01b0316336001600160a01b031614610b085760405162461bcd60e51b815260040161073a90613e69565b6000805460ff1916911515919091179055565b60005460ff16610b3d5760405162461bcd60e51b815260040161073a90613f80565b8142811015610b5e5760405162461bcd60e51b815260040161073a90613fc3565b85856000818110610b7157610b71613ffa565b9050602002016020810190610b869190613cd9565b604051632770a7eb60e21b8152336004820152602481018a90526001600160a01b039190911690639dc29fac906044016020604051808303816000875af1158015610bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf99190614010565b506001600160a01b038416337ffea6abdf4fd32f20966dff7619354cd82cd43dc78a3bee479f04c74dbfc585b388888c8c465b89604051610c3f9695949392919061402d565b60405180910390a35050505050505050565b6060610c7e7f00000000000000000000000000000000000000000000000000000000000000008484612a44565b90505b92915050565b610c943385858585612bda565b50505050565b610ca2612742565b6001600160a01b0316336001600160a01b031614610cd25760405162461bcd60e51b815260040161073a90613e69565b60005b87811015610d9057610d7e8b8b83818110610cf257610cf2613ffa565b905060200201358a8a84818110610d0b57610d0b613ffa565b9050602002016020810190610d209190613cd9565b898985818110610d3257610d32613ffa565b9050602002016020810190610d479190613cd9565b888886818110610d5957610d59613ffa565b90506020020135878787818110610d7257610d72613ffa565b90506020020135612772565b80610d88816140ad565b915050610cd5565b5050505050505050505050565b6060610da7612742565b6001600160a01b0316336001600160a01b031614610dd75760405162461bcd60e51b815260040161073a90613e69565b60005460ff16610df95760405162461bcd60e51b815260040161073a90613f80565b8242811015610e1a5760405162461bcd60e51b815260040161073a90613fc3565b610e787f00000000000000000000000000000000000000000000000000000000000000008a898980806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612cb192505050565b9150878260018451610e8a91906140c6565b81518110610e9a57610e9a613ffa565b60200260200101511015610f065760405162461bcd60e51b815260206004820152602d60248201527f5375736869737761705632526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b606482015260840161073a565b610fcc8a88886000818110610f1d57610f1d613ffa565b9050602002016020810190610f329190613cd9565b610fab7f00000000000000000000000000000000000000000000000000000000000000008b8b6000818110610f6957610f69613ffa565b9050602002016020810190610f7e9190613cd9565b8c8c6001818110610f9157610f91613ffa565b9050602002016020810190610fa69190613cd9565b612e27565b85600081518110610fbe57610fbe613ffa565b602002602001015187612772565b61100b828888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a9250612f00915050565b5098975050505050505050565b611020612742565b6001600160a01b0316336001600160a01b0316146110505760405162461bcd60e51b815260040161073a90613e69565b61105d8585858585612772565b604051620e75bb60e21b81526001600160a01b038516906239d6ec9061108b90869086908290600401613ed6565b6020604051808303816000875af11580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ce9190613ebd565b505050505050565b60006110e0612742565b6001600160a01b0316336001600160a01b0316146111105760405162461bcd60e51b815260040161073a90613e69565b6001600160a01b0382166111665760405162461bcd60e51b815260206004820152601d60248201527f416e79737761705633526f757465723a20616464726573732830783029000000604482015260640161073a565b6040516360e232a960e01b81526001600160a01b0383811660048301528416906360e232a9906024016020604051808303816000875af11580156111ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7e9190614010565b60606111dc612742565b6001600160a01b0316336001600160a01b03161461120c5760405162461bcd60e51b815260040161073a90613e69565b60005460ff1661122e5760405162461bcd60e51b815260040161073a90613f80565b824281101561124f5760405162461bcd60e51b815260040161073a90613fc3565b6001600160a01b037f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d1687876112866001826140c6565b81811061129557611295613ffa565b90506020020160208101906112aa9190613cd9565b6001600160a01b0316146113005760405162461bcd60e51b815260206004820152601d60248201527f416e79737761705633526f757465723a20494e56414c49445f50415448000000604482015260640161073a565b61135e7f00000000000000000000000000000000000000000000000000000000000000008a898980806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612cb192505050565b915087826001845161137091906140c6565b8151811061138057611380613ffa565b602002602001015110156113ea5760405162461bcd60e51b815260206004820152602b60248201527f416e79737761705633526f757465723a20494e53554646494349454e545f4f5560448201526a1514155517d05353d5539560aa1b606482015260840161073a565b6114018a88886000818110610f1d57610f1d613ffa565b61144082888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250612f00915050565b7f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b0316632e1a7d4d836001855161147e91906140c6565b8151811061148e5761148e613ffa565b60200260200101516040518263ffffffff1660e01b81526004016114b491815260200190565b600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050505061100b8583600185516114f991906140c6565b8151811061150957611509613ffa565b602002602001015161284b565b7f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b0316836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561157e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a29190613ea0565b6001600160a01b0316146115c85760405162461bcd60e51b815260040161073a906140dd565b7f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561162357600080fd5b505af1158015611637573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b0387811660048301523460248301527f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d16935063a9059cbb925060440190506020604051808303816000875af11580156116ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cf9190614010565b6116db576116db6136d5565b336001600160a01b0384167f409e0ad946b19f77602d6cf11d59e1796ddaa4828159a0b4fb7fa2ff6b161b798434468660405161171b9493929190613f51565b60405180910390a3505050565b6000611732612742565b6001600160a01b0316336001600160a01b0316146117625760405162461bcd60e51b815260040161073a90613e69565b6001600160a01b0382166117b85760405162461bcd60e51b815260206004820152601d60248201527f416e79737761705633526f757465723a20616464726573732830783029000000604482015260640161073a565b6117c0612742565b60008054610100600160a81b0319166101006001600160a01b0393841602179055600180546001600160a01b031916918416919091179055611805426202a300614127565b60028190556001546000546001600160a01b0391821691610100909104167fcda32bc39904597666dfa9f9c845714756e1ffffad55b52e0d344673a21981214660405190815260200160405180910390a45060015b919050565b60005460ff166118815760405162461bcd60e51b815260040161073a90613f80565b81428110156118a25760405162461bcd60e51b815260040161073a90613fc3565b858560008181106118b5576118b5613ffa565b90506020020160208101906118ca9190613cd9565b604051632770a7eb60e21b8152336004820152602481018a90526001600160a01b039190911690639dc29fac906044016020604051808303816000875af1158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190614010565b506001600160a01b038416337f278277e0209c347189add7bd92411973b5f6b8644f7ac62ea1be984ce993f8f488888c8c46610c2c565b60005460ff166119965760405162461bcd60e51b815260040161073a90613f80565b81428110156119b75760405162461bcd60e51b815260040161073a90613fc3565b611a4933878760008181106119ce576119ce613ffa565b90506020020160208101906119e39190613cd9565b8a898960008181106119f7576119f7613ffa565b9050602002016020810190611a0c9190613cd9565b6001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a37573d6000803e3d6000fd5b85856000818110611a5c57611a5c613ffa565b9050602002016020810190611a719190613cd9565b604051630bebbf4d60e41b8152600481018a90523360248201526001600160a01b03919091169063bebbf4d0906044016020604051808303816000875af1158015611ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae49190613ebd565b50858560008181106118b5576118b5613ffa565b60007f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b0316836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b869190613ea0565b6001600160a01b031614611bac5760405162461bcd60e51b815260040161073a906140dd565b7f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611c0757600080fd5b505af1158015611c1b573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b0387811660048301523460248301527f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d16935063a9059cbb925060440190506020604051808303816000875af1158015611c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb39190614010565b611cbf57611cbf6136d5565b604051630bebbf4d60e41b81523460048201526001600160a01b03838116602483015284169063bebbf4d0906044016020604051808303816000875af1158015611d0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d319190613ebd565b50349392505050565b611d42612742565b6001600160a01b0316336001600160a01b031614611d725760405162461bcd60e51b815260040161073a90613e69565b611d7f8585858585612772565b5050505050565b60007f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b0316846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e149190613ea0565b6001600160a01b031614611e3a5760405162461bcd60e51b815260040161073a906140dd565b604051620e75bb60e21b81526001600160a01b038516906239d6ec90611e6890339087903090600401613ed6565b6020604051808303816000875af1158015611e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eab9190613ebd565b50604051632e1a7d4d60e01b8152600481018490527f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015611f0e57600080fd5b505af1158015611f22573d6000803e3d6000fd5b50505050611f30828461284b565b509092915050565b6000610ac8848484613102565b611f4d612742565b6001600160a01b0316336001600160a01b031614611f7d5760405162461bcd60e51b815260040161073a90613e69565b60405163cfbd488560e01b81526001600160a01b03828116600483015283169063cfbd4885906024015b600060405180830381600087803b158015611fc157600080fd5b505af11580156110ce573d6000803e3d6000fd5b611fdd612742565b6001600160a01b0316336001600160a01b03161461200d5760405162461bcd60e51b815260040161073a90613e69565b6000612017612742565b6040516340c10f1960e01b81526001600160a01b03808316600483015260248201859052919250908416906340c10f19906044016020604051808303816000875af115801561206a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208e9190614010565b50604051620e75bb60e21b81526001600160a01b038416906239d6ec906120bd90849086908290600401613ed6565b6020604051808303816000875af11580156120dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c949190613ebd565b612108612742565b6001600160a01b0316336001600160a01b0316146121385760405162461bcd60e51b815260040161073a90613e69565b604051637e51dad560e11b81526001600160a01b03828116600483015283169063fca3b5aa90602401611fa7565b7f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b0316836001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f29190613ea0565b6001600160a01b0316146122185760405162461bcd60e51b815260040161073a906140dd565b7f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d6001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561227357600080fd5b505af1158015612287573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b0387811660048301523460248301527f000000000000000000000000af984e23eaa3e7967f3c5e007fbe397d8566d23d16935063a9059cbb925060440190506020604051808303816000875af11580156122fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231f9190614010565b61232b5761232b6136d5565b6001600160a01b0380831690339085167f97116cf6cd4f6412bb47914d6db18da9e16ab2142f543b86e207c24fbd16b23a3446604080519283526020830191909152810186905260600160405180910390a4505050565b6000610ac88484846131cb565b604051632770a7eb60e21b8152336004820152602481018390526001600160a01b03851690639dc29fac906044016020604051808303816000875af11580156123dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124009190614010565b50336001600160a01b0385167f409e0ad946b19f77602d6cf11d59e1796ddaa4828159a0b4fb7fa2ff6b161b79858546610a9c565b6060610c7e7f00000000000000000000000000000000000000000000000000000000000000008484612cb1565b60005460ff166124845760405162461bcd60e51b815260040161073a90613f80565b81428110156124a55760405162461bcd60e51b815260040161073a90613fc3565b6124bc33878760008181106119ce576119ce613ffa565b858560008181106124cf576124cf613ffa565b90506020020160208101906124e49190613cd9565b604051630bebbf4d60e41b8152600481018a90523360248201526001600160a01b03919091169063bebbf4d0906044016020604051808303816000875af1158015612533573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125579190613ebd565b5085856000818110610b7157610b71613ffa565b612573612742565b6001600160a01b0316336001600160a01b0316146125a35760405162461bcd60e51b815260040161073a90613e69565b806001600160a01b0316630d707df86040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156125de57600080fd5b505af1158015611d7f573d6000803e3d6000fd5b50565b60005b8781101561269b57612689338a8a8481811061261657612616613ffa565b905060200201602081019061262b9190613cd9565b89898581811061263d5761263d613ffa565b90506020020160208101906126529190613cd9565b88888681811061266457612664613ffa565b9050602002013587878781811061267d5761267d613ffa565b90506020020135612bda565b80612693816140ad565b9150506125f8565b505050505050505050565b6126ea338584876001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a37573d6000803e3d6000fd5b6001600160a01b0380841690339086167f97116cf6cd4f6412bb47914d6db18da9e16ab2142f543b86e207c24fbd16b23a8546604080519283526020830191909152810186905260600160405180910390a450505050565b6000600254421061275d57506001546001600160a01b031690565b5060005461010090046001600160a01b031690565b6040516340c10f1960e01b81526001600160a01b038481166004830152602482018490528516906340c10f19906044016020604051808303816000875af11580156127c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e59190614010565b50826001600160a01b0316846001600160a01b0316867faac9ce45fe3adf5143598c4f18a369591a20a3384aedaf1b525d29127e1fcd5585856128254690565b604080519384526020840192909252908201526060015b60405180910390a45050505050565b604080516000808252602082019092526001600160a01b038416908390604051612875919061413f565b60006040518083038185875af1925050503d80600081146128b2576040519150601f19603f3d011682016040523d82523d6000602084013e6128b7565b606091505b50509050806129175760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657248656c7065723a204e41544956455f5452414e534645525f60448201526511905253115160d21b606482015260840161073a565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c9490859061325b565b60008084116129cb5760405162461bcd60e51b815260206004820152602d602482015260008051602061426c83398151915260448201526c17d25394155517d05353d55395609a1b606482015260840161073a565b6000831180156129db5750600082115b6129f75760405162461bcd60e51b815260040161073a9061415b565b6000612a05856103e56133e2565b90506000612a1382856133e2565b90506000612a2d83612a27886103e86133e2565b90613446565b9050612a3981836141a9565b979650505050505050565b6060600282511015612a985760405162461bcd60e51b815260206004820181905260248201527f53757368697377617056324c6962726172793a20494e56414c49445f50415448604482015260640161073a565b815167ffffffffffffffff811115612ab257612ab2613752565b604051908082528060200260200182016040528015612adb578160200160208202803683370190505b509050828160018351612aee91906140c6565b81518110612afe57612afe613ffa565b602002602001018181525050600060018351612b1a91906140c6565b90505b8015612bd257600080612b6d8786612b366001876140c6565b81518110612b4657612b46613ffa565b6020026020010151878681518110612b6057612b60613ffa565b6020026020010151613490565b91509150612b95848481518110612b8657612b86613ffa565b60200260200101518383613102565b84612ba16001866140c6565b81518110612bb157612bb1613ffa565b60200260200101818152505050508080612bca906141cb565b915050612b1d565b509392505050565b604051632770a7eb60e21b81526001600160a01b03868116600483015260248201849052851690639dc29fac906044016020604051808303816000875af1158015612c29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4d9190614010565b50826001600160a01b0316856001600160a01b0316856001600160a01b03167f97116cf6cd4f6412bb47914d6db18da9e16ab2142f543b86e207c24fbd16b23a85612c954690565b604080519283526020830191909152810186905260600161283c565b6060600282511015612d055760405162461bcd60e51b815260206004820181905260248201527f53757368697377617056324c6962726172793a20494e56414c49445f50415448604482015260640161073a565b815167ffffffffffffffff811115612d1f57612d1f613752565b604051908082528060200260200182016040528015612d48578160200160208202803683370190505b5090508281600081518110612d5f57612d5f613ffa565b60200260200101818152505060005b60018351612d7c91906140c6565b811015612bd257600080612dc287868581518110612d9c57612d9c613ffa565b602002602001015187866001612db29190614127565b81518110612b6057612b60613ffa565b91509150612dea848481518110612ddb57612ddb613ffa565b60200260200101518383612976565b84612df6856001614127565b81518110612e0657612e06613ffa565b60200260200101818152505050508080612e1f906140ad565b915050612d6e565b6000806000612e36858561355a565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b1660348201529193509150869060480160405160208183030381529060405280519060200120604051602001612ede9291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527fe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b60005b60018351612f1191906140c6565b811015610c9457600080848381518110612f2d57612f2d613ffa565b602002602001015185846001612f439190614127565b81518110612f5357612f53613ffa565b6020026020010151915091506000612f6b838361355a565b509050600087612f7c866001614127565b81518110612f8c57612f8c613ffa565b60200260200101519050600080836001600160a01b0316866001600160a01b031614612fba57826000612fbe565b6000835b91509150600060028a51612fd291906140c6565b8810612fde578861302c565b61302c7f0000000000000000000000000000000000000000000000000000000000000000878c61300f8c6002614127565b8151811061301f5761301f613ffa565b6020026020010151612e27565b90506130597f00000000000000000000000000000000000000000000000000000000000000008888612e27565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015613096576020820181803683370190505b506040518563ffffffff1660e01b81526004016130b694939291906141e2565b600060405180830381600087803b1580156130d057600080fd5b505af11580156130e4573d6000803e3d6000fd5b505050505050505050505080806130fa906140ad565b915050612f03565b60008084116131585760405162461bcd60e51b815260206004820152602e602482015260008051602061426c83398151915260448201526d17d3d55514155517d05353d5539560921b606482015260840161073a565b6000831180156131685750600082115b6131845760405162461bcd60e51b815260040161073a9061415b565b600061319c6103e861319686886133e2565b906133e2565b905060006131b06103e56131968689613653565b90506131c16001612a2783856141a9565b9695505050505050565b600080841161321a5760405162461bcd60e51b8152602060048201526027602482015260008051602061426c83398151915260448201526617d05353d5539560ca1b606482015260840161073a565b60008311801561322a5750600082115b6132465760405162461bcd60e51b815260040161073a9061415b565b8261325185846133e2565b610ac891906141a9565b61326d826001600160a01b031661369e565b6132b95760405162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015260640161073a565b600080836001600160a01b0316836040516132d4919061413f565b6000604051808303816000865af19150503d8060008114613311576040519150601f19603f3d011682016040523d82523d6000602084013e613316565b606091505b5091509150816133685760405162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015260640161073a565b805115610c9457808060200190518101906133839190614010565b610c945760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161073a565b60008115806134035750508082028282828161340057613400614193565b04145b610c815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015260640161073a565b80820182811015610c815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015260640161073a565b600080600061349f858561355a565b5090506000806134b0888888612e27565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156134ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135119190614226565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b03161461354857808261354b565b81815b90999098509650505050505050565b600080826001600160a01b0316846001600160a01b0316036135ce5760405162461bcd60e51b815260206004820152602760248201527f53757368697377617056324c6962726172793a204944454e544943414c5f41446044820152664452455353455360c81b606482015260840161073a565b826001600160a01b0316846001600160a01b0316106135ee5782846135f1565b83835b90925090506001600160a01b03821661364c5760405162461bcd60e51b815260206004820181905260248201527f53757368697377617056324c6962726172793a205a45524f5f41444452455353604482015260640161073a565b9250929050565b80820382811115610c815760405162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015260640161073a565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590610ac85750141592915050565b634e487b7160e01b600052600160045260246000fd5b6001600160a01b03811681146125f257600080fd5b600080600080600060a0868803121561371857600080fd5b85359450602086013561372a816136eb565b9350604086013561373a816136eb565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561379157613791613752565b604052919050565b600082601f8301126137aa57600080fd5b813567ffffffffffffffff8111156137c4576137c4613752565b6137d7601f8201601f1916602001613768565b8181528460208386010111156137ec57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561381f57600080fd5b843561382a816136eb565b9350602085013567ffffffffffffffff81111561384657600080fd5b61385287828801613799565b949794965050505060408301359260600135919050565b60008060006060848603121561387e57600080fd5b505081359360208301359350604090920135919050565b80151581146125f257600080fd5b6000602082840312156138b557600080fd5b81356138c081613895565b9392505050565b60008083601f8401126138d957600080fd5b50813567ffffffffffffffff8111156138f157600080fd5b6020830191508360208260051b850101111561364c57600080fd5b600080600080600080600060c0888a03121561392757600080fd5b8735965060208801359550604088013567ffffffffffffffff81111561394c57600080fd5b6139588a828b016138c7565b909650945050606088013561396c816136eb565b969995985093969295946080840135945060a09093013592915050565b6000806040838503121561399c57600080fd5b8235915060208084013567ffffffffffffffff808211156139bc57600080fd5b818601915086601f8301126139d057600080fd5b8135818111156139e2576139e2613752565b8060051b91506139f3848301613768565b8181529183018401918481019089841115613a0d57600080fd5b938501935b83851015613a375784359250613a27836136eb565b8282529385019390850190613a12565b8096505050505050509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613a7f57835183529284019291840191600101613a63565b50909695505050505050565b60008060008060808587031215613aa157600080fd5b8435613aac816136eb565b93506020850135613abc816136eb565b93969395505050506040820135916060013590565b60008060008060008060008060008060a08b8d031215613af057600080fd5b8a3567ffffffffffffffff80821115613b0857600080fd5b613b148e838f016138c7565b909c509a5060208d0135915080821115613b2d57600080fd5b613b398e838f016138c7565b909a50985060408d0135915080821115613b5257600080fd5b613b5e8e838f016138c7565b909850965060608d0135915080821115613b7757600080fd5b613b838e838f016138c7565b909650945060808d0135915080821115613b9c57600080fd5b50613ba98d828e016138c7565b915080935050809150509295989b9194979a5092959850565b60008060008060008060008060e0898b031215613bde57600080fd5b883597506020890135965060408901359550606089013567ffffffffffffffff811115613c0a57600080fd5b613c168b828c016138c7565b9096509450506080890135613c2a816136eb565b979a969950949793969295929450505060a08201359160c0013590565b60008060408385031215613c5a57600080fd5b8235613c65816136eb565b91506020830135613c75816136eb565b809150509250929050565b600080600060608486031215613c9557600080fd5b8335613ca0816136eb565b9250602084013567ffffffffffffffff811115613cbc57600080fd5b613cc886828701613799565b925050604084013590509250925092565b600060208284031215613ceb57600080fd5b81356138c0816136eb565b600080600060608486031215613d0b57600080fd5b8335613d16816136eb565b9250602084013591506040840135613d2d816136eb565b809150509250925092565b60008060408385031215613d4b57600080fd5b8235613d56816136eb565b946020939093013593505050565b600080600060608486031215613d7957600080fd5b8335613d84816136eb565b92506020840135613d94816136eb565b929592945050506040919091013590565b6000806000806000806000806080898b031215613dc157600080fd5b883567ffffffffffffffff80821115613dd957600080fd5b613de58c838d016138c7565b909a50985060208b0135915080821115613dfe57600080fd5b613e0a8c838d016138c7565b909850965060408b0135915080821115613e2357600080fd5b613e2f8c838d016138c7565b909650945060608b0135915080821115613e4857600080fd5b50613e558b828c016138c7565b999c989b5096995094979396929594505050565b6020808252601a908201527f416e79737761705633526f757465723a20464f5242494444454e000000000000604082015260600190565b600060208284031215613eb257600080fd5b81516138c0816136eb565b600060208284031215613ecf57600080fd5b5051919050565b6001600160a01b0393841681526020810192909252909116604082015260600190565b60005b83811015613f14578181015183820152602001613efc565b83811115610c945750506000910152565b60008151808452613f3d816020860160208601613ef9565b601f01601f19169290920160200192915050565b608081526000613f646080830187613f25565b6020830195909552506040810192909252606090910152919050565b60208082526023908201527f416e79737761705636526f757465723a205377617054726164652064697361626040820152621b195960ea1b606082015260800190565b60208082526018908201527f416e79737761705633526f757465723a20455850495245440000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561402257600080fd5b81516138c081613895565b60a0808252810186905260008760c08301825b89811015614070578235614053816136eb565b6001600160a01b0316825260209283019290910190600101614040565b50602084019790975250506040810193909352606083019190915260809091015292915050565b634e487b7160e01b600052601160045260246000fd5b6000600182016140bf576140bf614097565b5060010190565b6000828210156140d8576140d8614097565b500390565b6020808252602a908201527f416e79737761705633526f757465723a20756e6465726c79696e67206973206e6040820152696f7420774e415449564560b01b606082015260800190565b6000821982111561413a5761413a614097565b500190565b60008251614151818460208701613ef9565b9190910192915050565b6020808252602a9082015260008051602061426c8339815191526040820152695f4c495155494449545960b01b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826141c657634e487b7160e01b600052601260045260246000fd5b500490565b6000816141da576141da614097565b506000190190565b84815283602082015260018060a01b03831660408201526080606082015260006131c16080830184613f25565b80516001600160701b038116811461185a57600080fd5b60008060006060848603121561423b57600080fd5b6142448461420f565b92506142526020850161420f565b9150604084015163ffffffff81168114613d2d57600080fdfe53757368697377617056324c6962726172793a20494e53554646494349454e54a2646970667358221220574495a1c1f7fcb4ee58cc64e09183bde93506b739a4d6240eb9dbae120ae74064736f6c634300080e0033