false
false
0

Contract Address Details

0xeB5B468fAacC6bBdc14c4aacF0eec38ABCCC13e7

Contract Name
SoyFinanceRouter
Creator
0xc7d98c–7f3521 at 0x856d29–c6acb6
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
4,825,894 Transactions
Transfers
513,838 Transfers
Gas Used
425,345,771,885
Last Balance Update
16289278
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
SoyFinanceRouter




Optimization enabled
true
Compiler version
v0.6.6+commit.6c089d02




Optimization runs
200
EVM Version
default




Verified at
2024-09-26T15:34:13.578802Z

Constructor Arguments

0x0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c5000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a

Arg [0] (address) : 0x9cc7c769ea3b37f1af0ad642a268b80dc80754c5
Arg [1] (address) : 0xf5ad6f6edec824c7fd54a66d241a227f6503ad3a

              

Contract source code

// SPDX-License-Identifier: No License (None)
pragma solidity >=0.6.6;

// helper methods for interacting with ERC223 tokens and sending CLO 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 safeTransferCLO(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: CLO_TRANSFER_FAILED');
    }
}

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

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

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

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

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

interface ISoyFinanceRouter01 {
    function factory() external pure returns (address);
    function WCLO() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityCLO(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountCLO, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityCLO(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountCLO);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityCLOWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountCLO);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactCLOForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactCLO(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForCLO(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapCLOForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

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

interface ISoyFinanceRouter02 is ISoyFinanceRouter01 {
    function removeLiquidityCLOSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline
    ) external returns (uint amountCLO);
    function removeLiquidityCLOWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountCLO);

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

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

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

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

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

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

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

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

    function initialize(address, address) external;
}
// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)

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

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

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

library SoyFinanceLibrary {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'SoyFinanceLibrary: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'SoyFinanceLibrary: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'e410ea0a25ce340e309f2f0fe9d58d787bb87dd63d02333e8a9a747230f61758' // 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,) = ISoyFinancePair(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, 'SoyFinanceLibrary: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'SoyFinanceLibrary: 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, 'SoyFinanceLibrary: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'SoyFinanceLibrary: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(998);
        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, 'SoyFinanceLibrary: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'SoyFinanceLibrary: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(998);
        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, 'SoyFinanceLibrary: 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, 'SoyFinanceLibrary: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}

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

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

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

contract SoyFinanceRouter is ISoyFinanceRouter02 {
    using SafeMath for uint;

    address public immutable override factory;
    address public immutable override WCLO;
    mapping(address => mapping(address => uint)) public balanceERC223;    // user => token => value
    address public msgSender;   // ERC223 sender
    address public tokenAddress; // ERC223 token address
    event Swap(address _sender, address _tokenIn, address _tokenOut, uint _amountIn, uint _amountOut);
    event AddLiquidity(address _sender, address _tokenA, address _tokenB, uint _amountA, uint _amountB);
    event RemoveLiquidity(address _sender, address _tokenA, address _tokenB, uint _amountA, uint _amountB);

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

    modifier noERC223() {
        require(msg.sender != address(this), "ERC223 not accepted");
        _;
    }

    constructor(address _factory, address _WCLO) public {
        factory = _factory;
        WCLO = _WCLO;
    }

    function tokenReceived(address _from, uint _value, bytes calldata _data) external {
        balanceERC223[_from][msg.sender] = balanceERC223[_from][msg.sender] + _value;   // add token to user balance
        if (_data.length >= 36) { // signature + at least 1 parameter
            msgSender = _from;
            tokenAddress = msg.sender;
            (bool success,) = address(this).call{value:0}(_data);
            require(success, "ERC223 internal call failed");
        }
    }

    // allow user to withdraw transferred ERC223 tokens
    function withdraw(address token, uint amount) external {
        uint userBalance = balanceERC223[msg.sender][token];
        require(userBalance >= amount, "Not enough tokens");
        balanceERC223[msg.sender][token] = userBalance - amount;
        TransferHelper.safeTransfer(token, msg.sender, amount);
    }

    function transferTo(address token, address to, uint amount) internal {
        address sender = msg.sender;
        if (msg.sender == address(this)) {
            require(token == tokenAddress, "Transfer wrong token");
            sender = msgSender;
        }
        uint balance = balanceERC223[sender][token];
        if (balance >= amount) { // ERC223 tokens were transferred 
            uint rest;
            if (balance > amount) rest = balance - amount;
            balanceERC223[sender][token] = 0;
            if (rest != 0) TransferHelper.safeTransfer(token, sender, rest); // refund rest of tokens to sender
            TransferHelper.safeTransfer(token, to, amount);
        } else if (msg.sender != address(this)) {   // not ERC223 callback
            TransferHelper.safeTransferFrom(token, msg.sender, to, amount);
        } else {
            revert("Not enough ERC223 balance");
        }
    }

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

    // **** ADD LIQUIDITY ****
    function _addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin
    ) internal virtual returns (uint amountA, uint amountB) {
        // create the pair if it doesn't exist yet
        if (ISoyFinanceFactory(factory).getPair(tokenA, tokenB) == address(0)) {
            ISoyFinanceFactory(factory).createPair(tokenA, tokenB);
        }
        (uint reserveA, uint reserveB) = SoyFinanceLibrary.getReserves(factory, tokenA, tokenB);
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint amountBOptimal = SoyFinanceLibrary.quote(amountADesired, reserveA, reserveB);
            if (amountBOptimal <= amountBDesired) {
                require(amountBOptimal >= amountBMin, 'SoyFinanceRouter: INSUFFICIENT_B_AMOUNT');
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint amountAOptimal = SoyFinanceLibrary.quote(amountBDesired, reserveB, reserveA);
                assert(amountAOptimal <= amountADesired);
                require(amountAOptimal >= amountAMin, 'SoyFinanceRouter: INSUFFICIENT_A_AMOUNT');
                (amountA, amountB) = (amountAOptimal, amountBDesired);
            }
        }
        emit AddLiquidity(tx.origin, tokenA, tokenB, amountA, amountB);
    }
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) noERC223 returns (uint amountA, uint amountB, uint liquidity) {
        (amountA, amountB) = _addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin);
        address pair = SoyFinanceLibrary.pairFor(factory, tokenA, tokenB);
        transferTo(tokenA, pair, amountA);
        transferTo(tokenB, pair, amountB);
        liquidity = ISoyFinancePair(pair).mint(to);
    }
    function addLiquidityCLO(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline
    ) external virtual override payable ensure(deadline) noERC223 returns (uint amountToken, uint amountCLO, uint liquidity) {
        (amountToken, amountCLO) = _addLiquidity(
            token,
            WCLO,
            amountTokenDesired,
            msg.value,
            amountTokenMin,
            amountCLOMin
        );
        address pair = SoyFinanceLibrary.pairFor(factory, token, WCLO);
        transferTo(token, pair, amountToken);
        IWCLO(WCLO).deposit{value: amountCLO}();
        assert(IWCLO(WCLO).transfer(pair, amountCLO));
        liquidity = ISoyFinancePair(pair).mint(to);
        // refund dust eth, if any
        if (msg.value > amountCLO) TransferHelper.safeTransferCLO(msg.sender, msg.value - amountCLO);
    }

    // **** REMOVE LIQUIDITY ****
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountA, uint amountB) {
        address pair = SoyFinanceLibrary.pairFor(factory, tokenA, tokenB);
        transferTo(pair, pair, liquidity); // send liquidity to pair
        //ISoyFinancePair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
        (uint amount0, uint amount1) = ISoyFinancePair(pair).burn(to);
        (address token0,) = SoyFinanceLibrary.sortTokens(tokenA, tokenB);
        (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0);
        require(amountA >= amountAMin, 'SoyFinanceRouter: INSUFFICIENT_A_AMOUNT');
        require(amountB >= amountBMin, 'SoyFinanceRouter: INSUFFICIENT_B_AMOUNT');
        emit RemoveLiquidity(tx.origin, tokenA, tokenB, amountA, amountB);
    }
    function removeLiquidityCLO(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountToken, uint amountCLO) {
        (amountToken, amountCLO) = removeLiquidity(
            token,
            WCLO,
            liquidity,
            amountTokenMin,
            amountCLOMin,
            address(this),
            deadline
        );
        TransferHelper.safeTransfer(token, to, amountToken);
        IWCLO(WCLO).withdraw(amountCLO);
        TransferHelper.safeTransferCLO(to, amountCLO);
    }
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override noERC223 returns (uint amountA, uint amountB) {
        address pair = SoyFinanceLibrary.pairFor(factory, tokenA, tokenB);
        uint value = approveMax ? uint(-1) : liquidity;
        ISoyFinancePair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountA, amountB) = removeLiquidity(tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline);
    }
    function removeLiquidityCLOWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override noERC223 returns (uint amountToken, uint amountCLO) {
        address pair = SoyFinanceLibrary.pairFor(factory, token, WCLO);
        uint value = approveMax ? uint(-1) : liquidity;
        ISoyFinancePair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountToken, amountCLO) = removeLiquidityCLO(token, liquidity, amountTokenMin, amountCLOMin, to, deadline);
    }

    // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) ****
    function removeLiquidityCLOSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountCLO) {
        (, amountCLO) = removeLiquidity(
            token,
            WCLO,
            liquidity,
            amountTokenMin,
            amountCLOMin,
            address(this),
            deadline
        );
        TransferHelper.safeTransfer(token, to, IERC223(token).balanceOf(address(this)));
        IWCLO(WCLO).withdraw(amountCLO);
        TransferHelper.safeTransferCLO(to, amountCLO);
    }
    function removeLiquidityCLOWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountCLOMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override noERC223 returns (uint amountCLO) {
        address pair = SoyFinanceLibrary.pairFor(factory, token, WCLO);
        uint value = approveMax ? uint(-1) : liquidity;
        ISoyFinancePair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        amountCLO = removeLiquidityCLOSupportingFeeOnTransferTokens(
            token, liquidity, amountTokenMin, amountCLOMin, to, deadline
        );
    }

    // **** SWAP ****
    // requires the initial amount to have already been sent to the first pair
    function _swap(uint[] memory amounts, address[] memory path, address _to) internal virtual {
        for (uint i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0,) = SoyFinanceLibrary.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 ? SoyFinanceLibrary.pairFor(factory, output, path[i + 2]) : _to;
            ISoyFinancePair(SoyFinanceLibrary.pairFor(factory, input, output)).swap(
                amount0Out, amount1Out, to, new bytes(0)
            );
        }
        emit Swap(tx.origin, path[0], path[path.length - 1], amounts[0], amounts[amounts.length - 1]);
    }
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) returns (uint[] memory amounts) {
        amounts = SoyFinanceLibrary.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'SoyFinanceRouter: INSUFFICIENT_OUTPUT_AMOUNT');
        transferTo(
            path[0], SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, to);
    }
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) returns (uint[] memory amounts) {
        amounts = SoyFinanceLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, 'SoyFinanceRouter: EXCESSIVE_INPUT_AMOUNT');
        transferTo(
            path[0], SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, to);
    }
    function swapExactCLOForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        payable
        ensure(deadline)
        noERC223
        returns (uint[] memory amounts)
    {
        require(path[0] == WCLO, 'SoyFinanceRouter: INVALID_PATH');
        amounts = SoyFinanceLibrary.getAmountsOut(factory, msg.value, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'SoyFinanceRouter: INSUFFICIENT_OUTPUT_AMOUNT');
        IWCLO(WCLO).deposit{value: amounts[0]}();
        assert(IWCLO(WCLO).transfer(SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
    }
    function swapTokensForExactCLO(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[path.length - 1] == WCLO, 'SoyFinanceRouter: INVALID_PATH');
        amounts = SoyFinanceLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, 'SoyFinanceRouter: EXCESSIVE_INPUT_AMOUNT');
        transferTo(
            path[0], SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, address(this));
        IWCLO(WCLO).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferCLO(to, amounts[amounts.length - 1]);
    }
    function swapExactTokensForCLO(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[path.length - 1] == WCLO, 'SoyFinanceRouter: INVALID_PATH');
        amounts = SoyFinanceLibrary.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'SoyFinanceRouter: INSUFFICIENT_OUTPUT_AMOUNT');
        transferTo(
            path[0], SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, address(this));
        IWCLO(WCLO).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferCLO(to, amounts[amounts.length - 1]);
    }
    function swapCLOForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        payable
        ensure(deadline)
        noERC223
        returns (uint[] memory amounts)
    {
        require(path[0] == WCLO, 'SoyFinanceRouter: INVALID_PATH');
        amounts = SoyFinanceLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= msg.value, 'SoyFinanceRouter: EXCESSIVE_INPUT_AMOUNT');
        IWCLO(WCLO).deposit{value: amounts[0]}();
        assert(IWCLO(WCLO).transfer(SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
        // refund dust eth, if any
        if (msg.value > amounts[0]) TransferHelper.safeTransferCLO(msg.sender, msg.value - amounts[0]);
    }

    // **** SWAP (supporting fee-on-transfer tokens) ****
    // requires the initial amount to have already been sent to the first pair
    function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal virtual {
        for (uint i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0,) = SoyFinanceLibrary.sortTokens(input, output);
            ISoyFinancePair pair = ISoyFinancePair(SoyFinanceLibrary.pairFor(factory, input, output));
            uint amountInput;
            uint amountOutput;
            { // scope to avoid stack too deep errors
            (uint reserve0, uint reserve1,) = pair.getReserves();
            (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
            amountInput = IERC223(input).balanceOf(address(pair)).sub(reserveInput);
            amountOutput = SoyFinanceLibrary.getAmountOut(amountInput, reserveInput, reserveOutput);
            }
            (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0));
            address to = i < path.length - 2 ? SoyFinanceLibrary.pairFor(factory, output, path[i + 2]) : _to;
            pair.swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) {
        require(path.length > 1, 'SoyFinanceRouter: INVALID_PATH');        
        transferTo(
            path[0], SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amountIn
        );
        uint balanceBefore = IERC223(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        uint amountOut = IERC223(path[path.length - 1]).balanceOf(to).sub(balanceBefore);
        require(
            amountOut >= amountOutMin,
            'SoyFinanceRouter: INSUFFICIENT_OUTPUT_AMOUNT'
        );        
        emit Swap(tx.origin, path[0], path[path.length - 1], amountIn, amountOut);
    }
    function swapExactCLOForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    )
        external
        virtual
        override
        payable
        ensure(deadline)
        noERC223
    {
        require(path.length > 1, 'SoyFinanceRouter: INVALID_PATH');        
        require(path[0] == WCLO, 'SoyFinanceRouter: INVALID_PATH');
        uint amountIn = msg.value;
        IWCLO(WCLO).deposit{value: amountIn}();
        assert(IWCLO(WCLO).transfer(SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amountIn));
        uint balanceBefore = IERC223(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        uint amountOut = IERC223(path[path.length - 1]).balanceOf(to).sub(balanceBefore);
        require(
            amountOut >= amountOutMin,
            'SoyFinanceRouter: INSUFFICIENT_OUTPUT_AMOUNT'
        );
        emit Swap(tx.origin, path[0], path[path.length - 1], amountIn, amountOut);
    }
    function swapExactTokensForCLOSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    )
        external
        virtual
        override
        ensure(deadline)
    {
        require(path.length > 1, 'SoyFinanceRouter: INVALID_PATH');        
        require(path[path.length - 1] == WCLO, 'SoyFinanceRouter: INVALID_PATH');
        transferTo(
            path[0], SoyFinanceLibrary.pairFor(factory, path[0], path[1]), amountIn
        );
        _swapSupportingFeeOnTransferTokens(path, address(this));
        uint amountOut = IERC223(WCLO).balanceOf(address(this));
        require(amountOut >= amountOutMin, 'SoyFinanceRouter: INSUFFICIENT_OUTPUT_AMOUNT');
        IWCLO(WCLO).withdraw(amountOut);
        TransferHelper.safeTransferCLO(to, amountOut);
        emit Swap(tx.origin, path[0], path[path.length - 1], amountIn, amountOut);
    }

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

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

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

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

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

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_factory","internalType":"address"},{"type":"address","name":"_WCLO","internalType":"address"}]},{"type":"event","name":"AddLiquidity","inputs":[{"type":"address","name":"_sender","internalType":"address","indexed":false},{"type":"address","name":"_tokenA","internalType":"address","indexed":false},{"type":"address","name":"_tokenB","internalType":"address","indexed":false},{"type":"uint256","name":"_amountA","internalType":"uint256","indexed":false},{"type":"uint256","name":"_amountB","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RemoveLiquidity","inputs":[{"type":"address","name":"_sender","internalType":"address","indexed":false},{"type":"address","name":"_tokenA","internalType":"address","indexed":false},{"type":"address","name":"_tokenB","internalType":"address","indexed":false},{"type":"uint256","name":"_amountA","internalType":"uint256","indexed":false},{"type":"uint256","name":"_amountB","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Swap","inputs":[{"type":"address","name":"_sender","internalType":"address","indexed":false},{"type":"address","name":"_tokenIn","internalType":"address","indexed":false},{"type":"address","name":"_tokenOut","internalType":"address","indexed":false},{"type":"uint256","name":"_amountIn","internalType":"uint256","indexed":false},{"type":"uint256","name":"_amountOut","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"WCLO","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"},{"type":"uint256","name":"liquidity","internalType":"uint256"}],"name":"addLiquidity","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"amountADesired","internalType":"uint256"},{"type":"uint256","name":"amountBDesired","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountCLO","internalType":"uint256"},{"type":"uint256","name":"liquidity","internalType":"uint256"}],"name":"addLiquidityCLO","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amountTokenDesired","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountCLOMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceERC223","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"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":"msgSender","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":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"removeLiquidity","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountCLO","internalType":"uint256"}],"name":"removeLiquidityCLO","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountCLOMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountCLO","internalType":"uint256"}],"name":"removeLiquidityCLOSupportingFeeOnTransferTokens","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountCLOMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountCLO","internalType":"uint256"}],"name":"removeLiquidityCLOWithPermit","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountCLOMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountCLO","internalType":"uint256"}],"name":"removeLiquidityCLOWithPermitSupportingFeeOnTransferTokens","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountCLOMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"removeLiquidityWithPermit","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapCLOForExactTokens","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactCLOForTokens","inputs":[{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"swapExactCLOForTokensSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactTokensForCLO","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapExactTokensForCLOSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactTokensForTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapTokensForExactCLO","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"amountInMax","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapTokensForExactTokens","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"amountInMax","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"tokenAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"tokenReceived","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"uint256","name":"_value","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

Verify & Publish
0x60c060405234801561001057600080fd5b506040516200528b3803806200528b8339818101604052604081101561003557600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c61510662000185600039806101d65280610ec75280611022528061115752806111925280611432528061157852806116005280611cd25280611e625280611fa952806120ec528061217452806122e552806125b552806126af528061276552806128d552806129845280612ade5280612b735280612be75280612f46528061338052806133d65280613409528061347d525080610ea55280611000528061122b52806112af52806114c5528061163252806117ba528061189052806119cc5280611d60528061203c52806121a6528061235f5280612c195280612fd452806130dd52806133b452806135d7528061360052806136fd5280613faf5280613ff2528061439a5280614519528061494952806149f75280614a7752506151066000f3fe6080604052600436106101c65760003560e01c80638943ec02116100f7578063baa2abde11610095578063d62dfe2211610064578063d62dfe2214610d51578063d737d0c714610d8c578063e8e3370014610da1578063f3fef3a314610e03576101ff565b8063baa2abde14610bc6578063c2a63cd814610c23578063c45a015514610c87578063d06ca61f14610c9c576101ff565b8063a00628c3116100d1578063a00628c314610a23578063a42d442f14610a76578063a6e8385214610afa578063ad615dec14610b90576101ff565b80638943ec02146108e85780639550b9a3146109785780639d76ea5814610a0e576101ff565b806338ed173911610164578063710db8ef1161013e578063710db8ef1461076757806379cce4f5146107eb57806385f8c2591461081c5780638803dbee14610852576101ff565b806338ed1739146105a55780635c11d7951461063b5780635ea83ae9146106d1576101ff565b80631b9dd7b6116101a05780631b9dd7b61461034b5780631f00ca741461039e5780632195995c146104a35780632e9b3dc314610521576101ff565b8063054d50d41461020457806306a071651461024c5780630984f17a146102bf576101ff565b366101ff57336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101fd57fe5b005b600080fd5b34801561021057600080fd5b5061023a6004803603606081101561022757600080fd5b5080359060208101359060400135610e3c565b60408051918252519081900360200190f35b34801561025857600080fd5b5061023a600480360361014081101561027057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135610e51565b3480156102cb57600080fd5b5061033260048036036101408110156102e357600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135610fab565b6040805192835260208301919091528051918290030190f35b34801561035757600080fd5b50610332600480360360c081101561036e57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a0013561110a565b3480156103aa57600080fd5b50610453600480360360408110156103c157600080fd5b81359190810190604081016020820135600160201b8111156103e257600080fd5b8201836020820111156103f457600080fd5b803590602001918460208302840111600160201b8311171561041557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611224945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561048f578181015183820152602001610477565b505050509050019250505060405180910390f35b3480156104af57600080fd5b5061033260048036036101608110156104c757600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff610100820135169061012081013590610140013561125a565b6104536004803603608081101561053757600080fd5b81359190810190604081016020820135600160201b81111561055857600080fd5b82018360208201111561056a57600080fd5b803590602001918460208302840111600160201b8311171561058b57600080fd5b91935091506001600160a01b03813516906020013561139f565b3480156105b157600080fd5b50610453600480360360a08110156105c857600080fd5b813591602081013591810190606081016040820135600160201b8111156105ee57600080fd5b82018360208201111561060057600080fd5b803590602001918460208302840111600160201b8311171561062157600080fd5b91935091506001600160a01b03813516906020013561176f565b34801561064757600080fd5b506101fd600480360360a081101561065e57600080fd5b813591602081013591810190606081016040820135600160201b81111561068457600080fd5b82018360208201111561069657600080fd5b803590602001918460208302840111600160201b831117156106b757600080fd5b91935091506001600160a01b038135169060200135611920565b3480156106dd57600080fd5b50610453600480360360a08110156106f457600080fd5b813591602081013591810190606081016040820135600160201b81111561071a57600080fd5b82018360208201111561072c57600080fd5b803590602001918460208302840111600160201b8311171561074d57600080fd5b91935091506001600160a01b038135169060200135611c82565b6104536004803603608081101561077d57600080fd5b81359190810190604081016020820135600160201b81111561079e57600080fd5b8201836020820111156107b057600080fd5b803590602001918460208302840111600160201b831117156107d157600080fd5b91935091506001600160a01b038135169060200135611f16565b3480156107f757600080fd5b506108006122e3565b604080516001600160a01b039092168252519081900360200190f35b34801561082857600080fd5b5061023a6004803603606081101561083f57600080fd5b5080359060208101359060400135612307565b34801561085e57600080fd5b50610453600480360360a081101561087557600080fd5b813591602081013591810190606081016040820135600160201b81111561089b57600080fd5b8201836020820111156108ad57600080fd5b803590602001918460208302840111600160201b831117156108ce57600080fd5b91935091506001600160a01b038135169060200135612314565b3480156108f457600080fd5b506101fd6004803603606081101561090b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561093a57600080fd5b82018360208201111561094c57600080fd5b803590602001918460018302840111600160201b8311171561096d57600080fd5b50909250905061240d565b34801561098457600080fd5b506101fd600480360360a081101561099b57600080fd5b813591602081013591810190606081016040820135600160201b8111156109c157600080fd5b8201836020820111156109d357600080fd5b803590602001918460208302840111600160201b831117156109f457600080fd5b91935091506001600160a01b038135169060200135612524565b348015610a1a57600080fd5b5061080061287a565b348015610a2f57600080fd5b5061023a600480360360c0811015610a4657600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612889565b6101fd60048036036080811015610a8c57600080fd5b81359190810190604081016020820135600160201b811115610aad57600080fd5b820183602082011115610abf57600080fd5b803590602001918460208302840111600160201b83111715610ae057600080fd5b91935091506001600160a01b038135169060200135612a0a565b348015610b0657600080fd5b50610453600480360360a0811015610b1d57600080fd5b813591602081013591810190606081016040820135600160201b811115610b4357600080fd5b820183602082011115610b5557600080fd5b803590602001918460208302840111600160201b83111715610b7657600080fd5b91935091506001600160a01b038135169060200135612ef6565b348015610b9c57600080fd5b5061023a60048036036060811015610bb357600080fd5b5080359060208101359060400135613082565b348015610bd257600080fd5b50610332600480360360e0811015610be957600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c0013561308f565b610c69600480360360c0811015610c3957600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a001356132e6565b60408051938452602084019290925282820152519081900360600190f35b348015610c9357600080fd5b506108006135d5565b348015610ca857600080fd5b5061045360048036036040811015610cbf57600080fd5b81359190810190604081016020820135600160201b811115610ce057600080fd5b820183602082011115610cf257600080fd5b803590602001918460208302840111600160201b83111715610d1357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506135f9945050505050565b348015610d5d57600080fd5b5061023a60048036036040811015610d7457600080fd5b506001600160a01b0381358116916020013516613626565b348015610d9857600080fd5b50610800613640565b348015610dad57600080fd5b50610c696004803603610100811015610dc557600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e0013561364f565b348015610e0f57600080fd5b506101fd60048036036040811015610e2657600080fd5b506001600160a01b0381351690602001356137d4565b6000610e49848484613876565b949350505050565b600033301415610e9e576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b6000610eeb7f00000000000000000000000000000000000000000000000000000000000000008d7f0000000000000000000000000000000000000000000000000000000000000000613966565b9050600086610efa578b610efe565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b158015610f7457600080fd5b505af1158015610f88573d6000803e3d6000fd5b50505050610f9a8d8d8d8d8d8d612889565b9d9c50505050505050505050505050565b60008033301415610ff9576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b60006110467f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000613966565b9050600087611055578c611059565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b505050506110f58e8e8e8e8e8e61110a565b909f909e509c50505050505050505050505050565b6000808242811015611151576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b611180897f00000000000000000000000000000000000000000000000000000000000000008a8a8a308a61308f565b9093509150611190898685613a26565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156111f657600080fd5b505af115801561120a573d6000803e3d6000fd5b505050506112188583613b89565b50965096945050505050565b60606112517f00000000000000000000000000000000000000000000000000000000000000008484613c7c565b90505b92915050565b600080333014156112a8576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b60006112d57f00000000000000000000000000000000000000000000000000000000000000008f8f613966565b90506000876112e4578c6112e8565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561135e57600080fd5b505af1158015611372573d6000803e3d6000fd5b505050506113858f8f8f8f8f8f8f61308f565b809450819550505050509b509b9950505050505050505050565b606081428110156113e5576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b33301415611430576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168686600081811061146757fe5b905060200201356001600160a01b03166001600160a01b0316146114c0576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b61151e7f000000000000000000000000000000000000000000000000000000000000000034888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613dc992505050565b9150868260018451038151811061153157fe5b602002602001015110156115765760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836000815181106115b257fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156115e557600080fd5b505af11580156115f9573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6116907f00000000000000000000000000000000000000000000000000000000000000008989600081811061165e57fe5b905060200201356001600160a01b03168a8a600181811061167b57fe5b905060200201356001600160a01b0316613966565b8460008151811061169d57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156116f457600080fd5b505af1158015611708573d6000803e3d6000fd5b505050506040513d602081101561171e57600080fd5b505161172657fe5b61176582878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613f00915050565b5095945050505050565b606081428110156117b5576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6118137f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613dc992505050565b9150868260018451038151811061182657fe5b6020026020010151101561186b5760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b6118d68686600081811061187b57fe5b905060200201356001600160a01b03166118bc7f00000000000000000000000000000000000000000000000000000000000000008989600081811061165e57fe5b846000815181106118c957fe5b60200260200101516141ec565b61191582878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613f00915050565b509695505050505050565b8042811015611964576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b600184116119a7576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b611a1b858560008181106119b757fe5b905060200201356001600160a01b0316611a157f0000000000000000000000000000000000000000000000000000000000000000888860008181106119f857fe5b905060200201356001600160a01b03168989600181811061167b57fe5b896141ec565b600085856000198101818110611a2d57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611a9257600080fd5b505afa158015611aa6573d6000803e3d6000fd5b505050506040513d6020811015611abc57600080fd5b50516040805160208881028281018201909352888252929350611afe929091899189918291850190849080828437600092019190915250889250614343915050565b6000611bb18288886000198101818110611b1457fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7957600080fd5b505afa158015611b8d573d6000803e3d6000fd5b505050506040513d6020811015611ba357600080fd5b50519063ffffffff61464e16565b905087811015611bf25760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b600080516020614fe58339815191523288886000818110611c0f57fe5b905060200201356001600160a01b0316898960018c8c905003818110611c3157fe5b604080516001600160a01b03968716815294861660208681019190915290910292909201359390931682820152606082018d905260808201859052519081900360a0019150a1505050505050505050565b60608142811015611cc8576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686866000198101818110611d0257fe5b905060200201356001600160a01b03166001600160a01b031614611d5b576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b611db97f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613dc992505050565b91508682600184510381518110611dcc57fe5b60200260200101511015611e115760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b611e218686600081811061187b57fe5b611e6082878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613f00915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d83600185510381518110611e9f57fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611edd57600080fd5b505af1158015611ef1573d6000803e3d6000fd5b505050506119158483600185510381518110611f0957fe5b6020026020010151613b89565b60608142811015611f5c576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b33301415611fa7576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686866000818110611fde57fe5b905060200201356001600160a01b03166001600160a01b031614612037576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b6120957f000000000000000000000000000000000000000000000000000000000000000088888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c7c92505050565b915034826000815181106120a557fe5b602002602001015111156120ea5760405162461bcd60e51b8152600401808060200182810382526028815260200180614eba6028913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db08360008151811061212657fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561215957600080fd5b505af115801561216d573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6121d27f00000000000000000000000000000000000000000000000000000000000000008989600081811061165e57fe5b846000815181106121df57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561223657600080fd5b505af115801561224a573d6000803e3d6000fd5b505050506040513d602081101561226057600080fd5b505161226857fe5b6122a782878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613f00915050565b816000815181106122b457fe5b60200260200101513411156117655761176533836000815181106122d457fe5b60200260200101513403613b89565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610e4984848461469e565b6060814281101561235a576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6123b87f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c7c92505050565b915086826000815181106123c857fe5b6020026020010151111561186b5760405162461bcd60e51b8152600401808060200182810382526028815260200180614eba6028913960400191505060405180910390fd5b6001600160a01b03841660009081526020818152604080832033845290915290208054840190556024811061251e57600180546001600160a01b0386166001600160a01b03199182161790915560028054909116331790556040516000903090829085908590808383808284376040519201945060009350909150508083038185875af1925050503d80600081146124c1576040519150601f19603f3d011682016040523d82523d6000602084013e6124c6565b606091505b505090508061251c576040805162461bcd60e51b815260206004820152601b60248201527f45524332323320696e7465726e616c2063616c6c206661696c65640000000000604482015290519081900360640190fd5b505b50505050565b8042811015612568576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b600184116125ab576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016858560001981018181106125e557fe5b905060200201356001600160a01b03166001600160a01b03161461263e576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b61264e858560008181106119b757fe5b61268c858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614343915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b1580156126f657600080fd5b505afa15801561270a573d6000803e3d6000fd5b505050506040513d602081101561272057600080fd5b50519050868110156127635760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156127c957600080fd5b505af11580156127dd573d6000803e3d6000fd5b505050506127eb8482613b89565b600080516020614fe5833981519152328787600081811061280857fe5b905060200201356001600160a01b0316888860018b8b90500381811061282a57fe5b604080516001600160a01b03968716815294861660208681019190915290910292909201359390931682820152606082018c905260808201859052519081900360a0019150a15050505050505050565b6002546001600160a01b031681565b600081428110156128cf576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6128fe887f0000000000000000000000000000000000000000000000000000000000000000898989308961308f565b604080516370a0823160e01b8152306004820152905191945061298292508a9187916001600160a01b038416916370a0823191602480820192602092909190829003018186803b15801561295157600080fd5b505afa158015612965573d6000803e3d6000fd5b505050506040513d602081101561297b57600080fd5b5051613a26565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156129e857600080fd5b505af11580156129fc573d6000803e3d6000fd5b505050506119158483613b89565b8042811015612a4e576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b33301415612a99576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b60018411612adc576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856000818110612b1357fe5b905060200201356001600160a01b03166001600160a01b031614612b6c576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612bcc57600080fd5b505af1158015612be0573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb612c457f00000000000000000000000000000000000000000000000000000000000000008989600081811061165e57fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b505050506040513d6020811015612cbf57600080fd5b5051612cc757fe5b600086866000198101818110612cd957fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015612d3e57600080fd5b505afa158015612d52573d6000803e3d6000fd5b505050506040513d6020811015612d6857600080fd5b50516040805160208981028281018201909352898252929350612daa9290918a918a918291850190849080828437600092019190915250899250614343915050565b6000612e258289896000198101818110612dc057fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7957600080fd5b905088811015612e665760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b600080516020614fe58339815191523289896000818110612e8357fe5b905060200201356001600160a01b03168a8a60018d8d905003818110612ea557fe5b604080516001600160a01b039687168152948616602086810191909152909102929092013593909316828201526060820187905260808201859052519081900360a0019150a1505050505050505050565b60608142811015612f3c576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686866000198101818110612f7657fe5b905060200201356001600160a01b03166001600160a01b031614612fcf576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b61302d7f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c7c92505050565b9150868260008151811061303d57fe5b60200260200101511115611e115760405162461bcd60e51b8152600401808060200182810382526028815260200180614eba6028913960400191505060405180910390fd5b6000610e4984848461478e565b60008082428110156130d6576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b60006131037f00000000000000000000000000000000000000000000000000000000000000008c8c613966565b905061311081828b6141ec565b6040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561315b57600080fd5b505af115801561316f573d6000803e3d6000fd5b505050506040513d604081101561318557600080fd5b5080516020909101519092509050600061319f8e8e61483a565b509050806001600160a01b03168e6001600160a01b0316146131c25781836131c5565b82825b90975095508a8710156132095760405162461bcd60e51b815260040180806020018281038252602781526020018061507e6027913960400191505060405180910390fd5b898610156132485760405162461bcd60e51b8152600401808060200182810382526027815260200180614f556027913960400191505060405180910390fd5b7fa8dbaaebbb025c88e9e34c84635cd8238043556e9af43fb161508c898a8e1ef9328f8f8a8a60405180866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b031681526020018381526020018281526020019550505050505060405180910390a1505050505097509795505050505050565b6000806000834281101561332f576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b3330141561337a576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b6133a88a7f00000000000000000000000000000000000000000000000000000000000000008b348c8c614918565b909450925060006133fa7f00000000000000000000000000000000000000000000000000000000000000008c7f0000000000000000000000000000000000000000000000000000000000000000613966565b90506134078b82876141ec565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561346257600080fd5b505af1158015613476573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156134fb57600080fd5b505af115801561350f573d6000803e3d6000fd5b505050506040513d602081101561352557600080fd5b505161352d57fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561358557600080fd5b505af1158015613599573d6000803e3d6000fd5b505050506040513d60208110156135af57600080fd5b50519250348410156135c7576135c733853403613b89565b505096509650969350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606112517f00000000000000000000000000000000000000000000000000000000000000008484613dc9565b600060208181529281526040808220909352908152205481565b6001546001600160a01b031681565b60008060008342811015613698576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b333014156136e3576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b6136f18c8c8c8c8c8c614918565b909450925060006137237f00000000000000000000000000000000000000000000000000000000000000008e8e613966565b90506137308d82876141ec565b61373b8c82866141ec565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561379357600080fd5b505af11580156137a7573d6000803e3d6000fd5b505050506040513d60208110156137bd57600080fd5b5051949d939c50939a509198505050505050505050565b336000908152602081815260408083206001600160a01b03861684529091529020548181101561383f576040805162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b604482015290519081900360640190fd5b336000818152602081815260408083206001600160a01b03881684529091529020838303905561387190849084613a26565b505050565b60008084116138b65760405162461bcd60e51b815260040180806020018281038252602c815260200180615005602c913960400191505060405180910390fd5b6000831180156138c65750600082115b6139015760405162461bcd60e51b81526004018080602001828103825260298152602001806150316029913960400191505060405180910390fd5b6000613915856103e663ffffffff614be316565b90506000613929828563ffffffff614be316565b9050600061394f83613943886103e863ffffffff614be316565b9063ffffffff614c4616565b905080828161395a57fe5b04979650505050505050565b6000806000613975858561483a565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe410ea0a25ce340e309f2f0fe9d58d787bb87dd63d02333e8a9a747230f61758609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310613aa35780518252601f199092019160209182019101613a84565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613b05576040519150601f19603f3d011682016040523d82523d6000602084013e613b0a565b606091505b5091509150818015613b38575080511580613b385750808060200190516020811015613b3557600080fd5b50515b61251c576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310613bd55780518252601f199092019160209182019101613bb6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613c37576040519150601f19603f3d011682016040523d82523d6000602084013e613c3c565b606091505b50509050806138715760405162461bcd60e51b8152600401808060200182810382526023815260200180614fa26023913960400191505060405180910390fd5b6060600282511015613cd5576040805162461bcd60e51b815260206004820152601f60248201527f536f7946696e616e63654c6962726172793a20494e56414c49445f5041544800604482015290519081900360640190fd5b815167ffffffffffffffff81118015613ced57600080fd5b50604051908082528060200260200182016040528015613d17578160200160208202803683370190505b5090508281600183510381518110613d2b57fe5b60209081029190910101528151600019015b8015613dc157600080613d7a87866001860381518110613d5957fe5b6020026020010151878681518110613d6d57fe5b6020026020010151614c95565b91509150613d9c848481518110613d8d57fe5b6020026020010151838361469e565b846001850381518110613dab57fe5b6020908102919091010152505060001901613d3d565b509392505050565b6060600282511015613e22576040805162461bcd60e51b815260206004820152601f60248201527f536f7946696e616e63654c6962726172793a20494e56414c49445f5041544800604482015290519081900360640190fd5b815167ffffffffffffffff81118015613e3a57600080fd5b50604051908082528060200260200182016040528015613e64578160200160208202803683370190505b5090508281600081518110613e7557fe5b60200260200101818152505060005b6001835103811015613dc157600080613eba87868581518110613ea357fe5b6020026020010151878660010181518110613d6d57fe5b91509150613edc848481518110613ecd57fe5b60200260200101518383613876565b848460010181518110613eeb57fe5b60209081029190910101525050600101613e84565b60005b600183510381101561414057600080848381518110613f1e57fe5b6020026020010151858460010181518110613f3557fe5b6020026020010151915091506000613f4d838361483a565b5090506000878560010181518110613f6157fe5b60200260200101519050600080836001600160a01b0316866001600160a01b031614613f8f57826000613f93565b6000835b91509150600060028a51038810613faa5788613feb565b613feb7f0000000000000000000000000000000000000000000000000000000000000000878c8b60020181518110613fde57fe5b6020026020010151613966565b90506140187f00000000000000000000000000000000000000000000000000000000000000008888613966565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015614055576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b03166001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156140c65781810151838201526020016140ae565b50505050905090810190601f1680156140f35780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561411557600080fd5b505af1158015614129573d6000803e3d6000fd5b505060019099019850613f03975050505050505050565b50600080516020614fe5833981519152328360008151811061415e57fe5b60200260200101518460018651038151811061417657fe5b60200260200101518660008151811061418b57fe5b6020026020010151876001895103815181106141a357fe5b602090810291909101810151604080516001600160a01b0397881681529587169286019290925292909416838501526060830152608082015290519081900360a00190a1505050565b333081141561425c576002546001600160a01b0385811691161461424e576040805162461bcd60e51b81526020600482015260146024820152732a3930b739b332b9103bb937b733903a37b5b2b760611b604482015290519081900360640190fd5b506001546001600160a01b03165b6001600160a01b03808216600090815260208181526040808320938816835292905220548281106142de5760008382111561429657508281035b6001600160a01b03808416600090815260208181526040808320938a1683529290529081205580156142cd576142cd868483613a26565b6142d8868686613a26565b5061251c565b3330146142f6576142f185338686614d5c565b61251c565b6040805162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204552433232332062616c616e636500000000000000604482015290519081900360640190fd5b60005b60018351038110156138715760008084838151811061436157fe5b602002602001015185846001018151811061437857fe5b6020026020010151915091506000614390838361483a565b50905060006143c07f00000000000000000000000000000000000000000000000000000000000000008585613966565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561440157600080fd5b505afa158015614415573d6000803e3d6000fd5b505050506040513d606081101561442b57600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a811690891614614461578284614464565b83835b915091506144c2828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7957600080fd5b95506144cf868383613876565b945050505050600080856001600160a01b0316886001600160a01b0316146144f9578260006144fd565b6000835b91509150600060028c51038a10614514578a614548565b6145487f0000000000000000000000000000000000000000000000000000000000000000898e8d60020181518110613fde57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b838110156145d25781810151838201526020016145ba565b50505050905090810190601f1680156145ff5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561462157600080fd5b505af1158015614635573d6000803e3d6000fd5b50506001909b019a506143469950505050505050505050565b80820382811115611254576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b60008084116146de5760405162461bcd60e51b815260040180806020018281038252602d815260200180614ee2602d913960400191505060405180910390fd5b6000831180156146ee5750600082115b6147295760405162461bcd60e51b81526004018080602001828103825260298152602001806150316029913960400191505060405180910390fd5b600061474d6103e8614741868863ffffffff614be316565b9063ffffffff614be316565b905060006147676103e6614741868963ffffffff61464e16565b9050614784600182848161477757fe5b049063ffffffff614c4616565b9695505050505050565b60008084116147ce5760405162461bcd60e51b8152600401808060200182810382526026815260200180614f2f6026913960400191505060405180910390fd5b6000831180156147de5750600082115b6148195760405162461bcd60e51b81526004018080602001828103825260298152602001806150316029913960400191505060405180910390fd5b8261482a858463ffffffff614be316565b8161483157fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561488e5760405162461bcd60e51b8152600401808060200182810382526026815260200180614f7c6026913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b0316106148ae5782846148b1565b83835b90925090506001600160a01b038216614911576040805162461bcd60e51b815260206004820152601f60248201527f536f7946696e616e63654c6962726172793a205a45524f5f4144445245535300604482015290519081900360640190fd5b9250929050565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f00000000000000000000000000000000000000000000000000000000000000009092169163e6a4390591604480820192602092909190829003018186803b15801561499257600080fd5b505afa1580156149a6573d6000803e3d6000fd5b505050506040513d60208110156149bc57600080fd5b50516001600160a01b03161415614a6f57604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291517f00000000000000000000000000000000000000000000000000000000000000009092169163c9c65396916044808201926020929091908290030181600087803b158015614a4257600080fd5b505af1158015614a56573d6000803e3d6000fd5b505050506040513d6020811015614a6c57600080fd5b50505b600080614a9d7f00000000000000000000000000000000000000000000000000000000000000008b8b614c95565b91509150816000148015614aaf575080155b15614abf57879350869250614b7f565b6000614acc89848461478e565b9050878111614b1f5785811015614b145760405162461bcd60e51b8152600401808060200182810382526027815260200180614f556027913960400191505060405180910390fd5b889450925082614b7d565b6000614b2c89848661478e565b905089811115614b3857fe5b87811015614b775760405162461bcd60e51b815260040180806020018281038252602781526020018061507e6027913960400191505060405180910390fd5b94508793505b505b604080513281526001600160a01b03808d1660208301528b1681830152606081018690526080810185905290517fc33fbc9654f9c0dcfcbd829113bdb10afe95619bc0824bc5959ad82fd6952bd99181900360a00190a15050965096945050505050565b6000811580614bfe57505080820282828281614bfb57fe5b04145b611254576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015611254576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6000806000614ca4858561483a565b509050600080614cb5888888613966565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015614ced57600080fd5b505afa158015614d01573d6000803e3d6000fd5b505050506040513d6060811015614d1757600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b0387811690841614614d4a578082614d4d565b81815b90999098509650505050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b60208310614de15780518252601f199092019160209182019101614dc2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614e43576040519150601f19603f3d011682016040523d82523d6000602084013e614e48565b606091505b5091509150818015614e76575080511580614e765750808060200190516020811015614e7357600080fd5b50515b614eb15760405162461bcd60e51b815260040180806020018281038252602481526020018061505a6024913960400191505060405180910390fd5b50505050505056fe536f7946696e616e6365526f757465723a204558434553534956455f494e5055545f414d4f554e54536f7946696e616e63654c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54536f7946696e616e6365526f757465723a20494e56414c49445f504154480000536f7946696e616e63654c6962726172793a20494e53554646494349454e545f414d4f554e54536f7946696e616e6365526f757465723a20494e53554646494349454e545f425f414d4f554e54536f7946696e616e63654c6962726172793a204944454e544943414c5f4144445245535345535472616e7366657248656c7065723a20434c4f5f5452414e534645525f4641494c4544536f7946696e616e6365526f757465723a204558504952454400000000000000cd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062536f7946696e616e63654c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54536f7946696e616e63654c6962726172793a20494e53554646494349454e545f4c49515549444954595472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544536f7946696e616e6365526f757465723a20494e53554646494349454e545f415f414d4f554e54536f7946696e616e6365526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e54a2646970667358221220f309623485ba52c840d787b40a57b3133ee56d6d3b93a01f43279a24c9fbb81264736f6c634300060600330000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c5000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a

Deployed ByteCode

0x6080604052600436106101c65760003560e01c80638943ec02116100f7578063baa2abde11610095578063d62dfe2211610064578063d62dfe2214610d51578063d737d0c714610d8c578063e8e3370014610da1578063f3fef3a314610e03576101ff565b8063baa2abde14610bc6578063c2a63cd814610c23578063c45a015514610c87578063d06ca61f14610c9c576101ff565b8063a00628c3116100d1578063a00628c314610a23578063a42d442f14610a76578063a6e8385214610afa578063ad615dec14610b90576101ff565b80638943ec02146108e85780639550b9a3146109785780639d76ea5814610a0e576101ff565b806338ed173911610164578063710db8ef1161013e578063710db8ef1461076757806379cce4f5146107eb57806385f8c2591461081c5780638803dbee14610852576101ff565b806338ed1739146105a55780635c11d7951461063b5780635ea83ae9146106d1576101ff565b80631b9dd7b6116101a05780631b9dd7b61461034b5780631f00ca741461039e5780632195995c146104a35780632e9b3dc314610521576101ff565b8063054d50d41461020457806306a071651461024c5780630984f17a146102bf576101ff565b366101ff57336001600160a01b037f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a16146101fd57fe5b005b600080fd5b34801561021057600080fd5b5061023a6004803603606081101561022757600080fd5b5080359060208101359060400135610e3c565b60408051918252519081900360200190f35b34801561025857600080fd5b5061023a600480360361014081101561027057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135610e51565b3480156102cb57600080fd5b5061033260048036036101408110156102e357600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135610fab565b6040805192835260208301919091528051918290030190f35b34801561035757600080fd5b50610332600480360360c081101561036e57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a0013561110a565b3480156103aa57600080fd5b50610453600480360360408110156103c157600080fd5b81359190810190604081016020820135600160201b8111156103e257600080fd5b8201836020820111156103f457600080fd5b803590602001918460208302840111600160201b8311171561041557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611224945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561048f578181015183820152602001610477565b505050509050019250505060405180910390f35b3480156104af57600080fd5b5061033260048036036101608110156104c757600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff610100820135169061012081013590610140013561125a565b6104536004803603608081101561053757600080fd5b81359190810190604081016020820135600160201b81111561055857600080fd5b82018360208201111561056a57600080fd5b803590602001918460208302840111600160201b8311171561058b57600080fd5b91935091506001600160a01b03813516906020013561139f565b3480156105b157600080fd5b50610453600480360360a08110156105c857600080fd5b813591602081013591810190606081016040820135600160201b8111156105ee57600080fd5b82018360208201111561060057600080fd5b803590602001918460208302840111600160201b8311171561062157600080fd5b91935091506001600160a01b03813516906020013561176f565b34801561064757600080fd5b506101fd600480360360a081101561065e57600080fd5b813591602081013591810190606081016040820135600160201b81111561068457600080fd5b82018360208201111561069657600080fd5b803590602001918460208302840111600160201b831117156106b757600080fd5b91935091506001600160a01b038135169060200135611920565b3480156106dd57600080fd5b50610453600480360360a08110156106f457600080fd5b813591602081013591810190606081016040820135600160201b81111561071a57600080fd5b82018360208201111561072c57600080fd5b803590602001918460208302840111600160201b8311171561074d57600080fd5b91935091506001600160a01b038135169060200135611c82565b6104536004803603608081101561077d57600080fd5b81359190810190604081016020820135600160201b81111561079e57600080fd5b8201836020820111156107b057600080fd5b803590602001918460208302840111600160201b831117156107d157600080fd5b91935091506001600160a01b038135169060200135611f16565b3480156107f757600080fd5b506108006122e3565b604080516001600160a01b039092168252519081900360200190f35b34801561082857600080fd5b5061023a6004803603606081101561083f57600080fd5b5080359060208101359060400135612307565b34801561085e57600080fd5b50610453600480360360a081101561087557600080fd5b813591602081013591810190606081016040820135600160201b81111561089b57600080fd5b8201836020820111156108ad57600080fd5b803590602001918460208302840111600160201b831117156108ce57600080fd5b91935091506001600160a01b038135169060200135612314565b3480156108f457600080fd5b506101fd6004803603606081101561090b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561093a57600080fd5b82018360208201111561094c57600080fd5b803590602001918460018302840111600160201b8311171561096d57600080fd5b50909250905061240d565b34801561098457600080fd5b506101fd600480360360a081101561099b57600080fd5b813591602081013591810190606081016040820135600160201b8111156109c157600080fd5b8201836020820111156109d357600080fd5b803590602001918460208302840111600160201b831117156109f457600080fd5b91935091506001600160a01b038135169060200135612524565b348015610a1a57600080fd5b5061080061287a565b348015610a2f57600080fd5b5061023a600480360360c0811015610a4657600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612889565b6101fd60048036036080811015610a8c57600080fd5b81359190810190604081016020820135600160201b811115610aad57600080fd5b820183602082011115610abf57600080fd5b803590602001918460208302840111600160201b83111715610ae057600080fd5b91935091506001600160a01b038135169060200135612a0a565b348015610b0657600080fd5b50610453600480360360a0811015610b1d57600080fd5b813591602081013591810190606081016040820135600160201b811115610b4357600080fd5b820183602082011115610b5557600080fd5b803590602001918460208302840111600160201b83111715610b7657600080fd5b91935091506001600160a01b038135169060200135612ef6565b348015610b9c57600080fd5b5061023a60048036036060811015610bb357600080fd5b5080359060208101359060400135613082565b348015610bd257600080fd5b50610332600480360360e0811015610be957600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c0013561308f565b610c69600480360360c0811015610c3957600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a001356132e6565b60408051938452602084019290925282820152519081900360600190f35b348015610c9357600080fd5b506108006135d5565b348015610ca857600080fd5b5061045360048036036040811015610cbf57600080fd5b81359190810190604081016020820135600160201b811115610ce057600080fd5b820183602082011115610cf257600080fd5b803590602001918460208302840111600160201b83111715610d1357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506135f9945050505050565b348015610d5d57600080fd5b5061023a60048036036040811015610d7457600080fd5b506001600160a01b0381358116916020013516613626565b348015610d9857600080fd5b50610800613640565b348015610dad57600080fd5b50610c696004803603610100811015610dc557600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e0013561364f565b348015610e0f57600080fd5b506101fd60048036036040811015610e2657600080fd5b506001600160a01b0381351690602001356137d4565b6000610e49848484613876565b949350505050565b600033301415610e9e576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b6000610eeb7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58d7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a613966565b9050600086610efa578b610efe565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b158015610f7457600080fd5b505af1158015610f88573d6000803e3d6000fd5b50505050610f9a8d8d8d8d8d8d612889565b9d9c50505050505050505050505050565b60008033301415610ff9576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b60006110467f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58e7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a613966565b9050600087611055578c611059565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b505050506110f58e8e8e8e8e8e61110a565b909f909e509c50505050505050505050505050565b6000808242811015611151576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b611180897f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a8a8a8a308a61308f565b9093509150611190898685613a26565b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156111f657600080fd5b505af115801561120a573d6000803e3d6000fd5b505050506112188583613b89565b50965096945050505050565b60606112517f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58484613c7c565b90505b92915050565b600080333014156112a8576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b60006112d57f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58f8f613966565b90506000876112e4578c6112e8565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561135e57600080fd5b505af1158015611372573d6000803e3d6000fd5b505050506113858f8f8f8f8f8f8f61308f565b809450819550505050509b509b9950505050505050505050565b606081428110156113e5576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b33301415611430576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b03168686600081811061146757fe5b905060200201356001600160a01b03166001600160a01b0316146114c0576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b61151e7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c534888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613dc992505050565b9150868260018451038151811061153157fe5b602002602001015110156115765760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663d0e30db0836000815181106115b257fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156115e557600080fd5b505af11580156115f9573d6000803e3d6000fd5b50505050507f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663a9059cbb6116907f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58989600081811061165e57fe5b905060200201356001600160a01b03168a8a600181811061167b57fe5b905060200201356001600160a01b0316613966565b8460008151811061169d57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156116f457600080fd5b505af1158015611708573d6000803e3d6000fd5b505050506040513d602081101561171e57600080fd5b505161172657fe5b61176582878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613f00915050565b5095945050505050565b606081428110156117b5576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6118137f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c589888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613dc992505050565b9150868260018451038151811061182657fe5b6020026020010151101561186b5760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b6118d68686600081811061187b57fe5b905060200201356001600160a01b03166118bc7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58989600081811061165e57fe5b846000815181106118c957fe5b60200260200101516141ec565b61191582878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613f00915050565b509695505050505050565b8042811015611964576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b600184116119a7576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b611a1b858560008181106119b757fe5b905060200201356001600160a01b0316611a157f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c5888860008181106119f857fe5b905060200201356001600160a01b03168989600181811061167b57fe5b896141ec565b600085856000198101818110611a2d57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611a9257600080fd5b505afa158015611aa6573d6000803e3d6000fd5b505050506040513d6020811015611abc57600080fd5b50516040805160208881028281018201909352888252929350611afe929091899189918291850190849080828437600092019190915250889250614343915050565b6000611bb18288886000198101818110611b1457fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7957600080fd5b505afa158015611b8d573d6000803e3d6000fd5b505050506040513d6020811015611ba357600080fd5b50519063ffffffff61464e16565b905087811015611bf25760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b600080516020614fe58339815191523288886000818110611c0f57fe5b905060200201356001600160a01b0316898960018c8c905003818110611c3157fe5b604080516001600160a01b03968716815294861660208681019190915290910292909201359390931682820152606082018d905260808201859052519081900360a0019150a1505050505050505050565b60608142811015611cc8576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a1686866000198101818110611d0257fe5b905060200201356001600160a01b03166001600160a01b031614611d5b576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b611db97f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c589888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613dc992505050565b91508682600184510381518110611dcc57fe5b60200260200101511015611e115760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b611e218686600081811061187b57fe5b611e6082878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613f00915050565b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b0316632e1a7d4d83600185510381518110611e9f57fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611edd57600080fd5b505af1158015611ef1573d6000803e3d6000fd5b505050506119158483600185510381518110611f0957fe5b6020026020010151613b89565b60608142811015611f5c576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b33301415611fa7576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031686866000818110611fde57fe5b905060200201356001600160a01b03166001600160a01b031614612037576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b6120957f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c588888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c7c92505050565b915034826000815181106120a557fe5b602002602001015111156120ea5760405162461bcd60e51b8152600401808060200182810382526028815260200180614eba6028913960400191505060405180910390fd5b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663d0e30db08360008151811061212657fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561215957600080fd5b505af115801561216d573d6000803e3d6000fd5b50505050507f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663a9059cbb6121d27f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58989600081811061165e57fe5b846000815181106121df57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561223657600080fd5b505af115801561224a573d6000803e3d6000fd5b505050506040513d602081101561226057600080fd5b505161226857fe5b6122a782878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613f00915050565b816000815181106122b457fe5b60200260200101513411156117655761176533836000815181106122d457fe5b60200260200101513403613b89565b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a81565b6000610e4984848461469e565b6060814281101561235a576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6123b87f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c589888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c7c92505050565b915086826000815181106123c857fe5b6020026020010151111561186b5760405162461bcd60e51b8152600401808060200182810382526028815260200180614eba6028913960400191505060405180910390fd5b6001600160a01b03841660009081526020818152604080832033845290915290208054840190556024811061251e57600180546001600160a01b0386166001600160a01b03199182161790915560028054909116331790556040516000903090829085908590808383808284376040519201945060009350909150508083038185875af1925050503d80600081146124c1576040519150601f19603f3d011682016040523d82523d6000602084013e6124c6565b606091505b505090508061251c576040805162461bcd60e51b815260206004820152601b60248201527f45524332323320696e7465726e616c2063616c6c206661696c65640000000000604482015290519081900360640190fd5b505b50505050565b8042811015612568576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b600184116125ab576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a16858560001981018181106125e557fe5b905060200201356001600160a01b03166001600160a01b03161461263e576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b61264e858560008181106119b757fe5b61268c858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614343915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a16916370a0823191602480820192602092909190829003018186803b1580156126f657600080fd5b505afa15801561270a573d6000803e3d6000fd5b505050506040513d602081101561272057600080fd5b50519050868110156127635760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156127c957600080fd5b505af11580156127dd573d6000803e3d6000fd5b505050506127eb8482613b89565b600080516020614fe5833981519152328787600081811061280857fe5b905060200201356001600160a01b0316888860018b8b90500381811061282a57fe5b604080516001600160a01b03968716815294861660208681019190915290910292909201359390931682820152606082018c905260808201859052519081900360a0019150a15050505050505050565b6002546001600160a01b031681565b600081428110156128cf576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6128fe887f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a898989308961308f565b604080516370a0823160e01b8152306004820152905191945061298292508a9187916001600160a01b038416916370a0823191602480820192602092909190829003018186803b15801561295157600080fd5b505afa158015612965573d6000803e3d6000fd5b505050506040513d602081101561297b57600080fd5b5051613a26565b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156129e857600080fd5b505af11580156129fc573d6000803e3d6000fd5b505050506119158483613b89565b8042811015612a4e576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b33301415612a99576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b60018411612adc576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031685856000818110612b1357fe5b905060200201356001600160a01b03166001600160a01b031614612b6c576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b60003490507f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612bcc57600080fd5b505af1158015612be0573d6000803e3d6000fd5b50505050507f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663a9059cbb612c457f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58989600081811061165e57fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b505050506040513d6020811015612cbf57600080fd5b5051612cc757fe5b600086866000198101818110612cd957fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015612d3e57600080fd5b505afa158015612d52573d6000803e3d6000fd5b505050506040513d6020811015612d6857600080fd5b50516040805160208981028281018201909352898252929350612daa9290918a918a918291850190849080828437600092019190915250899250614343915050565b6000612e258289896000198101818110612dc057fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7957600080fd5b905088811015612e665760405162461bcd60e51b815260040180806020018281038252602c8152602001806150a5602c913960400191505060405180910390fd5b600080516020614fe58339815191523289896000818110612e8357fe5b905060200201356001600160a01b03168a8a60018d8d905003818110612ea557fe5b604080516001600160a01b039687168152948616602086810191909152909102929092013593909316828201526060820187905260808201859052519081900360a0019150a1505050505050505050565b60608142811015612f3c576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a1686866000198101818110612f7657fe5b905060200201356001600160a01b03166001600160a01b031614612fcf576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f0f833981519152604482015290519081900360640190fd5b61302d7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c589888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c7c92505050565b9150868260008151811061303d57fe5b60200260200101511115611e115760405162461bcd60e51b8152600401808060200182810382526028815260200180614eba6028913960400191505060405180910390fd5b6000610e4984848461478e565b60008082428110156130d6576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b60006131037f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58c8c613966565b905061311081828b6141ec565b6040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561315b57600080fd5b505af115801561316f573d6000803e3d6000fd5b505050506040513d604081101561318557600080fd5b5080516020909101519092509050600061319f8e8e61483a565b509050806001600160a01b03168e6001600160a01b0316146131c25781836131c5565b82825b90975095508a8710156132095760405162461bcd60e51b815260040180806020018281038252602781526020018061507e6027913960400191505060405180910390fd5b898610156132485760405162461bcd60e51b8152600401808060200182810382526027815260200180614f556027913960400191505060405180910390fd5b7fa8dbaaebbb025c88e9e34c84635cd8238043556e9af43fb161508c898a8e1ef9328f8f8a8a60405180866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b031681526020018381526020018281526020019550505050505060405180910390a1505050505097509795505050505050565b6000806000834281101561332f576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b3330141561337a576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b6133a88a7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a8b348c8c614918565b909450925060006133fa7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58c7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a613966565b90506134078b82876141ec565b7f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561346257600080fd5b505af1158015613476573d6000803e3d6000fd5b50505050507f000000000000000000000000f5ad6f6edec824c7fd54a66d241a227f6503ad3a6001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156134fb57600080fd5b505af115801561350f573d6000803e3d6000fd5b505050506040513d602081101561352557600080fd5b505161352d57fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561358557600080fd5b505af1158015613599573d6000803e3d6000fd5b505050506040513d60208110156135af57600080fd5b50519250348410156135c7576135c733853403613b89565b505096509650969350505050565b7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c581565b60606112517f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58484613dc9565b600060208181529281526040808220909352908152205481565b6001546001600160a01b031681565b60008060008342811015613698576040805162461bcd60e51b81526020600482015260196024820152600080516020614fc5833981519152604482015290519081900360640190fd5b333014156136e3576040805162461bcd60e51b8152602060048201526013602482015272115490cc8c8cc81b9bdd081858d8d95c1d1959606a1b604482015290519081900360640190fd5b6136f18c8c8c8c8c8c614918565b909450925060006137237f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58e8e613966565b90506137308d82876141ec565b61373b8c82866141ec565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561379357600080fd5b505af11580156137a7573d6000803e3d6000fd5b505050506040513d60208110156137bd57600080fd5b5051949d939c50939a509198505050505050505050565b336000908152602081815260408083206001600160a01b03861684529091529020548181101561383f576040805162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b604482015290519081900360640190fd5b336000818152602081815260408083206001600160a01b03881684529091529020838303905561387190849084613a26565b505050565b60008084116138b65760405162461bcd60e51b815260040180806020018281038252602c815260200180615005602c913960400191505060405180910390fd5b6000831180156138c65750600082115b6139015760405162461bcd60e51b81526004018080602001828103825260298152602001806150316029913960400191505060405180910390fd5b6000613915856103e663ffffffff614be316565b90506000613929828563ffffffff614be316565b9050600061394f83613943886103e863ffffffff614be316565b9063ffffffff614c4616565b905080828161395a57fe5b04979650505050505050565b6000806000613975858561483a565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe410ea0a25ce340e309f2f0fe9d58d787bb87dd63d02333e8a9a747230f61758609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310613aa35780518252601f199092019160209182019101613a84565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613b05576040519150601f19603f3d011682016040523d82523d6000602084013e613b0a565b606091505b5091509150818015613b38575080511580613b385750808060200190516020811015613b3557600080fd5b50515b61251c576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310613bd55780518252601f199092019160209182019101613bb6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613c37576040519150601f19603f3d011682016040523d82523d6000602084013e613c3c565b606091505b50509050806138715760405162461bcd60e51b8152600401808060200182810382526023815260200180614fa26023913960400191505060405180910390fd5b6060600282511015613cd5576040805162461bcd60e51b815260206004820152601f60248201527f536f7946696e616e63654c6962726172793a20494e56414c49445f5041544800604482015290519081900360640190fd5b815167ffffffffffffffff81118015613ced57600080fd5b50604051908082528060200260200182016040528015613d17578160200160208202803683370190505b5090508281600183510381518110613d2b57fe5b60209081029190910101528151600019015b8015613dc157600080613d7a87866001860381518110613d5957fe5b6020026020010151878681518110613d6d57fe5b6020026020010151614c95565b91509150613d9c848481518110613d8d57fe5b6020026020010151838361469e565b846001850381518110613dab57fe5b6020908102919091010152505060001901613d3d565b509392505050565b6060600282511015613e22576040805162461bcd60e51b815260206004820152601f60248201527f536f7946696e616e63654c6962726172793a20494e56414c49445f5041544800604482015290519081900360640190fd5b815167ffffffffffffffff81118015613e3a57600080fd5b50604051908082528060200260200182016040528015613e64578160200160208202803683370190505b5090508281600081518110613e7557fe5b60200260200101818152505060005b6001835103811015613dc157600080613eba87868581518110613ea357fe5b6020026020010151878660010181518110613d6d57fe5b91509150613edc848481518110613ecd57fe5b60200260200101518383613876565b848460010181518110613eeb57fe5b60209081029190910101525050600101613e84565b60005b600183510381101561414057600080848381518110613f1e57fe5b6020026020010151858460010181518110613f3557fe5b6020026020010151915091506000613f4d838361483a565b5090506000878560010181518110613f6157fe5b60200260200101519050600080836001600160a01b0316866001600160a01b031614613f8f57826000613f93565b6000835b91509150600060028a51038810613faa5788613feb565b613feb7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c5878c8b60020181518110613fde57fe5b6020026020010151613966565b90506140187f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58888613966565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015614055576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b03166001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156140c65781810151838201526020016140ae565b50505050905090810190601f1680156140f35780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561411557600080fd5b505af1158015614129573d6000803e3d6000fd5b505060019099019850613f03975050505050505050565b50600080516020614fe5833981519152328360008151811061415e57fe5b60200260200101518460018651038151811061417657fe5b60200260200101518660008151811061418b57fe5b6020026020010151876001895103815181106141a357fe5b602090810291909101810151604080516001600160a01b0397881681529587169286019290925292909416838501526060830152608082015290519081900360a00190a1505050565b333081141561425c576002546001600160a01b0385811691161461424e576040805162461bcd60e51b81526020600482015260146024820152732a3930b739b332b9103bb937b733903a37b5b2b760611b604482015290519081900360640190fd5b506001546001600160a01b03165b6001600160a01b03808216600090815260208181526040808320938816835292905220548281106142de5760008382111561429657508281035b6001600160a01b03808416600090815260208181526040808320938a1683529290529081205580156142cd576142cd868483613a26565b6142d8868686613a26565b5061251c565b3330146142f6576142f185338686614d5c565b61251c565b6040805162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768204552433232332062616c616e636500000000000000604482015290519081900360640190fd5b60005b60018351038110156138715760008084838151811061436157fe5b602002602001015185846001018151811061437857fe5b6020026020010151915091506000614390838361483a565b50905060006143c07f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58585613966565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561440157600080fd5b505afa158015614415573d6000803e3d6000fd5b505050506040513d606081101561442b57600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a811690891614614461578284614464565b83835b915091506144c2828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7957600080fd5b95506144cf868383613876565b945050505050600080856001600160a01b0316886001600160a01b0316146144f9578260006144fd565b6000835b91509150600060028c51038a10614514578a614548565b6145487f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c5898e8d60020181518110613fde57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b838110156145d25781810151838201526020016145ba565b50505050905090810190601f1680156145ff5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561462157600080fd5b505af1158015614635573d6000803e3d6000fd5b50506001909b019a506143469950505050505050505050565b80820382811115611254576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b60008084116146de5760405162461bcd60e51b815260040180806020018281038252602d815260200180614ee2602d913960400191505060405180910390fd5b6000831180156146ee5750600082115b6147295760405162461bcd60e51b81526004018080602001828103825260298152602001806150316029913960400191505060405180910390fd5b600061474d6103e8614741868863ffffffff614be316565b9063ffffffff614be316565b905060006147676103e6614741868963ffffffff61464e16565b9050614784600182848161477757fe5b049063ffffffff614c4616565b9695505050505050565b60008084116147ce5760405162461bcd60e51b8152600401808060200182810382526026815260200180614f2f6026913960400191505060405180910390fd5b6000831180156147de5750600082115b6148195760405162461bcd60e51b81526004018080602001828103825260298152602001806150316029913960400191505060405180910390fd5b8261482a858463ffffffff614be316565b8161483157fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561488e5760405162461bcd60e51b8152600401808060200182810382526026815260200180614f7c6026913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b0316106148ae5782846148b1565b83835b90925090506001600160a01b038216614911576040805162461bcd60e51b815260206004820152601f60248201527f536f7946696e616e63654c6962726172793a205a45524f5f4144445245535300604482015290519081900360640190fd5b9250929050565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c59092169163e6a4390591604480820192602092909190829003018186803b15801561499257600080fd5b505afa1580156149a6573d6000803e3d6000fd5b505050506040513d60208110156149bc57600080fd5b50516001600160a01b03161415614a6f57604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291517f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c59092169163c9c65396916044808201926020929091908290030181600087803b158015614a4257600080fd5b505af1158015614a56573d6000803e3d6000fd5b505050506040513d6020811015614a6c57600080fd5b50505b600080614a9d7f0000000000000000000000009cc7c769ea3b37f1af0ad642a268b80dc80754c58b8b614c95565b91509150816000148015614aaf575080155b15614abf57879350869250614b7f565b6000614acc89848461478e565b9050878111614b1f5785811015614b145760405162461bcd60e51b8152600401808060200182810382526027815260200180614f556027913960400191505060405180910390fd5b889450925082614b7d565b6000614b2c89848661478e565b905089811115614b3857fe5b87811015614b775760405162461bcd60e51b815260040180806020018281038252602781526020018061507e6027913960400191505060405180910390fd5b94508793505b505b604080513281526001600160a01b03808d1660208301528b1681830152606081018690526080810185905290517fc33fbc9654f9c0dcfcbd829113bdb10afe95619bc0824bc5959ad82fd6952bd99181900360a00190a15050965096945050505050565b6000811580614bfe57505080820282828281614bfb57fe5b04145b611254576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015611254576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6000806000614ca4858561483a565b509050600080614cb5888888613966565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015614ced57600080fd5b505afa158015614d01573d6000803e3d6000fd5b505050506040513d6060811015614d1757600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b0387811690841614614d4a578082614d4d565b81815b90999098509650505050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b60208310614de15780518252601f199092019160209182019101614dc2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614e43576040519150601f19603f3d011682016040523d82523d6000602084013e614e48565b606091505b5091509150818015614e76575080511580614e765750808060200190516020811015614e7357600080fd5b50515b614eb15760405162461bcd60e51b815260040180806020018281038252602481526020018061505a6024913960400191505060405180910390fd5b50505050505056fe536f7946696e616e6365526f757465723a204558434553534956455f494e5055545f414d4f554e54536f7946696e616e63654c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54536f7946696e616e6365526f757465723a20494e56414c49445f504154480000536f7946696e616e63654c6962726172793a20494e53554646494349454e545f414d4f554e54536f7946696e616e6365526f757465723a20494e53554646494349454e545f425f414d4f554e54536f7946696e616e63654c6962726172793a204944454e544943414c5f4144445245535345535472616e7366657248656c7065723a20434c4f5f5452414e534645525f4641494c4544536f7946696e616e6365526f757465723a204558504952454400000000000000cd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062536f7946696e616e63654c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54536f7946696e616e63654c6962726172793a20494e53554646494349454e545f4c49515549444954595472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544536f7946696e616e6365526f757465723a20494e53554646494349454e545f415f414d4f554e54536f7946696e616e6365526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e54a2646970667358221220f309623485ba52c840d787b40a57b3133ee56d6d3b93a01f43279a24c9fbb81264736f6c63430006060033