Address io1jh933zymj69t4wu3qnes4adnzz7sql7cmlj5p9

Contract Overview

Balance:
0 IOTX

IOTX Value:
$ 0

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
5afaaa91ea29d8059f6c90ec4068448303ccfd5fb5e23bfbee6becd821a253da 13961189 2021-10-27 22:49:10 +0000 UTC 34 seconds ago io10arur22und7005pfysu5rcse5g9tvpxewkk8fr  IN    Contract: MimoV2Router02 0 IOTX 0.186259
0717a465150436715d643c9f30c5ed2e2c316419a9c2ccc39f47ea0dd28cbc45 13961187 2021-10-27 22:49:00 +0000 UTC 44 seconds ago io17uqhuyaqu3a36kh5e4szl47t6798vz8dgjdywu  IN    Contract: MimoV2Router02 0 IOTX 0.106371
9ae76174e9d1477df7928b7eec5d80f07fdd6e0b40f57f78d701d600f31d0548 13961175 2021-10-27 22:48:00 +0000 UTC 2 minutes ago io12ccdy8y0p4q4pupwgjqf632ljqj5m8nm3m5p4t  IN    Contract: MimoV2Router02 0 IOTX 0.205297
b88981a7e45f988125a0543f1f7b36b3fb10900af29152aa8f5b56f576f74c52 13961135 2021-10-27 22:44:40 +0000 UTC 5 minutes ago io1frecj450laycffyffgkxl8ptq8mpt8t62qez6p  IN    Contract: MimoV2Router02 0 IOTX 0.135348
06c66e633389c37554f1f287cbf967b8538603a8dc0494b7e33f002b2fc3b6dc 13961121 2021-10-27 22:43:30 +0000 UTC 6 minutes ago io1frecj450laycffyffgkxl8ptq8mpt8t62qez6p  IN    Contract: MimoV2Router02 944 IOTX 0.144962
fc2e949846770f908e42249db414ca786fef8b34b45639bf6777cd7ef8dcc9e6 13961121 2021-10-27 22:43:30 +0000 UTC 6 minutes ago io10r34457vmhcr8zzxfn5w572xyexwf6yp7q4wyr  IN    Contract: MimoV2Router02 0 IOTX 0.147578
40ce22a54ba4ba5301665d33b669e694925694f56f94514330ae7e7d693a8480 13961106 2021-10-27 22:42:15 +0000 UTC 7 minutes ago io1dndn4x9uzuhyvce8rn9lx4k2zk2twrv3nnk5kk  IN    Contract: MimoV2Router02 0 IOTX 0.135348
aac4133b5be759046de0f202c988f19cf5c893cd1ee1860b0c663fc92996edc4 13961094 2021-10-27 22:41:15 +0000 UTC 8 minutes ago io14gw7apq2vsnkedr2jje0s59nhl9p6lj3w40s7w  IN    Contract: MimoV2Router02 350 IOTX 0.14854
d728a56df785a6c0ab22b90ff26d64e301d62f3768b7af2e4e00ee1b501e3e90 13961088 2021-10-27 22:40:45 +0000 UTC 9 minutes ago io1dndn4x9uzuhyvce8rn9lx4k2zk2twrv3nnk5kk  IN    Contract: MimoV2Router02 988 IOTX 0.144962
fb6832387b6996693e70dfc71513982a11054f3c74b8c11f09dcee1414dbda7b 13961064 2021-10-27 22:38:45 +0000 UTC 11 minutes ago io19eywzr7xdugj2ywlcdrsa92w294d3nxv53a8u7  IN    Contract: MimoV2Router02 0 IOTX 0.135348
7c7bbd2b842bb17dbf14680f688eab4d23ae4977752e2b430ffa1647b001659e 13961056 2021-10-27 22:38:05 +0000 UTC 12 minutes ago io15urgjjjat6vsqqmm3ksxz4tk5mt9glpae658jc  IN    Contract: MimoV2Router02 0 IOTX 0.141837
e532735165bd8b97c0b3d558fc54c7a49ef90f4c3ce0544779f940049cf72c36 13961046 2021-10-27 22:37:15 +0000 UTC 12 minutes ago io19eywzr7xdugj2ywlcdrsa92w294d3nxv53a8u7  IN    Contract: MimoV2Router02 994 IOTX 0.144962
b6d2598677cb7441f7afe9889948e0d19dc5a27e3f009e4d38087d53cb63c8ef 13961041 2021-10-27 22:36:50 +0000 UTC 13 minutes ago io10r34457vmhcr8zzxfn5w572xyexwf6yp7q4wyr  IN    Contract: MimoV2Router02 835 IOTX 0.14854
a4402dcc5dcfa86c2ad68f276bba042ffa8e3488caaa80b45b5098a77d6fb5e8 13961035 2021-10-27 22:36:20 +0000 UTC 13 minutes ago io15urgjjjat6vsqqmm3ksxz4tk5mt9glpae658jc  IN    Contract: MimoV2Router02 0 IOTX 0.148531
8274b135aebdf01150c4b865d797126a7f3d39dbb87317684ac65d895ef66b36 13961032 2021-10-27 22:36:05 +0000 UTC 14 minutes ago io1qs44yjftkz5rnf5d5r0ceg58emzjf9a0vndvsm  IN    Contract: MimoV2Router02 0 IOTX 0.135348
93cf9a4d9e9bd0bd76e215fde86abdf1f8043862536e0ee14906308f85b212ee 13961013 2021-10-27 22:34:30 +0000 UTC 15 minutes ago io1qs44yjftkz5rnf5d5r0ceg58emzjf9a0vndvsm  IN    Contract: MimoV2Router02 909 IOTX 0.144962
f51e7ff6fdd0c0f4afa514a487a069aa4ec082dfebee5e656f1ea1bc84b5a72d 13961004 2021-10-27 22:33:45 +0000 UTC 16 minutes ago io1k8kvqmz36ffrz32xt37zc2vnph287k28xkeskn  IN    Contract: MimoV2Router02 13.409772 IOTX 0.147628
789b3aecbc0ee5852b8ae19dbebf84f04218fdd557080f1706dfcb3fca4f0334 13960999 2021-10-27 22:33:20 +0000 UTC 16 minutes ago io15sgjclgqp54g363x7lf69ftn5cgqux4xsj5fv2  IN    Contract: MimoV2Router02 0 IOTX 0.135348
2fd30602e852a5d0722c2755f382ed4bbd0858c95a3d07416ceb72b5f2c9bf07 13960986 2021-10-27 22:32:15 +0000 UTC 17 minutes ago io15sgjclgqp54g363x7lf69ftn5cgqux4xsj5fv2  IN    Contract: MimoV2Router02 998 IOTX 0.144962
adf27e52facaae3849a19cb501047f68a46f39627f972ea5f0147e9d35173134 13960970 2021-10-27 22:30:55 +0000 UTC 19 minutes ago io1a7k4u78q2997427tljetuhmu53wfsenplfkaz8  IN    Contract: MimoV2Router02 348.852821 IOTX 0.129228
45020cc45e6e2915d374a48aaaeb25e0d4a55be69be154d8f9b4953f3b1da78d 13960960 2021-10-27 22:30:05 +0000 UTC 20 minutes ago io1u49l3l44dyk3gmxs4j242w9s7da3c4k0jc35jk  IN    Contract: MimoV2Router02 0 IOTX 0.135348
d8c48168d3d47172e26b2b1dd190ca300bf6c50ae8f5259f1a12adeb1be5e8bd 13960953 2021-10-27 22:29:30 +0000 UTC 20 minutes ago io1v8m5pv5sk02jlfzpx85nr5z5puljqg3rc6lfzw  IN    Contract: MimoV2Router02 0 IOTX 0.11919
3cd4d20bbf3712debe930168e8696981d7245910c0910fa4b0a8c5d7e5caceee 13960952 2021-10-27 22:29:25 +0000 UTC 20 minutes ago io1u49l3l44dyk3gmxs4j242w9s7da3c4k0jc35jk  IN    Contract: MimoV2Router02 917 IOTX 0.144962
455dc32a3c76cc13359c313bb6c80d344df325fad69ece2014cfbbadb8fa0312 13960943 2021-10-27 22:28:40 +0000 UTC 21 minutes ago io1qh8zlzskdn5fcupz7rthkyumnzert5esn2p64f  IN    Contract: MimoV2Router02 3000 IOTX 0.14854
ce3d7cb956ad76697bfbad945ee214ec0584cba89247e105827e5a280fd9b697 13960931 2021-10-27 22:27:40 +0000 UTC 22 minutes ago io1k8kvqmz36ffrz32xt37zc2vnph287k28xkeskn  IN    Contract: MimoV2Router02 0 IOTX 0.203453
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MimoV2Router02

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
evmVersion, None license

Contract Source Code (Solidity)

// Sources flattened with hardhat v2.3.0 https://hardhat.org

// File contracts/swap/interfaces/IMimoPair.sol

pragma solidity >=0.5.0;

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

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

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

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

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

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

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

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

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

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}


// File contracts/swap/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 SafeMath {
    function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }

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

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

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "division by zero");
        uint256 c = a / b;
        return c;
    }
}


// File contracts/swap/libraries/MimoV2Library.sol

pragma solidity >=0.5.0;

library MimoV2Library {
    using SafeMath for uint256;

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

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(
        address factory,
        address tokenA,
        address tokenB
    ) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(
            uint256(
                keccak256(
                    abi.encodePacked(
                        hex"ff",
                        factory,
                        keccak256(abi.encodePacked(token0, token1)),
                        hex"00d8258f07455ccf2a627e421c1b67a5235293aa73a2d17be60109e9200cb37f" // init code hash
                    )
                )
            )
        );
    }

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

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) internal pure returns (uint256 amountOut) {
        require(amountIn > 0, "MimoV2Library: INSUFFICIENT_INPUT_AMOUNT");
        require(
            reserveIn > 0 && reserveOut > 0,
            "MimoV2Library: INSUFFICIENT_LIQUIDITY"
        );
        uint256 amountInWithFee = amountIn.mul(997);
        uint256 numerator = amountInWithFee.mul(reserveOut);
        uint256 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(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) internal pure returns (uint256 amountIn) {
        require(amountOut > 0, "MimoV2Library: INSUFFICIENT_OUTPUT_AMOUNT");
        require(
            reserveIn > 0 && reserveOut > 0,
            "MimoV2Library: INSUFFICIENT_LIQUIDITY"
        );
        uint256 numerator = reserveIn.mul(amountOut).mul(1000);
        uint256 denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

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


// File contracts/swap/libraries/TransferHelper.sol

pragma solidity >=0.6.0;

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

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

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

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


// File contracts/swap/interfaces/IMimoFactory.sol

pragma solidity >=0.5.0;

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

    function referral() external view returns (address);

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

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

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;

    function setReferral(address) external;
}


// File contracts/swap/interfaces/IERC20.sol

pragma solidity >=0.5.0;

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

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

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

    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

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

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

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

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

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


// File contracts/swap/interfaces/IWETH.sol

pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;

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

    function withdraw(uint256) external;
}


// File contracts/swap/interfaces/IMimoReferral.sol

pragma solidity >=0.6.2;

interface IMimoReferral {
    event Registered(address indexed user, address indexed referrer);
    event SwapRecorded(
        address indexed user,
        address indexed referrer,
        address token,
        uint256 amount
    );

    function getReferrer(address user) external view returns (address);

    function register(address user, address referrer) external returns (bool);

    function recordSwap(address user, uint256 amount)
        external
        payable
        returns (bool);

    function referrerScore(address token, address referrer)
        external
        view
        returns (uint256 total, uint256 score);

    function clearReferrerScore(address token, address referrer)
        external
        returns (bool);
}


// File contracts/swap/MimoV2Router02.sol

pragma solidity =0.6.12;







contract MimoV2Router02 {
    using SafeMath for uint256;

    address public immutable factory;
    address public immutable WETH;

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

    constructor(address _factory, address _WETH) public {
        factory = _factory;
        WETH = _WETH;
    }

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

    // **** ADD LIQUIDITY ****
    function _addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin
    ) internal virtual returns (uint256 amountA, uint256 amountB) {
        // create the pair if it doesn't exist yet
        if (IMimoFactory(factory).getPair(tokenA, tokenB) == address(0)) {
            IMimoFactory(factory).createPair(tokenA, tokenB);
        }
        (uint256 reserveA, uint256 reserveB) = MimoV2Library.getReserves(
            factory,
            tokenA,
            tokenB
        );
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint256 amountBOptimal = MimoV2Library.quote(
                amountADesired,
                reserveA,
                reserveB
            );
            if (amountBOptimal <= amountBDesired) {
                require(
                    amountBOptimal >= amountBMin,
                    "MimoV2Router: INSUFFICIENT_B_AMOUNT"
                );
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint256 amountAOptimal = MimoV2Library.quote(
                    amountBDesired,
                    reserveB,
                    reserveA
                );
                assert(amountAOptimal <= amountADesired);
                require(
                    amountAOptimal >= amountAMin,
                    "MimoV2Router: INSUFFICIENT_A_AMOUNT"
                );
                (amountA, amountB) = (amountAOptimal, amountBDesired);
            }
        }
    }

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        address referrer
    )
        external
        virtual
        ensure(deadline)
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        )
    {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        (amountA, amountB) = _addLiquidity(
            tokenA,
            tokenB,
            amountADesired,
            amountBDesired,
            amountAMin,
            amountBMin
        );
        address pair = MimoV2Library.pairFor(factory, tokenA, tokenB);
        TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA);
        TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB);
        liquidity = IMimoPair(pair).mint(to);
    }

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        address referrer
    )
        external
        payable
        virtual
        ensure(deadline)
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        )
    {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        (amountToken, amountETH) = _addLiquidity(
            token,
            WETH,
            amountTokenDesired,
            msg.value,
            amountTokenMin,
            amountETHMin
        );
        address pair = MimoV2Library.pairFor(factory, token, WETH);
        TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken);
        IWETH(WETH).deposit{value: amountETH}();
        assert(IWETH(WETH).transfer(pair, amountETH));
        liquidity = IMimoPair(pair).mint(to);
        // refund dust eth, if any
        if (msg.value > amountETH)
            TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH);
    }

    // **** REMOVE LIQUIDITY ****
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        address referrer
    )
        public
        virtual
        ensure(deadline)
        returns (uint256 amountA, uint256 amountB)
    {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        address pair = MimoV2Library.pairFor(factory, tokenA, tokenB);
        IMimoPair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
        (uint256 amount0, uint256 amount1) = IMimoPair(pair).burn(to);
        (address token0, ) = MimoV2Library.sortTokens(tokenA, tokenB);
        (amountA, amountB) = tokenA == token0
            ? (amount0, amount1)
            : (amount1, amount0);
        require(amountA >= amountAMin, "MimoV2Router: INSUFFICIENT_A_AMOUNT");
        require(amountB >= amountBMin, "MimoV2Router: INSUFFICIENT_B_AMOUNT");
    }

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        address referrer
    )
        public
        virtual
        ensure(deadline)
        returns (uint256 amountToken, uint256 amountETH)
    {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        (amountToken, amountETH) = removeLiquidity(
            token,
            WETH,
            liquidity,
            amountTokenMin,
            amountETHMin,
            address(this),
            deadline,
            referrer
        );
        TransferHelper.safeTransfer(token, to, amountToken);
        IWETH(WETH).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }

    // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) ****
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        address referrer
    ) public virtual ensure(deadline) returns (uint256 amountETH) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        (, amountETH) = removeLiquidity(
            token,
            WETH,
            liquidity,
            amountTokenMin,
            amountETHMin,
            address(this),
            deadline,
            referrer
        );
        TransferHelper.safeTransfer(
            token,
            to,
            IERC20(token).balanceOf(address(this))
        );
        IWETH(WETH).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }

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

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    ) external virtual ensure(deadline) returns (uint256[] memory amounts) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        amounts = MimoV2Library.getAmountsOut(factory, amountIn, path);
        require(
            amounts[amounts.length - 1] >= amountOutMin,
            "MimoV2Router: INSUFFICIENT_OUTPUT_AMOUNT"
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            MimoV2Library.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, to);
    }

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    ) external virtual ensure(deadline) returns (uint256[] memory amounts) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        amounts = MimoV2Library.getAmountsIn(factory, amountOut, path);
        require(
            amounts[0] <= amountInMax,
            "MimoV2Router: EXCESSIVE_INPUT_AMOUNT"
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            MimoV2Library.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, to);
    }

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    )
        external
        payable
        virtual
        ensure(deadline)
        returns (uint256[] memory amounts)
    {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        require(path[0] == WETH, "MimoV2Router: INVALID_PATH");
        amounts = MimoV2Library.getAmountsOut(factory, msg.value, path);
        require(
            amounts[amounts.length - 1] >= amountOutMin,
            "MimoV2Router: INSUFFICIENT_OUTPUT_AMOUNT"
        );
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(
            IWETH(WETH).transfer(
                MimoV2Library.pairFor(factory, path[0], path[1]),
                amounts[0]
            )
        );
        _swap(amounts, path, to);
    }

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    ) external virtual ensure(deadline) returns (uint256[] memory amounts) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        require(path[path.length - 1] == WETH, "MimoV2Router: INVALID_PATH");
        amounts = MimoV2Library.getAmountsIn(factory, amountOut, path);
        require(
            amounts[0] <= amountInMax,
            "MimoV2Router: EXCESSIVE_INPUT_AMOUNT"
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            MimoV2Library.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, address(this));
        IWETH(WETH).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    ) external virtual ensure(deadline) returns (uint256[] memory amounts) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        require(path[path.length - 1] == WETH, "MimoV2Router: INVALID_PATH");
        amounts = MimoV2Library.getAmountsOut(factory, amountIn, path);
        require(
            amounts[amounts.length - 1] >= amountOutMin,
            "MimoV2Router: INSUFFICIENT_OUTPUT_AMOUNT"
        );
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            MimoV2Library.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, address(this));
        IWETH(WETH).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    )
        external
        payable
        virtual
        ensure(deadline)
        returns (uint256[] memory amounts)
    {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        require(path[0] == WETH, "MimoV2Router: INVALID_PATH");
        amounts = MimoV2Library.getAmountsIn(factory, amountOut, path);
        require(
            amounts[0] <= msg.value,
            "MimoV2Router: EXCESSIVE_INPUT_AMOUNT"
        );
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(
            IWETH(WETH).transfer(
                MimoV2Library.pairFor(factory, path[0], path[1]),
                amounts[0]
            )
        );
        _swap(amounts, path, to);
        // refund dust eth, if any
        if (msg.value > amounts[0])
            TransferHelper.safeTransferETH(msg.sender, msg.value - amounts[0]);
    }

    // **** SWAP (supporting fee-on-transfer tokens) ****
    // requires the initial amount to have already been sent to the first pair
    function _swapSupportingFeeOnTransferTokens(
        address[] memory path,
        address _to
    ) internal virtual {
        for (uint256 i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0, ) = MimoV2Library.sortTokens(input, output);
            IMimoPair pair = IMimoPair(
                MimoV2Library.pairFor(factory, input, output)
            );
            uint256 amountInput;
            uint256 amountOutput;
            {
                // scope to avoid stack too deep errors
                (uint256 reserve0, uint256 reserve1, ) = pair.getReserves();
                (uint256 reserveInput, uint256 reserveOutput) = input == token0
                    ? (reserve0, reserve1)
                    : (reserve1, reserve0);
                amountInput = IERC20(input).balanceOf(address(pair)).sub(
                    reserveInput
                );
                amountOutput = MimoV2Library.getAmountOut(
                    amountInput,
                    reserveInput,
                    reserveOutput
                );
            }
            (uint256 amount0Out, uint256 amount1Out) = input == token0
                ? (uint256(0), amountOutput)
                : (amountOutput, uint256(0));
            address to = i < path.length - 2
                ? MimoV2Library.pairFor(factory, output, path[i + 2])
                : _to;
            pair.swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    ) external virtual ensure(deadline) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            MimoV2Library.pairFor(factory, path[0], path[1]),
            amountIn
        );
        uint256 balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >=
                amountOutMin,
            "MimoV2Router: INSUFFICIENT_OUTPUT_AMOUNT"
        );
    }

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    ) external payable virtual ensure(deadline) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        require(path[0] == WETH, "MimoV2Router: INVALID_PATH");
        uint256 amountIn = msg.value;
        IWETH(WETH).deposit{value: amountIn}();
        assert(
            IWETH(WETH).transfer(
                MimoV2Library.pairFor(factory, path[0], path[1]),
                amountIn
            )
        );
        uint256 balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >=
                amountOutMin,
            "MimoV2Router: INSUFFICIENT_OUTPUT_AMOUNT"
        );
    }

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline,
        address referrer
    ) external virtual ensure(deadline) {
        {
            address _referral = IMimoFactory(factory).referral();
            if (_referral != address(0)) {
                IMimoReferral(_referral).register(msg.sender, referrer);
            }
        }
        require(path[path.length - 1] == WETH, "MimoV2Router: INVALID_PATH");
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            MimoV2Library.pairFor(factory, path[0], path[1]),
            amountIn
        );
        _swapSupportingFeeOnTransferTokens(path, address(this));
        uint256 amountOut = IERC20(WETH).balanceOf(address(this));
        require(
            amountOut >= amountOutMin,
            "MimoV2Router: INSUFFICIENT_OUTPUT_AMOUNT"
        );
        IWETH(WETH).withdraw(amountOut);
        TransferHelper.safeTransferETH(to, amountOut);
    }

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

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

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

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

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

Contract ABI

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

Contract Creation Code

60806040526004361061012e5760003560e01c806370629c89116100ab578063ad5c46481161006f578063ad5c46481461096e578063ad615dec1461099f578063c45a0155146109d5578063d06ca61f146109ea578063ec8aa1b614610a9f578063f824f62e14610afc57610167565b806370629c891461071d57806385f8c2591461078b578063962efddb146107c1578063a32166ee14610861578063a648ec7a1461090157610167565b806324e0bcb7116100f257806324e0bcb7146104875780632f100e4a146104e4578063344933be146105725780633d0e3ec51461060057806353f78398146106a057610167565b8063054d50d41461016c57806305a1450d146101b4578063088890dc146102a45780631f00ca74146103325780632232ea43146103e757610167565b3661016757336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461016557fe5b005b600080fd5b34801561017857600080fd5b506101a26004803603606081101561018f57600080fd5b5080359060208101359060400135610b9c565b60408051918252519081900360200190f35b3480156101c057600080fd5b50610254600480360360c08110156101d757600080fd5b813591602081013591810190606081016040820135600160201b8111156101fd57600080fd5b82018360208201111561020f57600080fd5b803590602001918460208302840111600160201b8311171561023057600080fd5b91935091506001600160a01b03813581169160208101359160409091013516610bb1565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610290578181015183820152602001610278565b505050509050019250505060405180910390f35b610165600480360360a08110156102ba57600080fd5b81359190810190604081016020820135600160201b8111156102db57600080fd5b8201836020820111156102ed57600080fd5b803590602001918460208302840111600160201b8311171561030e57600080fd5b91935091506001600160a01b03813581169160208101359160409091013516610eae565b34801561033e57600080fd5b506102546004803603604081101561035557600080fd5b81359190810190604081016020820135600160201b81111561037657600080fd5b82018360208201111561038857600080fd5b803590602001918460208302840111600160201b831117156103a957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506113ce945050505050565b3480156103f357600080fd5b50610254600480360360c081101561040a57600080fd5b813591602081013591810190606081016040820135600160201b81111561043057600080fd5b82018360208201111561044257600080fd5b803590602001918460208302840111600160201b8311171561046357600080fd5b91935091506001600160a01b03813581169160208101359160409091013516611404565b34801561049357600080fd5b506101a2600480360360e08110156104aa57600080fd5b506001600160a01b038135811691602081013591604082013591606081013591608082013581169160a08101359160c090910135166117b0565b610254600480360360a08110156104fa57600080fd5b81359190810190604081016020820135600160201b81111561051b57600080fd5b82018360208201111561052d57600080fd5b803590602001918460208302840111600160201b8311171561054e57600080fd5b91935091506001600160a01b03813581169160208101359160409091013516611a4f565b610254600480360360a081101561058857600080fd5b81359190810190604081016020820135600160201b8111156105a957600080fd5b8201836020820111156105bb57600080fd5b803590602001918460208302840111600160201b831117156105dc57600080fd5b91935091506001600160a01b03813581169160208101359160409091013516611eeb565b34801561060c57600080fd5b50610165600480360360c081101561062357600080fd5b813591602081013591810190606081016040820135600160201b81111561064957600080fd5b82018360208201111561065b57600080fd5b803590602001918460208302840111600160201b8311171561067c57600080fd5b91935091506001600160a01b03813581169160208101359160409091013516612343565b3480156106ac57600080fd5b5061070460048036036101008110156106c457600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a081013582169160c08201359160e001351661272c565b6040805192835260208301919091528051918290030190f35b61076d600480360360e081101561073357600080fd5b506001600160a01b038135811691602081013591604082013591606081013591608082013581169160a08101359160c09091013516612a89565b60408051938452602084019290925282820152519081900360600190f35b34801561079757600080fd5b506101a2600480360360608110156107ae57600080fd5b5080359060208101359060400135612e35565b3480156107cd57600080fd5b50610254600480360360c08110156107e457600080fd5b813591602081013591810190606081016040820135600160201b81111561080a57600080fd5b82018360208201111561081c57600080fd5b803590602001918460208302840111600160201b8311171561083d57600080fd5b91935091506001600160a01b03813581169160208101359160409091013516612e42565b34801561086d57600080fd5b50610254600480360360c081101561088457600080fd5b813591602081013591810190606081016040820135600160201b8111156108aa57600080fd5b8201836020820111156108bc57600080fd5b803590602001918460208302840111600160201b831117156108dd57600080fd5b91935091506001600160a01b038135811691602081013591604090910135166130e6565b34801561090d57600080fd5b5061076d600480360361012081101561092557600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c082013581169160e08101359161010090910135166132f7565b34801561097a57600080fd5b50610983613543565b604080516001600160a01b039092168252519081900360200190f35b3480156109ab57600080fd5b506101a2600480360360608110156109c257600080fd5b5080359060208101359060400135613567565b3480156109e157600080fd5b50610983613574565b3480156109f657600080fd5b5061025460048036036040811015610a0d57600080fd5b81359190810190604081016020820135600160201b811115610a2e57600080fd5b820183602082011115610a4057600080fd5b803590602001918460208302840111600160201b83111715610a6157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550613598945050505050565b348015610aab57600080fd5b50610704600480360360e0811015610ac257600080fd5b506001600160a01b038135811691602081013591604082013591606081013591608082013581169160a08101359160c090910135166135c5565b348015610b0857600080fd5b50610165600480360360c0811015610b1f57600080fd5b813591602081013591810190606081016040820135600160201b811115610b4557600080fd5b820183602082011115610b5757600080fd5b803590602001918460208302840111600160201b83111715610b7857600080fd5b91935091506001600160a01b038135811691602081013591604090910135166137f9565b6000610ba9848484613ab0565b949350505050565b60608242811015610bf7576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5257600080fd5b505afa158015610c66573d6000803e3d6000fd5b505050506040513d6020811015610c7c57600080fd5b505190506001600160a01b03811615610d0e5760408051632a99dcd560e21b81523360048201526001600160a01b03868116602483015291519183169163aa677354916044808201926020929091908290030181600087803b158015610ce157600080fd5b505af1158015610cf5573d6000803e3d6000fd5b505050506040513d6020811015610d0b57600080fd5b50505b50610d6d7f00000000000000000000000000000000000000000000000000000000000000008a898980806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b8892505050565b91508782600184510381518110610d8057fe5b60200260200101511015610dc55760405162461bcd60e51b8152600401808060200182810382526028815260200180614fbb6028913960400191505060405180910390fd5b610e6387876000818110610dd557fe5b905060200201356001600160a01b031633610e497f00000000000000000000000000000000000000000000000000000000000000008b8b6000818110610e1757fe5b905060200201356001600160a01b03168c8c6001818110610e3457fe5b905060200201356001600160a01b0316613cd4565b85600081518110610e5657fe5b6020026020010151613d93565b610ea2828888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a9250613ef0915050565b50979650505050505050565b8142811015610ef2576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610f4d57600080fd5b505afa158015610f61573d6000803e3d6000fd5b505050506040513d6020811015610f7757600080fd5b505190506001600160a01b038116156110095760408051632a99dcd560e21b81523360048201526001600160a01b03858116602483015291519183169163aa677354916044808201926020929091908290030181600087803b158015610fdc57600080fd5b505af1158015610ff0573d6000803e3d6000fd5b505050506040513d602081101561100657600080fd5b50505b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168686600081811061104157fe5b905060200201356001600160a01b03166001600160a01b03161461109a576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ec5833981519152604482015290519081900360640190fd5b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156110fa57600080fd5b505af115801561110e573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6111907f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061117357fe5b905060200201356001600160a01b03168b8b6001818110610e3457fe5b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156111d757600080fd5b505af11580156111eb573d6000803e3d6000fd5b505050506040513d602081101561120157600080fd5b505161120957fe5b60008787600019810181811061121b57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561127757600080fd5b505afa15801561128b573d6000803e3d6000fd5b505050506040513d60208110156112a157600080fd5b50516040805160208a810282810182019093528a82529293506112e39290918b918b9182918501908490808284376000920191909152508a925061412d915050565b88611386828a8a60001981018181106112f857fe5b905060200201356001600160a01b03166001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561135457600080fd5b505afa158015611368573d6000803e3d6000fd5b505050506040513d602081101561137e57600080fd5b505190614434565b10156113c35760405162461bcd60e51b8152600401808060200182810382526028815260200180614fbb6028913960400191505060405180910390fd5b505050505050505050565b60606113fb7f00000000000000000000000000000000000000000000000000000000000000008484614484565b90505b92915050565b6060824281101561144a576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b1580156114a557600080fd5b505afa1580156114b9573d6000803e3d6000fd5b505050506040513d60208110156114cf57600080fd5b505190506001600160a01b038116156115615760408051632a99dcd560e21b81523360048201526001600160a01b03868116602483015291519183169163aa677354916044808201926020929091908290030181600087803b15801561153457600080fd5b505af1158015611548573d6000803e3d6000fd5b505050506040513d602081101561155e57600080fd5b50505b506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168787600019810181811061159c57fe5b905060200201356001600160a01b03166001600160a01b0316146115f5576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ec5833981519152604482015290519081900360640190fd5b6116537f00000000000000000000000000000000000000000000000000000000000000008a898980806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b8892505050565b9150878260018451038151811061166657fe5b602002602001015110156116ab5760405162461bcd60e51b8152600401808060200182810382526028815260200180614fbb6028913960400191505060405180910390fd5b6116bb87876000818110610dd557fe5b6116fa82888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613ef0915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d8360018551038151811061173957fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561177757600080fd5b505af115801561178b573d6000803e3d6000fd5b50505050610ea285836001855103815181106117a357fe5b60200260200101516145bc565b600082428110156117f6576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561185157600080fd5b505afa158015611865573d6000803e3d6000fd5b505050506040513d602081101561187b57600080fd5b505190506001600160a01b0381161561190d5760408051632a99dcd560e21b81523360048201526001600160a01b03868116602483015291519183169163aa677354916044808201926020929091908290030181600087803b1580156118e057600080fd5b505af11580156118f4573d6000803e3d6000fd5b505050506040513d602081101561190a57600080fd5b50505b5061193e897f00000000000000000000000000000000000000000000000000000000000000008a8a8a308a8a61272c565b9050809250506119c789868b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561199657600080fd5b505afa1580156119aa573d6000803e3d6000fd5b505050506040513d60208110156119c057600080fd5b50516146af565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611a2d57600080fd5b505af1158015611a41573d6000803e3d6000fd5b50505050610ea285836145bc565b60608242811015611a95576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b158015611af057600080fd5b505afa158015611b04573d6000803e3d6000fd5b505050506040513d6020811015611b1a57600080fd5b505190506001600160a01b03811615611bac5760408051632a99dcd560e21b81523360048201526001600160a01b03868116602483015291519183169163aa677354916044808201926020929091908290030181600087803b158015611b7f57600080fd5b505af1158015611b93573d6000803e3d6000fd5b505050506040513d6020811015611ba957600080fd5b50505b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031687876000818110611be457fe5b905060200201356001600160a01b03166001600160a01b031614611c3d576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ec5833981519152604482015290519081900360640190fd5b611c9b7f00000000000000000000000000000000000000000000000000000000000000008989898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061448492505050565b91503482600081518110611cab57fe5b60200260200101511115611cf05760405162461bcd60e51b8152600401808060200182810382526024815260200180614f526024913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db083600081518110611d2c57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611d5f57600080fd5b505af1158015611d73573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb611dd87f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061117357fe5b84600081518110611de557fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611e3357600080fd5b505af1158015611e47573d6000803e3d6000fd5b505050506040513d6020811015611e5d57600080fd5b5051611e6557fe5b611ea4828888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a9250613ef0915050565b81600081518110611eb157fe5b6020026020010151341115611ee057611ee03383600081518110611ed157fe5b602002602001015134036145bc565b509695505050505050565b60608242811015611f31576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b158015611f8c57600080fd5b505afa158015611fa0573d6000803e3d6000fd5b505050506040513d6020811015611fb657600080fd5b505190506001600160a01b038116156120485760408051632a99dcd560e21b81523360048201526001600160a01b03868116602483015291519183169163aa677354916044808201926020929091908290030181600087803b15801561201b57600080fd5b505af115801561202f573d6000803e3d6000fd5b505050506040513d602081101561204557600080fd5b50505b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168787600081811061208057fe5b905060200201356001600160a01b03166001600160a01b0316146120d9576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ec5833981519152604482015290519081900360640190fd5b6121377f000000000000000000000000000000000000000000000000000000000000000034898980806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b8892505050565b9150878260018451038151811061214a57fe5b6020026020010151101561218f5760405162461bcd60e51b8152600401808060200182810382526028815260200180614fbb6028913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836000815181106121cb57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156121fe57600080fd5b505af1158015612212573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6122777f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061117357fe5b8460008151811061228457fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156122d257600080fd5b505af11580156122e6573d6000803e3d6000fd5b505050506040513d60208110156122fc57600080fd5b505161230457fe5b611ee0828888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a9250613ef0915050565b8142811015612387576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b1580156123e257600080fd5b505afa1580156123f6573d6000803e3d6000fd5b505050506040513d602081101561240c57600080fd5b505190506001600160a01b0381161561249e5760408051632a99dcd560e21b81523360048201526001600160a01b03858116602483015291519183169163aa677354916044808201926020929091908290030181600087803b15801561247157600080fd5b505af1158015612485573d6000803e3d6000fd5b505050506040513d602081101561249b57600080fd5b50505b506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868660001981018181106124d957fe5b905060200201356001600160a01b03166001600160a01b031614612532576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ec5833981519152604482015290519081900360640190fd5b61258a8686600081811061254257fe5b905060200201356001600160a01b0316336125847f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061117357fe5b8b613d93565b6125c886868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061412d915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561263757600080fd5b505afa15801561264b573d6000803e3d6000fd5b505050506040513d602081101561266157600080fd5b50519050878110156126a45760405162461bcd60e51b8152600401808060200182810382526028815260200180614fbb6028913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561270a57600080fd5b505af115801561271e573d6000803e3d6000fd5b505050506113c385826145bc565b6000808342811015612773576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b1580156127ce57600080fd5b505afa1580156127e2573d6000803e3d6000fd5b505050506040513d60208110156127f857600080fd5b505190506001600160a01b0381161561288a5760408051632a99dcd560e21b81523360048201526001600160a01b03878116602483015291519183169163aa677354916044808201926020929091908290030181600087803b15801561285d57600080fd5b505af1158015612871573d6000803e3d6000fd5b505050506040513d602081101561288757600080fd5b50505b5060006128b87f00000000000000000000000000000000000000000000000000000000000000008d8d613cd4565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018e9052915192935090916323b872dd916064808201926020929091908290030181600087803b15801561291357600080fd5b505af1158015612927573d6000803e3d6000fd5b505050506040513d602081101561293d57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03898116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561298a57600080fd5b505af115801561299e573d6000803e3d6000fd5b505050506040513d60408110156129b457600080fd5b508051602090910151909250905060006129ce8f8f614819565b509050806001600160a01b03168f6001600160a01b0316146129f15781836129f4565b82825b90975095508b871015612a385760405162461bcd60e51b8152600401808060200182810382526023815260200180614fe36023913960400191505060405180910390fd5b8a861015612a775760405162461bcd60e51b8152600401808060200182810382526023815260200180614f076023913960400191505060405180910390fd5b50505050509850989650505050505050565b60008060008442811015612ad2576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b158015612b2d57600080fd5b505afa158015612b41573d6000803e3d6000fd5b505050506040513d6020811015612b5757600080fd5b505190506001600160a01b03811615612be95760408051632a99dcd560e21b81523360048201526001600160a01b03888116602483015291519183169163aa677354916044808201926020929091908290030181600087803b158015612bbc57600080fd5b505af1158015612bd0573d6000803e3d6000fd5b505050506040513d6020811015612be657600080fd5b50505b50612c188b7f00000000000000000000000000000000000000000000000000000000000000008c348d8d6148f7565b90945092506000612c6a7f00000000000000000000000000000000000000000000000000000000000000008d7f0000000000000000000000000000000000000000000000000000000000000000613cd4565b9050612c788c338388613d93565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015612cd357600080fd5b505af1158015612ce7573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612d6357600080fd5b505af1158015612d77573d6000803e3d6000fd5b505050506040513d6020811015612d8d57600080fd5b5051612d9557fe5b806001600160a01b0316636a627842896040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015612de457600080fd5b505af1158015612df8573d6000803e3d6000fd5b505050506040513d6020811015612e0e57600080fd5b5051925034841015612e2657612e26338534036145bc565b50509750975097945050505050565b6000610ba9848484614b88565b60608242811015612e88576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b158015612ee357600080fd5b505afa158015612ef7573d6000803e3d6000fd5b505050506040513d6020811015612f0d57600080fd5b505190506001600160a01b03811615612f9f5760408051632a99dcd560e21b81523360048201526001600160a01b03868116602483015291519183169163aa677354916044808201926020929091908290030181600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b505050506040513d6020811015612f9c57600080fd5b50505b506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001687876000198101818110612fda57fe5b905060200201356001600160a01b03166001600160a01b031614613033576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ec5833981519152604482015290519081900360640190fd5b6130917f00000000000000000000000000000000000000000000000000000000000000008a89898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061448492505050565b915087826000815181106130a157fe5b602002602001015111156116ab5760405162461bcd60e51b8152600401808060200182810382526024815260200180614f526024913960400191505060405180910390fd5b6060824281101561312c576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561318757600080fd5b505afa15801561319b573d6000803e3d6000fd5b505050506040513d60208110156131b157600080fd5b505190506001600160a01b038116156132435760408051632a99dcd560e21b81523360048201526001600160a01b03868116602483015291519183169163aa677354916044808201926020929091908290030181600087803b15801561321657600080fd5b505af115801561322a573d6000803e3d6000fd5b505050506040513d602081101561324057600080fd5b50505b506132a27f00000000000000000000000000000000000000000000000000000000000000008a89898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061448492505050565b915087826000815181106132b257fe5b60200260200101511115610dc55760405162461bcd60e51b8152600401808060200182810382526024815260200180614f526024913960400191505060405180910390fd5b60008060008442811015613340576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561339b57600080fd5b505afa1580156133af573d6000803e3d6000fd5b505050506040513d60208110156133c557600080fd5b505190506001600160a01b038116156134575760408051632a99dcd560e21b81523360048201526001600160a01b03888116602483015291519183169163aa677354916044808201926020929091908290030181600087803b15801561342a57600080fd5b505af115801561343e573d6000803e3d6000fd5b505050506040513d602081101561345457600080fd5b50505b506134668d8d8d8d8d8d6148f7565b909450925060006134987f00000000000000000000000000000000000000000000000000000000000000008f8f613cd4565b90506134a68e338388613d93565b6134b28d338387613d93565b806001600160a01b0316636a627842896040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b15801561350157600080fd5b505af1158015613515573d6000803e3d6000fd5b505050506040513d602081101561352b57600080fd5b5051949e939d50939b50919950505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610ba9848484614c60565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606113fb7f00000000000000000000000000000000000000000000000000000000000000008484613b88565b600080834281101561360c576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561366757600080fd5b505afa15801561367b573d6000803e3d6000fd5b505050506040513d602081101561369157600080fd5b505190506001600160a01b038116156137235760408051632a99dcd560e21b81523360048201526001600160a01b03878116602483015291519183169163aa677354916044808201926020929091908290030181600087803b1580156136f657600080fd5b505af115801561370a573d6000803e3d6000fd5b505050506040513d602081101561372057600080fd5b50505b506137548a7f00000000000000000000000000000000000000000000000000000000000000008b8b8b308b8b61272c565b90935091506137648a87856146af565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156137ca57600080fd5b505af11580156137de573d6000803e3d6000fd5b505050506137ec86836145bc565b5097509795505050505050565b814281101561383d576040805162461bcd60e51b81526020600482015260156024820152600080516020614e80833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631441a5a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561389857600080fd5b505afa1580156138ac573d6000803e3d6000fd5b505050506040513d60208110156138c257600080fd5b505190506001600160a01b038116156139545760408051632a99dcd560e21b81523360048201526001600160a01b03858116602483015291519183169163aa677354916044808201926020929091908290030181600087803b15801561392757600080fd5b505af115801561393b573d6000803e3d6000fd5b505050506040513d602081101561395157600080fd5b50505b506139658686600081811061254257fe5b60008686600019810181811061397757fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156139d357600080fd5b505afa1580156139e7573d6000803e3d6000fd5b505050506040513d60208110156139fd57600080fd5b50516040805160208981028281018201909352898252929350613a3f9290918a918a91829185019084908082843760009201919091525089925061412d915050565b876113868289896000198101818110613a5457fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561135457600080fd5b6000808411613af05760405162461bcd60e51b8152600401808060200182810382526028815260200180614f2a6028913960400191505060405180910390fd5b600083118015613b005750600082115b613b3b5760405162461bcd60e51b8152600401808060200182810382526025815260200180614ea06025913960400191505060405180910390fd5b6000613b49856103e5614d06565b90506000613b578285614d06565b90506000613b7183613b6b886103e8614d06565b90614d69565b9050808281613b7c57fe5b04979650505050505050565b6060600282511015613be1576040805162461bcd60e51b815260206004820152601b60248201527f4d696d6f56324c6962726172793a20494e56414c49445f504154480000000000604482015290519081900360640190fd5b815167ffffffffffffffff81118015613bf957600080fd5b50604051908082528060200260200182016040528015613c23578160200160208202803683370190505b5090508281600081518110613c3457fe5b60200260200101818152505060005b6001835103811015613ccc57600080613c8687868581518110613c6257fe5b6020026020010151878660010181518110613c7957fe5b6020026020010151614db8565b91509150613ca8848481518110613c9957fe5b60200260200101518383613ab0565b848460010181518110613cb757fe5b60209081029190910101525050600101613c43565b509392505050565b6000806000613ce38585614819565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527ed8258f07455ccf2a627e421c1b67a5235293aa73a2d17be60109e9200cb37f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b60208310613e185780518252601f199092019160209182019101613df9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613e7a576040519150601f19603f3d011682016040523d82523d6000602084013e613e7f565b606091505b5091509150818015613ead575080511580613ead5750808060200190516020811015613eaa57600080fd5b50515b613ee85760405162461bcd60e51b81526004018080602001828103825260248152602001806150066024913960400191505060405180910390fd5b505050505050565b60005b600183510381101561412757600080848381518110613f0e57fe5b6020026020010151858460010181518110613f2557fe5b6020026020010151915091506000613f3d8383614819565b5090506000878560010181518110613f5157fe5b60200260200101519050600080836001600160a01b0316866001600160a01b031614613f7f57826000613f83565b6000835b91509150600060028a51038810613f9a5788613fdb565b613fdb7f0000000000000000000000000000000000000000000000000000000000000000878c8b60020181518110613fce57fe5b6020026020010151613cd4565b90506140087f00000000000000000000000000000000000000000000000000000000000000008888613cd4565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015614045576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156140ad578181015183820152602001614095565b50505050905090810190601f1680156140da5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156140fc57600080fd5b505af1158015614110573d6000803e3d6000fd5b505060019099019850613ef3975050505050505050565b50505050565b60005b600183510381101561442f5760008084838151811061414b57fe5b602002602001015185846001018151811061416257fe5b602002602001015191509150600061417a8383614819565b50905060006141aa7f00000000000000000000000000000000000000000000000000000000000000008585613cd4565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156141eb57600080fd5b505afa1580156141ff573d6000803e3d6000fd5b505050506040513d606081101561421557600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a81169089161461424b57828461424e565b83835b915091506142a3828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561135457600080fd5b95506142b0868383613ab0565b945050505050600080856001600160a01b0316886001600160a01b0316146142da578260006142de565b6000835b91509150600060028c51038a106142f5578a614329565b6143297f0000000000000000000000000000000000000000000000000000000000000000898e8d60020181518110613fce57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b838110156143b357818101518382015260200161439b565b50505050905090810190601f1680156143e05780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561440257600080fd5b505af1158015614416573d6000803e3d6000fd5b50506001909b019a506141309950505050505050505050565b505050565b808203828111156113fe576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b60606002825110156144dd576040805162461bcd60e51b815260206004820152601b60248201527f4d696d6f56324c6962726172793a20494e56414c49445f504154480000000000604482015290519081900360640190fd5b815167ffffffffffffffff811180156144f557600080fd5b5060405190808252806020026020018201604052801561451f578160200160208202803683370190505b509050828160018351038151811061453357fe5b60209081029190910101528151600019015b8015613ccc576000806145758786600186038151811061456157fe5b6020026020010151878681518110613c7957fe5b9150915061459784848151811061458857fe5b60200260200101518383614b88565b8460018503815181106145a657fe5b6020908102919091010152505060001901614545565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106146085780518252601f1990920191602091820191016145e9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461466a576040519150601f19603f3d011682016040523d82523d6000602084013e61466f565b606091505b505090508061442f5760405162461bcd60e51b8152600401808060200182810382526023815260200180614f986023913960400191505060405180910390fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b6020831061472c5780518252601f19909201916020918201910161470d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461478e576040519150601f19603f3d011682016040523d82523d6000602084013e614793565b606091505b50915091508180156147c15750805115806147c157508080602001905160208110156147be57600080fd5b50515b614812576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b600080826001600160a01b0316846001600160a01b0316141561486d5760405162461bcd60e51b8152600401808060200182810382526022815260200180614f766022913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061488d578284614890565b83835b90925090506001600160a01b0382166148f0576040805162461bcd60e51b815260206004820152601b60248201527f4d696d6f56324c6962726172793a205a45524f5f414444524553530000000000604482015290519081900360640190fd5b9250929050565b60008060006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439058a8a6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561498357600080fd5b505afa158015614997573d6000803e3d6000fd5b505050506040513d60208110156149ad57600080fd5b50516001600160a01b03161415614a6b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c9c6539689896040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b158015614a3e57600080fd5b505af1158015614a52573d6000803e3d6000fd5b505050506040513d6020811015614a6857600080fd5b50505b600080614a997f00000000000000000000000000000000000000000000000000000000000000008b8b614db8565b91509150816000148015614aab575080155b15614abb57879350869250614b7b565b6000614ac8898484614c60565b9050878111614b1b5785811015614b105760405162461bcd60e51b8152600401808060200182810382526023815260200180614f076023913960400191505060405180910390fd5b889450925082614b79565b6000614b28898486614c60565b905089811115614b3457fe5b87811015614b735760405162461bcd60e51b8152600401808060200182810382526023815260200180614fe36023913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b6000808411614bc85760405162461bcd60e51b815260040180806020018281038252602981526020018061502a6029913960400191505060405180910390fd5b600083118015614bd85750600082115b614c135760405162461bcd60e51b8152600401808060200182810382526025815260200180614ea06025913960400191505060405180910390fd5b6000614c2b6103e8614c258688614d06565b90614d06565b90506000614c3f6103e5614c258689614434565b9050614c566001828481614c4f57fe5b0490614d69565b9695505050505050565b6000808411614ca05760405162461bcd60e51b8152600401808060200182810382526022815260200180614ee56022913960400191505060405180910390fd5b600083118015614cb05750600082115b614ceb5760405162461bcd60e51b8152600401808060200182810382526025815260200180614ea06025913960400191505060405180910390fd5b82614cf68584614d06565b81614cfd57fe5b04949350505050565b6000811580614d2157505080820282828281614d1e57fe5b04145b6113fe576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b808201828110156113fe576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6000806000614dc78585614819565b509050600080614dd8888888613cd4565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015614e1057600080fd5b505afa158015614e24573d6000803e3d6000fd5b505050506040513d6060811015614e3a57600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b0387811690841614614e6d578082614e70565b81815b9099909850965050505050505056fe4d696d6f5632526f757465723a204558504952454400000000000000000000004d696d6f56324c6962726172793a20494e53554646494349454e545f4c49515549444954594d696d6f5632526f757465723a20494e56414c49445f504154480000000000004d696d6f56324c6962726172793a20494e53554646494349454e545f414d4f554e544d696d6f5632526f757465723a20494e53554646494349454e545f425f414d4f554e544d696d6f56324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e544d696d6f5632526f757465723a204558434553534956455f494e5055545f414d4f554e544d696d6f56324c6962726172793a204944454e544943414c5f4144445245535345535472616e7366657248656c7065723a204554485f5452414e534645525f4641494c45444d696d6f5632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e544d696d6f5632526f757465723a20494e53554646494349454e545f415f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c45444d696d6f56324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54a26469706673582212206d9af6470d395ed575d3773cc403af6c45bbfb71ee3db27ba922059de196062864736f6c634300060c0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.