Address Details
contract

0x1421bDe4B10e8dd459b3BCb598810B1337D56842

Contract Name
UniswapV2Router02
Creator
0xcc159b–ab66b5 at 0xd84fd4–8d6505
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
694,100 Transactions
Transfers
52 Transfers
Gas Used
87,571,971,262
Last Balance Update
28929896
This contract has been partially verified via Sourcify. View contract in Sourcify repository
Contract name:
UniswapV2Router02




Optimization enabled
true
Compiler version
v0.6.12+commit.27d51765




Optimization runs
200
EVM Version
istanbul




Verified at
2021-10-14T17:15:31.655599Z

Contract source code

/**
 *Submitted for verification at polygonscan.com on 2021-06-09
*/

// File: contracts/uniswapv2/interfaces/IUniswapV2Pair.sol

pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

// File: contracts/uniswapv2/libraries/SafeMath.sol

pragma solidity =0.6.12;

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

library SafeMathUniswap {
    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');
    }
}

// File: contracts/uniswapv2/libraries/UniswapV2Library.sol

pragma solidity >=0.5.0;



library UniswapV2Library {
    using SafeMathUniswap 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, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: 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'e18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(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, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: 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, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

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

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

// File: contracts/uniswapv2/libraries/TransferHelper.sol

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

pragma solidity >=0.6.0;

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

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

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

// File: contracts/uniswapv2/interfaces/IUniswapV2Router01.sol

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() 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 removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    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 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 quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// File: contracts/uniswapv2/interfaces/IUniswapV2Router02.sol

pragma solidity >=0.6.2;


interface IUniswapV2Router02 is IUniswapV2Router01 {
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

// File: contracts/uniswapv2/interfaces/IUniswapV2Factory.sol

pragma solidity >=0.5.0;

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

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);
    function migrator() 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;
    function setMigrator(address) external;
}

// File: contracts/uniswapv2/interfaces/IERC20.sol

pragma solidity >=0.5.0;

interface IERC20Uniswap {
    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);
}

// File: contracts/uniswapv2/UniswapV2Router02.sol

pragma solidity =0.6.12;

contract UniswapV2Router02 is IUniswapV2Router02 {
    using SafeMathUniswap for uint;

    address public immutable override factory;
    
    modifier ensure(uint deadline) {
        require(deadline >= block.timestamp, 'UniswapV2Router: EXPIRED');
        _;
    }

    constructor(address _factory) public {
        factory = _factory;
    }

    // **** 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 (IUniswapV2Factory(factory).getPair(tokenA, tokenB) == address(0)) {
            IUniswapV2Factory(factory).createPair(tokenA, tokenB);
        }
        (uint reserveA, uint reserveB) = UniswapV2Library.getReserves(factory, tokenA, tokenB);
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint amountBOptimal = UniswapV2Library.quote(amountADesired, reserveA, reserveB);
            if (amountBOptimal <= amountBDesired) {
                require(amountBOptimal >= amountBMin, 'UniswapV2Router: INSUFFICIENT_B_AMOUNT');
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint amountAOptimal = UniswapV2Library.quote(amountBDesired, reserveB, reserveA);
                assert(amountAOptimal <= amountADesired);
                require(amountAOptimal >= amountAMin, 'UniswapV2Router: INSUFFICIENT_A_AMOUNT');
                (amountA, amountB) = (amountAOptimal, amountBDesired);
            }
        }
    }
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) returns (uint amountA, uint amountB, uint liquidity) {
        (amountA, amountB) = _addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin);
        address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB);
        TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA);
        TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB);
        liquidity = IUniswapV2Pair(pair).mint(to);
    }

    // **** 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 = UniswapV2Library.pairFor(factory, tokenA, tokenB);
        IUniswapV2Pair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
        (uint amount0, uint amount1) = IUniswapV2Pair(pair).burn(to);
        (address token0,) = UniswapV2Library.sortTokens(tokenA, tokenB);
        (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0);
        require(amountA >= amountAMin, 'UniswapV2Router: INSUFFICIENT_A_AMOUNT');
        require(amountB >= amountBMin, 'UniswapV2Router: INSUFFICIENT_B_AMOUNT');
    }
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override returns (uint amountA, uint amountB) {
        address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB);
        uint value = approveMax ? uint(-1) : liquidity;
        IUniswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountA, amountB) = removeLiquidity(tokenA, tokenB, liquidity, amountAMin, amountBMin, 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,) = UniswapV2Library.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 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to;
            IUniswapV2Pair(UniswapV2Library.pairFor(factory, input, output)).swap(
                amount0Out, amount1Out, to, new bytes(0)
            );
        }
    }
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) returns (uint[] memory amounts) {
        amounts = UniswapV2Library.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, UniswapV2Library.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 = UniswapV2Library.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, 'UniswapV2Router: EXCESSIVE_INPUT_AMOUNT');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]
        );
        _swap(amounts, path, to);
    }

    // **** 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,) = UniswapV2Library.sortTokens(input, output);
            IUniswapV2Pair pair = IUniswapV2Pair(UniswapV2Library.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 = IERC20Uniswap(input).balanceOf(address(pair)).sub(reserveInput);
            amountOutput = UniswapV2Library.getAmountOut(amountInput, reserveInput, reserveOutput);
            }
            (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0));
            address to = i < path.length - 2 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to;
            pair.swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override ensure(deadline) {
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn
        );
        uint balanceBefore = IERC20Uniswap(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20Uniswap(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
            'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'
        );
    }

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

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

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

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

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

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_factory","internalType":"address"}]},{"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":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"factory","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"}],"name":"getAmountIn","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"reserveIn","internalType":"uint256"},{"type":"uint256","name":"reserveOut","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"}],"name":"getAmountOut","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"reserveIn","internalType":"uint256"},{"type":"uint256","name":"reserveOut","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"getAmountsIn","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"getAmountsOut","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"quote","inputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"reserveA","internalType":"uint256"},{"type":"uint256","name":"reserveB","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"removeLiquidity","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"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":"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":"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"}]}]
              

Contract Creation Code

Verify & Publish
0x60a060405234801561001057600080fd5b506040516124803803806124808339818101604052602081101561003357600080fd5b5051606081901b6001600160601b0319166080526001600160a01b03166123c96100b76000398061061052806106495280610784528061085b52806109875280610bf25280610cfb5280610ef35280610f1c5280610fa5528061169d52806116e0528061188252806119f85280611dee5280611ea75280611f5a52506123c96000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638803dbee116100715780638803dbee146103b3578063ad615dec1461043c578063baa2abde14610465578063c45a0155146104b5578063d06ca61f146104d9578063e8e3370014610581576100b4565b8063054d50d4146100b95780631f00ca74146100f45780632195995c146101ec57806338ed1739146102765780635c11d795146102ff57806385f8c2591461038a575b600080fd5b6100e2600480360360608110156100cf57600080fd5b50803590602081013590604001356105f4565b60408051918252519081900360200190f35b61019c6004803603604081101561010a57600080fd5b81359190810190604081016020820135600160201b81111561012b57600080fd5b82018360208201111561013d57600080fd5b803590602001918460208302840111600160201b8311171561015e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610609945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101d85781810151838201526020016101c0565b505050509050019250505060405180910390f35b61025d600480360361016081101561020357600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff610100820135169061012081013590610140013561063f565b6040805192835260208301919091528051918290030190f35b61019c600480360360a081101561028c57600080fd5b813591602081013591810190606081016040820135600160201b8111156102b257600080fd5b8201836020820111156102c457600080fd5b803590602001918460208302840111600160201b831117156102e557600080fd5b91935091506001600160a01b038135169060200135610739565b610388600480360360a081101561031557600080fd5b813591602081013591810190606081016040820135600160201b81111561033b57600080fd5b82018360208201111561034d57600080fd5b803590602001918460208302840111600160201b8311171561036e57600080fd5b91935091506001600160a01b03813516906020013561091d565b005b6100e2600480360360608110156103a057600080fd5b5080359060208101359060400135610b9a565b61019c600480360360a08110156103c957600080fd5b813591602081013591810190606081016040820135600160201b8111156103ef57600080fd5b82018360208201111561040157600080fd5b803590602001918460208302840111600160201b8311171561042257600080fd5b91935091506001600160a01b038135169060200135610ba7565b6100e26004803603606081101561045257600080fd5b5080359060208101359060400135610ca0565b61025d600480360360e081101561047b57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135610cad565b6104bd610ef1565b604080516001600160a01b039092168252519081900360200190f35b61019c600480360360408110156104ef57600080fd5b81359190810190604081016020820135600160201b81111561051057600080fd5b82018360208201111561052257600080fd5b803590602001918460208302840111600160201b8311171561054357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f15945050505050565b6105d6600480360361010081101561059857600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135610f42565b60408051938452602084019290925282820152519081900360600190f35b6000610601848484611075565b949350505050565b60606106367f0000000000000000000000000000000000000000000000000000000000000000848461114d565b90505b92915050565b600080600061066f7f00000000000000000000000000000000000000000000000000000000000000008f8f61129a565b905060008761067e578c610682565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156106f857600080fd5b505af115801561070c573d6000803e3d6000fd5b5050505061071f8f8f8f8f8f8f8f610cad565b809450819550505050509b509b9950505050505050505050565b6060814281101561077f576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b6107dd7f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061135a92505050565b915086826001845103815181106107f057fe5b602002602001015110156108355760405162461bcd60e51b815260040180806020018281038252602b8152602001806122fa602b913960400191505060405180910390fd5b6108d38686600081811061084557fe5b905060200201356001600160a01b0316336108b97f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061088757fe5b905060200201356001600160a01b03168b8b60018181106108a457fe5b905060200201356001600160a01b031661129a565b856000815181106108c657fe5b6020026020010151611491565b610912828787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508992506115ee915050565b509695505050505050565b8042811015610961576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b6109d68585600081811061097157fe5b905060200201356001600160a01b0316336109d07f0000000000000000000000000000000000000000000000000000000000000000898960008181106109b357fe5b905060200201356001600160a01b03168a8a60018181106108a457fe5b8a611491565b6000858560001981018181106109e857fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610a4457600080fd5b505afa158015610a58573d6000803e3d6000fd5b505050506040513d6020811015610a6e57600080fd5b50516040805160208881028281018201909352888252929350610ab092909189918991829185019084908082843760009201919091525088925061182b915050565b86610b538288886000198101818110610ac557fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b2157600080fd5b505afa158015610b35573d6000803e3d6000fd5b505050506040513d6020811015610b4b57600080fd5b505190611b32565b1015610b905760405162461bcd60e51b815260040180806020018281038252602b8152602001806122fa602b913960400191505060405180910390fd5b5050505050505050565b6000610601848484611b82565b60608142811015610bed576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b610c4b7f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061114d92505050565b91508682600081518110610c5b57fe5b602002602001015111156108355760405162461bcd60e51b81526004018080602001828103825260278152602001806122ad6027913960400191505060405180910390fd5b6000610601848484611c5a565b6000808242811015610cf4576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b6000610d217f00000000000000000000000000000000000000000000000000000000000000008c8c61129a565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015610d7c57600080fd5b505af1158015610d90573d6000803e3d6000fd5b505050506040513d6020811015610da657600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015610df357600080fd5b505af1158015610e07573d6000803e3d6000fd5b505050506040513d6040811015610e1d57600080fd5b50805160209091015190925090506000610e378e8e611d00565b509050806001600160a01b03168e6001600160a01b031614610e5a578183610e5d565b82825b90975095508a871015610ea15760405162461bcd60e51b81526004018080602001828103825260268152602001806122d46026913960400191505060405180910390fd5b89861015610ee05760405162461bcd60e51b815260040180806020018281038252602681526020018061223a6026913960400191505060405180910390fd5b505050505097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606106367f0000000000000000000000000000000000000000000000000000000000000000848461135a565b60008060008342811015610f8b576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b610f998c8c8c8c8c8c611dde565b90945092506000610fcb7f00000000000000000000000000000000000000000000000000000000000000008e8e61129a565b9050610fd98d338388611491565b610fe58c338387611491565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b15801561103457600080fd5b505af1158015611048573d6000803e3d6000fd5b505050506040513d602081101561105e57600080fd5b5051949d939c50939a509198505050505050505050565b60008084116110b55760405162461bcd60e51b815260040180806020018281038252602b815260200180612349602b913960400191505060405180910390fd5b6000831180156110c55750600082115b6111005760405162461bcd60e51b81526004018080602001828103825260288152602001806122606028913960400191505060405180910390fd5b600061110e856103e561206f565b9050600061111c828561206f565b9050600061113683611130886103e861206f565b906120d2565b905080828161114157fe5b04979650505050505050565b60606002825110156111a6576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff811180156111be57600080fd5b506040519080825280602002602001820160405280156111e8578160200160208202803683370190505b50905082816001835103815181106111fc57fe5b60209081029190910101528151600019015b80156112925760008061124b8786600186038151811061122a57fe5b602002602001015187868151811061123e57fe5b6020026020010151612121565b9150915061126d84848151811061125e57fe5b60200260200101518383611b82565b84600185038151811061127c57fe5b602090810291909101015250506000190161120e565b509392505050565b60008060006112a98585611d00565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60606002825110156113b3576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff811180156113cb57600080fd5b506040519080825280602002602001820160405280156113f5578160200160208202803683370190505b509050828160008151811061140657fe5b60200260200101818152505060005b60018351038110156112925760008061144b8786858151811061143457fe5b602002602001015187866001018151811061123e57fe5b9150915061146d84848151811061145e57fe5b60200260200101518383611075565b84846001018151811061147c57fe5b60209081029190910101525050600101611415565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106115165780518252601f1990920191602091820191016114f7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611578576040519150601f19603f3d011682016040523d82523d6000602084013e61157d565b606091505b50915091508180156115ab5750805115806115ab57508080602001905160208110156115a857600080fd5b50515b6115e65760405162461bcd60e51b81526004018080602001828103825260248152602001806123256024913960400191505060405180910390fd5b505050505050565b60005b60018351038110156118255760008084838151811061160c57fe5b602002602001015185846001018151811061162357fe5b602002602001015191509150600061163b8383611d00565b509050600087856001018151811061164f57fe5b60200260200101519050600080836001600160a01b0316866001600160a01b03161461167d57826000611681565b6000835b91509150600060028a5103881061169857886116d9565b6116d97f0000000000000000000000000000000000000000000000000000000000000000878c8b600201815181106116cc57fe5b602002602001015161129a565b90506117067f0000000000000000000000000000000000000000000000000000000000000000888861129a565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015611743576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117ab578181015183820152602001611793565b50505050905090810190601f1680156117d85780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156117fa57600080fd5b505af115801561180e573d6000803e3d6000fd5b5050600190990198506115f1975050505050505050565b50505050565b60005b6001835103811015611b2d5760008084838151811061184957fe5b602002602001015185846001018151811061186057fe5b60200260200101519150915060006118788383611d00565b50905060006118a87f0000000000000000000000000000000000000000000000000000000000000000858561129a565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d606081101561191357600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a81169089161461194957828461194c565b83835b915091506119a1828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b2157600080fd5b95506119ae868383611075565b945050505050600080856001600160a01b0316886001600160a01b0316146119d8578260006119dc565b6000835b91509150600060028c51038a106119f3578a611a27565b611a277f0000000000000000000000000000000000000000000000000000000000000000898e8d600201815181106116cc57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015611ab1578181015183820152602001611a99565b50505050905090810190601f168015611ade5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611b0057600080fd5b505af1158015611b14573d6000803e3d6000fd5b50506001909b019a5061182e9950505050505050505050565b505050565b80820382811115610639576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6000808411611bc25760405162461bcd60e51b815260040180806020018281038252602c8152602001806121e9602c913960400191505060405180910390fd5b600083118015611bd25750600082115b611c0d5760405162461bcd60e51b81526004018080602001828103825260288152602001806122606028913960400191505060405180910390fd5b6000611c256103e8611c1f868861206f565b9061206f565b90506000611c396103e5611c1f8689611b32565b9050611c506001828481611c4957fe5b04906120d2565b9695505050505050565b6000808411611c9a5760405162461bcd60e51b81526004018080602001828103825260258152602001806122886025913960400191505060405180910390fd5b600083118015611caa5750600082115b611ce55760405162461bcd60e51b81526004018080602001828103825260288152602001806122606028913960400191505060405180910390fd5b82611cf0858461206f565b81611cf757fe5b04949350505050565b600080826001600160a01b0316846001600160a01b03161415611d545760405162461bcd60e51b81526004018080602001828103825260258152602001806122156025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611d74578284611d77565b83835b90925090506001600160a01b038216611dd7576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b60008060006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439058a8a6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015611e6a57600080fd5b505afa158015611e7e573d6000803e3d6000fd5b505050506040513d6020811015611e9457600080fd5b50516001600160a01b03161415611f52577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c9c6539689896040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b158015611f2557600080fd5b505af1158015611f39573d6000803e3d6000fd5b505050506040513d6020811015611f4f57600080fd5b50505b600080611f807f00000000000000000000000000000000000000000000000000000000000000008b8b612121565b91509150816000148015611f92575080155b15611fa257879350869250612062565b6000611faf898484611c5a565b90508781116120025785811015611ff75760405162461bcd60e51b815260040180806020018281038252602681526020018061223a6026913960400191505060405180910390fd5b889450925082612060565b600061200f898486611c5a565b90508981111561201b57fe5b8781101561205a5760405162461bcd60e51b81526004018080602001828103825260268152602001806122d46026913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b600081158061208a5750508082028282828161208757fe5b04145b610639576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015610639576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b60008060006121308585611d00565b50905060008061214188888861129a565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561217957600080fd5b505afa15801561218d573d6000803e3d6000fd5b505050506040513d60608110156121a357600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03878116908416146121d65780826121d9565b81815b9099909850965050505050505056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e69737761705632526f757465723a20494e53554646494349454e545f425f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e54556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54556e69737761705632526f757465723a20494e53554646494349454e545f415f414d4f554e54556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54556e69737761705632526f757465723a20455850495245440000000000000000a2646970667358221220839718cfd85833d0d66983f57f663712e01efb02d3c81e09655e54e1ff2acee764736f6c634300060c0033000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80638803dbee116100715780638803dbee146103b3578063ad615dec1461043c578063baa2abde14610465578063c45a0155146104b5578063d06ca61f146104d9578063e8e3370014610581576100b4565b8063054d50d4146100b95780631f00ca74146100f45780632195995c146101ec57806338ed1739146102765780635c11d795146102ff57806385f8c2591461038a575b600080fd5b6100e2600480360360608110156100cf57600080fd5b50803590602081013590604001356105f4565b60408051918252519081900360200190f35b61019c6004803603604081101561010a57600080fd5b81359190810190604081016020820135600160201b81111561012b57600080fd5b82018360208201111561013d57600080fd5b803590602001918460208302840111600160201b8311171561015e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610609945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101d85781810151838201526020016101c0565b505050509050019250505060405180910390f35b61025d600480360361016081101561020357600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff610100820135169061012081013590610140013561063f565b6040805192835260208301919091528051918290030190f35b61019c600480360360a081101561028c57600080fd5b813591602081013591810190606081016040820135600160201b8111156102b257600080fd5b8201836020820111156102c457600080fd5b803590602001918460208302840111600160201b831117156102e557600080fd5b91935091506001600160a01b038135169060200135610739565b610388600480360360a081101561031557600080fd5b813591602081013591810190606081016040820135600160201b81111561033b57600080fd5b82018360208201111561034d57600080fd5b803590602001918460208302840111600160201b8311171561036e57600080fd5b91935091506001600160a01b03813516906020013561091d565b005b6100e2600480360360608110156103a057600080fd5b5080359060208101359060400135610b9a565b61019c600480360360a08110156103c957600080fd5b813591602081013591810190606081016040820135600160201b8111156103ef57600080fd5b82018360208201111561040157600080fd5b803590602001918460208302840111600160201b8311171561042257600080fd5b91935091506001600160a01b038135169060200135610ba7565b6100e26004803603606081101561045257600080fd5b5080359060208101359060400135610ca0565b61025d600480360360e081101561047b57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135610cad565b6104bd610ef1565b604080516001600160a01b039092168252519081900360200190f35b61019c600480360360408110156104ef57600080fd5b81359190810190604081016020820135600160201b81111561051057600080fd5b82018360208201111561052257600080fd5b803590602001918460208302840111600160201b8311171561054357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f15945050505050565b6105d6600480360361010081101561059857600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135610f42565b60408051938452602084019290925282820152519081900360600190f35b6000610601848484611075565b949350505050565b60606106367f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4848461114d565b90505b92915050565b600080600061066f7f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c48f8f61129a565b905060008761067e578c610682565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156106f857600080fd5b505af115801561070c573d6000803e3d6000fd5b5050505061071f8f8f8f8f8f8f8f610cad565b809450819550505050509b509b9950505050505050505050565b6060814281101561077f576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b6107dd7f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c48988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061135a92505050565b915086826001845103815181106107f057fe5b602002602001015110156108355760405162461bcd60e51b815260040180806020018281038252602b8152602001806122fa602b913960400191505060405180910390fd5b6108d38686600081811061084557fe5b905060200201356001600160a01b0316336108b97f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c48a8a600081811061088757fe5b905060200201356001600160a01b03168b8b60018181106108a457fe5b905060200201356001600160a01b031661129a565b856000815181106108c657fe5b6020026020010151611491565b610912828787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508992506115ee915050565b509695505050505050565b8042811015610961576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b6109d68585600081811061097157fe5b905060200201356001600160a01b0316336109d07f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4898960008181106109b357fe5b905060200201356001600160a01b03168a8a60018181106108a457fe5b8a611491565b6000858560001981018181106109e857fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610a4457600080fd5b505afa158015610a58573d6000803e3d6000fd5b505050506040513d6020811015610a6e57600080fd5b50516040805160208881028281018201909352888252929350610ab092909189918991829185019084908082843760009201919091525088925061182b915050565b86610b538288886000198101818110610ac557fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b2157600080fd5b505afa158015610b35573d6000803e3d6000fd5b505050506040513d6020811015610b4b57600080fd5b505190611b32565b1015610b905760405162461bcd60e51b815260040180806020018281038252602b8152602001806122fa602b913960400191505060405180910390fd5b5050505050505050565b6000610601848484611b82565b60608142811015610bed576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b610c4b7f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c48988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061114d92505050565b91508682600081518110610c5b57fe5b602002602001015111156108355760405162461bcd60e51b81526004018080602001828103825260278152602001806122ad6027913960400191505060405180910390fd5b6000610601848484611c5a565b6000808242811015610cf4576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b6000610d217f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c48c8c61129a565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015610d7c57600080fd5b505af1158015610d90573d6000803e3d6000fd5b505050506040513d6020811015610da657600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015610df357600080fd5b505af1158015610e07573d6000803e3d6000fd5b505050506040513d6040811015610e1d57600080fd5b50805160209091015190925090506000610e378e8e611d00565b509050806001600160a01b03168e6001600160a01b031614610e5a578183610e5d565b82825b90975095508a871015610ea15760405162461bcd60e51b81526004018080602001828103825260268152602001806122d46026913960400191505060405180910390fd5b89861015610ee05760405162461bcd60e51b815260040180806020018281038252602681526020018061223a6026913960400191505060405180910390fd5b505050505097509795505050505050565b7f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c481565b60606106367f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4848461135a565b60008060008342811015610f8b576040805162461bcd60e51b81526020600482015260186024820152600080516020612374833981519152604482015290519081900360640190fd5b610f998c8c8c8c8c8c611dde565b90945092506000610fcb7f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c48e8e61129a565b9050610fd98d338388611491565b610fe58c338387611491565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b15801561103457600080fd5b505af1158015611048573d6000803e3d6000fd5b505050506040513d602081101561105e57600080fd5b5051949d939c50939a509198505050505050505050565b60008084116110b55760405162461bcd60e51b815260040180806020018281038252602b815260200180612349602b913960400191505060405180910390fd5b6000831180156110c55750600082115b6111005760405162461bcd60e51b81526004018080602001828103825260288152602001806122606028913960400191505060405180910390fd5b600061110e856103e561206f565b9050600061111c828561206f565b9050600061113683611130886103e861206f565b906120d2565b905080828161114157fe5b04979650505050505050565b60606002825110156111a6576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff811180156111be57600080fd5b506040519080825280602002602001820160405280156111e8578160200160208202803683370190505b50905082816001835103815181106111fc57fe5b60209081029190910101528151600019015b80156112925760008061124b8786600186038151811061122a57fe5b602002602001015187868151811061123e57fe5b6020026020010151612121565b9150915061126d84848151811061125e57fe5b60200260200101518383611b82565b84600185038151811061127c57fe5b602090810291909101015250506000190161120e565b509392505050565b60008060006112a98585611d00565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60606002825110156113b3576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff811180156113cb57600080fd5b506040519080825280602002602001820160405280156113f5578160200160208202803683370190505b509050828160008151811061140657fe5b60200260200101818152505060005b60018351038110156112925760008061144b8786858151811061143457fe5b602002602001015187866001018151811061123e57fe5b9150915061146d84848151811061145e57fe5b60200260200101518383611075565b84846001018151811061147c57fe5b60209081029190910101525050600101611415565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106115165780518252601f1990920191602091820191016114f7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611578576040519150601f19603f3d011682016040523d82523d6000602084013e61157d565b606091505b50915091508180156115ab5750805115806115ab57508080602001905160208110156115a857600080fd5b50515b6115e65760405162461bcd60e51b81526004018080602001828103825260248152602001806123256024913960400191505060405180910390fd5b505050505050565b60005b60018351038110156118255760008084838151811061160c57fe5b602002602001015185846001018151811061162357fe5b602002602001015191509150600061163b8383611d00565b509050600087856001018151811061164f57fe5b60200260200101519050600080836001600160a01b0316866001600160a01b03161461167d57826000611681565b6000835b91509150600060028a5103881061169857886116d9565b6116d97f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4878c8b600201815181106116cc57fe5b602002602001015161129a565b90506117067f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4888861129a565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015611743576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117ab578181015183820152602001611793565b50505050905090810190601f1680156117d85780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156117fa57600080fd5b505af115801561180e573d6000803e3d6000fd5b5050600190990198506115f1975050505050505050565b50505050565b60005b6001835103811015611b2d5760008084838151811061184957fe5b602002602001015185846001018151811061186057fe5b60200260200101519150915060006118788383611d00565b50905060006118a87f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4858561129a565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d606081101561191357600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a81169089161461194957828461194c565b83835b915091506119a1828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b2157600080fd5b95506119ae868383611075565b945050505050600080856001600160a01b0316886001600160a01b0316146119d8578260006119dc565b6000835b91509150600060028c51038a106119f3578a611a27565b611a277f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4898e8d600201815181106116cc57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015611ab1578181015183820152602001611a99565b50505050905090810190601f168015611ade5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015611b0057600080fd5b505af1158015611b14573d6000803e3d6000fd5b50506001909b019a5061182e9950505050505050505050565b505050565b80820382811115610639576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6000808411611bc25760405162461bcd60e51b815260040180806020018281038252602c8152602001806121e9602c913960400191505060405180910390fd5b600083118015611bd25750600082115b611c0d5760405162461bcd60e51b81526004018080602001828103825260288152602001806122606028913960400191505060405180910390fd5b6000611c256103e8611c1f868861206f565b9061206f565b90506000611c396103e5611c1f8689611b32565b9050611c506001828481611c4957fe5b04906120d2565b9695505050505050565b6000808411611c9a5760405162461bcd60e51b81526004018080602001828103825260258152602001806122886025913960400191505060405180910390fd5b600083118015611caa5750600082115b611ce55760405162461bcd60e51b81526004018080602001828103825260288152602001806122606028913960400191505060405180910390fd5b82611cf0858461206f565b81611cf757fe5b04949350505050565b600080826001600160a01b0316846001600160a01b03161415611d545760405162461bcd60e51b81526004018080602001828103825260258152602001806122156025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611d74578284611d77565b83835b90925090506001600160a01b038216611dd7576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b60008060006001600160a01b03167f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c46001600160a01b031663e6a439058a8a6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015611e6a57600080fd5b505afa158015611e7e573d6000803e3d6000fd5b505050506040513d6020811015611e9457600080fd5b50516001600160a01b03161415611f52577f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c46001600160a01b031663c9c6539689896040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b158015611f2557600080fd5b505af1158015611f39573d6000803e3d6000fd5b505050506040513d6020811015611f4f57600080fd5b50505b600080611f807f000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c48b8b612121565b91509150816000148015611f92575080155b15611fa257879350869250612062565b6000611faf898484611c5a565b90508781116120025785811015611ff75760405162461bcd60e51b815260040180806020018281038252602681526020018061223a6026913960400191505060405180910390fd5b889450925082612060565b600061200f898486611c5a565b90508981111561201b57fe5b8781101561205a5760405162461bcd60e51b81526004018080602001828103825260268152602001806122d46026913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b600081158061208a5750508082028282828161208757fe5b04145b610639576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015610639576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b60008060006121308585611d00565b50905060008061214188888861129a565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561217957600080fd5b505afa15801561218d573d6000803e3d6000fd5b505050506040513d60608110156121a357600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03878116908416146121d65780826121d9565b81815b9099909850965050505050505056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e69737761705632526f757465723a20494e53554646494349454e545f425f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e54556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54556e69737761705632526f757465723a20494e53554646494349454e545f415f414d4f554e54556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54556e69737761705632526f757465723a20455850495245440000000000000000a2646970667358221220839718cfd85833d0d66983f57f663712e01efb02d3c81e09655e54e1ff2acee764736f6c634300060c0033