Contract

0x6F60847275DDC985203465686DE7C5E1da1BE83e

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

1 Internal Transaction and 8 Token Transfers found.

Latest 1 internal transaction

Parent Transaction Hash Block From To
16101652024-12-26 0:50:2942 hrs ago1735174229  Contract Creation0 S
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xf4cF9BcE...BA55f85b0
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
UniswapV2Pair

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion, MIT license
File 1 of 17 : UniswapV2Pair.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity =0.6.12;

import './UniswapV2ERC20.sol';
import './libraries/Math.sol';
import './libraries/UQ112x112.sol';
import './interfaces/IERC20.sol';
import './interfaces/IUniswapV2Factory.sol';
import './interfaces/IUniswapV2Callee.sol';

contract UniswapV2Pair is UniswapV2ERC20 {
    using SafeMath  for uint;
    using UQ112x112 for uint224;

    uint public constant MINIMUM_LIQUIDITY = 10**3;
    bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));

    address public factory;
    address public token0;
    address public token1;

    uint112 private reserve0;           // uses single storage slot, accessible via getReserves
    uint112 private reserve1;           // uses single storage slot, accessible via getReserves
    uint32  private blockTimestampLast; // uses single storage slot, accessible via getReserves

    uint public price0CumulativeLast;
    uint public price1CumulativeLast;
    uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event

    uint private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, 'UniswapV2: LOCKED');
        unlocked = 0;
        _;
        unlocked = 1;
    }

    string public name;
    string public symbol;

    function _shorten(string memory str) internal pure returns (string memory) {
        uint endIndex = 5;
        bytes memory strBytes = bytes(str);
        if(strBytes.length <= endIndex)
            return str;
        bytes memory result = new bytes(endIndex);
        for(uint i = 0; i < endIndex; i++)
            result[i] = strBytes[i];
        return string(result);
    }

    function _getSymbol() internal view returns (string memory) {
        string memory symbol0;
        string memory symbol1;
        uint no;

        try IERC20(token0).symbol() returns (string memory ret) {
            symbol0 = _shorten(ret);
        } catch {
            symbol0 = "?";
            ++no;
        }
        try IERC20(token1).symbol() returns (string memory ret) {
            symbol1 = _shorten(ret);
        } catch {
            symbol1 = "?";
            ++no;
        }

        if(no == 2)
            return "Unknown";

        return string(abi.encodePacked(symbol0, "/", symbol1));
    }

    function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {
        _reserve0 = reserve0;
        _reserve1 = reserve1;
        _blockTimestampLast = blockTimestampLast;
    }

    function _safeTransfer(address token, address to, uint value) private {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'UniswapV2: TRANSFER_FAILED');
    }

    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);

    constructor() public {
        factory = msg.sender;
    }

    // called once by the factory at time of deployment
    function initialize(address _token0, address _token1) external {
        require(msg.sender == factory, 'UniswapV2: FORBIDDEN'); // sufficient check
        token0 = _token0;
        token1 = _token1;
        string memory _symbol = _getSymbol();
        symbol = string(abi.encodePacked(_symbol, " spLP"));
        name = string(abi.encodePacked("SpookySwap ", _symbol, " LP"));
    }

    // update reserves and, on the first call per block, price accumulators
    function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
        require(balance0 <= uint112(-1) && balance1 <= uint112(-1), 'UniswapV2: OVERFLOW');
        uint32 blockTimestamp = uint32(block.timestamp % 2**32);
        uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
        if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
            // * never overflows, and + overflow is desired
            price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
            price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
        }
        reserve0 = uint112(balance0);
        reserve1 = uint112(balance1);
        blockTimestampLast = blockTimestamp;
        emit Sync(reserve0, reserve1);
    }

    // if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
    function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
        address feeTo = IUniswapV2Factory(factory).feeTo();
        feeOn = feeTo != address(0);
        uint _kLast = kLast; // gas savings
        if (feeOn) {
            if (_kLast != 0) {
                uint rootK = Math.sqrt(uint(_reserve0).mul(_reserve1));
                uint rootKLast = Math.sqrt(_kLast);
                if (rootK > rootKLast) {
                    uint numerator = totalSupply.mul(rootK.sub(rootKLast));
                    uint denominator = rootK.mul(3).add(rootKLast);
                    uint liquidity = numerator / denominator;
                    if (liquidity > 0) _mint(feeTo, liquidity);
                }
            }
        } else if (_kLast != 0) {
            kLast = 0;
        }
    }

    // this low-level function should be called from a contract which performs important safety checks
    function mint(address to) external lock returns (uint liquidity) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        uint balance0 = IERC20(token0).balanceOf(address(this));
        uint balance1 = IERC20(token1).balanceOf(address(this));
        uint amount0 = balance0.sub(_reserve0);
        uint amount1 = balance1.sub(_reserve1);

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        if (_totalSupply == 0) {
            liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);
           _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
        } else {
            liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);
        }
        require(liquidity > 0, 'UniswapV2: INSUFFICIENT_LIQUIDITY_MINTED');
        _mint(to, liquidity);

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
        emit Mint(msg.sender, amount0, amount1);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function burn(address to) external lock returns (uint amount0, uint amount1) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        address _token0 = token0;                                // gas savings
        address _token1 = token1;                                // gas savings
        uint balance0 = IERC20(_token0).balanceOf(address(this));
        uint balance1 = IERC20(_token1).balanceOf(address(this));
        uint liquidity = balanceOf[address(this)];

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        amount0 = liquidity.mul(balance0) / _totalSupply; // using balances ensures pro-rata distribution
        amount1 = liquidity.mul(balance1) / _totalSupply; // using balances ensures pro-rata distribution
        require(amount0 > 0 && amount1 > 0, 'UniswapV2: INSUFFICIENT_LIQUIDITY_BURNED');
        _burn(address(this), liquidity);
        _safeTransfer(_token0, to, amount0);
        _safeTransfer(_token1, to, amount1);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
        emit Burn(msg.sender, amount0, amount1, to);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock {
        require(amount0Out > 0 || amount1Out > 0, 'UniswapV2: INSUFFICIENT_OUTPUT_AMOUNT');
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        require(amount0Out < _reserve0 && amount1Out < _reserve1, 'UniswapV2: INSUFFICIENT_LIQUIDITY');

        uint balance0;
        uint balance1;
        { // scope for _token{0,1}, avoids stack too deep errors
        address _token0 = token0;
        address _token1 = token1;
        require(to != _token0 && to != _token1, 'UniswapV2: INVALID_TO');
        if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
        if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
        if (data.length > 0) IUniswapV2Callee(to).uniswapV2Call(msg.sender, amount0Out, amount1Out, data);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));
        }
        uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
        uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
        require(amount0In > 0 || amount1In > 0, 'UniswapV2: INSUFFICIENT_INPUT_AMOUNT');
        { // scope for reserve{0,1}Adjusted, avoids stack too deep errors
        uint balance0Adjusted = balance0.mul(1000).sub(amount0In.mul(2));
        uint balance1Adjusted = balance1.mul(1000).sub(amount1In.mul(2));
        require(balance0Adjusted.mul(balance1Adjusted) >= uint(_reserve0).mul(_reserve1).mul(1000**2), 'UniswapV2: K');
        }

        _update(balance0, balance1, _reserve0, _reserve1);
        emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
    }

    // force balances to match reserves
    function skim(address to) external lock {
        address _token0 = token0; // gas savings
        address _token1 = token1; // gas savings
        _safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)).sub(reserve0));
        _safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1));
    }

    // force reserves to match balances
    function sync() external lock {
        _update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);
    }
}

File 2 of 17 : IERC20.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0;

interface IERC20 {
    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 3 of 17 : IUniswapV2Callee.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0;

interface IUniswapV2Callee {
    function uniswapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;
}

File 4 of 17 : IUniswapV2Factory.sol
// SPDX-License-Identifier: GPL-3.0
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 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;
}

File 5 of 17 : IUniswapV2Pair.sol
// SPDX-License-Identifier: GPL-3.0
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 6 of 17 : IUniswapV2Router01.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() 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 addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

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

File 7 of 17 : IUniswapV2Router02.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 8 of 17 : IWETH.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0;

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

File 9 of 17 : Math.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.6.12;

// a library for performing various math operations

library Math {
    function min(uint x, uint y) internal pure returns (uint z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

File 10 of 17 : SafeMath.sol
// SPDX-License-Identifier: GPL-3.0
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(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 11 of 17 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0

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

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

File 12 of 17 : UniswapV2Library.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0;

import '../interfaces/IUniswapV2Pair.sol';
import "./SafeMath.sol";

library UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, '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'c0a4478c7d7a8e51439185380bd1914dea14c12086db861090a5dc8d11b4e95b' // 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(998);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, '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(998);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, '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 13 of 17 : UQ112x112.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.6.12;

// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))

// range: [0, 2**112 - 1]
// resolution: 1 / 2**112

library UQ112x112 {
    uint224 constant Q112 = 2**112;

    // encode a uint112 as a UQ112x112
    function encode(uint112 y) internal pure returns (uint224 z) {
        z = uint224(y) * Q112; // never overflows
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
        z = x / uint224(y);
    }
}

File 14 of 17 : ERC20.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.6.12;

import '../UniswapV2ERC20.sol';

contract ERC20 is UniswapV2ERC20 {
    constructor(uint _totalSupply) public {
        _mint(msg.sender, _totalSupply);
    }
}

File 15 of 17 : UniswapV2ERC20.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity =0.6.12;

import './libraries/SafeMath.sol';

contract UniswapV2ERC20 {
    using SafeMath for uint;

    uint8 public constant decimals = 18;
    uint  public totalSupply;
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    bytes32 public DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint) public nonces;

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

    constructor() public {
        uint chainId;
        assembly {
            chainId := chainid()
        }
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
                keccak256(bytes('Spooky LP')),
                keccak256(bytes('1')),
                chainId,
                address(this)
            )
        );
    }

    function _mint(address to, uint value) internal {
        totalSupply = totalSupply.add(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(address(0), to, value);
    }

    function _burn(address from, uint value) internal {
        balanceOf[from] = balanceOf[from].sub(value);
        totalSupply = totalSupply.sub(value);
        emit Transfer(from, address(0), value);
    }

    function _approve(address owner, address spender, uint value) private {
        allowance[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _transfer(address from, address to, uint value) private {
        balanceOf[from] = balanceOf[from].sub(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(from, to, value);
    }

    function approve(address spender, uint value) external returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    function transfer(address to, uint value) external returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function transferFrom(address from, address to, uint value) external returns (bool) {
        if (allowance[from][msg.sender] != uint(-1)) {
            allowance[from][msg.sender] = allowance[from][msg.sender].sub(value);
        }
        _transfer(from, to, value);
        return true;
    }

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
        require(deadline >= block.timestamp, 'UniswapV2: EXPIRED');
        bytes32 digest = keccak256(
            abi.encodePacked(
                '\x19\x01',
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
            )
        );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(recoveredAddress != address(0) && recoveredAddress == owner, 'UniswapV2: INVALID_SIGNATURE');
        _approve(owner, spender, value);
    }
}

File 16 of 17 : UniswapV2Factory.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity =0.6.12;

import './interfaces/IUniswapV2Factory.sol';
import './UniswapV2Pair.sol';

contract UniswapV2Factory is IUniswapV2Factory {
    bytes32 public constant INIT_CODE_PAIR_HASH = keccak256(abi.encodePacked(type(UniswapV2Pair).creationCode));
    address public override feeTo;
    address public override feeToSetter;

    mapping(address => mapping(address => address)) public override getPair;
    address[] public override allPairs;

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

    constructor(address _feeToSetter) public {
        feeToSetter = _feeToSetter;
    }

    function allPairsLength() external override view returns (uint) {
        return allPairs.length;
    }

    function pairCodeHash() external pure returns (bytes32) {
        return keccak256(type(UniswapV2Pair).creationCode);
    }

    function createPair(address tokenA, address tokenB) external override returns (address pair) {
        require(tokenA != tokenB, 'UniswapV2: IDENTICAL_ADDRESSES');
        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2: ZERO_ADDRESS');
        require(getPair[token0][token1] == address(0), 'UniswapV2: PAIR_EXISTS'); // single check is sufficient
        bytes memory bytecode = type(UniswapV2Pair).creationCode;
        bytes32 salt = keccak256(abi.encodePacked(token0, token1));
        assembly {
            pair := create2(0, add(bytecode, 32), mload(bytecode), salt)
        }
        UniswapV2Pair(pair).initialize(token0, token1);
        getPair[token0][token1] = pair;
        getPair[token1][token0] = pair; // populate mapping in the reverse direction
        allPairs.push(pair);
        emit PairCreated(token0, token1, pair, allPairs.length);
    }

    function setFeeTo(address _feeTo) external override {
        require(msg.sender == feeToSetter, 'UniswapV2: FORBIDDEN');
        feeTo = _feeTo;
    }

    function setFeeToSetter(address _feeToSetter) external override {
        require(msg.sender == feeToSetter, 'UniswapV2: FORBIDDEN');
        feeToSetter = _feeToSetter;
    }

}

File 17 of 17 : UniswapV2Router02.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.6.12;

import './interfaces/IUniswapV2Router02.sol';
import './interfaces/IUniswapV2Factory.sol';
import './libraries/UniswapV2Library.sol';
import './libraries/TransferHelper.sol';
import './libraries/SafeMath.sol';
import './interfaces/IERC20.sol';
import './interfaces/IWETH.sol';

contract UniswapV2Router02 is IUniswapV2Router02 {
    using SafeMath for uint;

    address public immutable override factory;
    address public immutable override WETH;

    modifier ensure(uint deadline) {
        require(deadline >= block.timestamp, 'UniswapV2Router: 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,
        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);
    }
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) {
        (amountToken, amountETH) = _addLiquidity(
            token,
            WETH,
            amountTokenDesired,
            msg.value,
            amountTokenMin,
            amountETHMin
        );
        address pair = UniswapV2Library.pairFor(factory, token, WETH);
        TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken);
        IWETH(WETH).deposit{value: amountETH}();
        assert(IWETH(WETH).transfer(pair, amountETH));
        liquidity = IUniswapV2Pair(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,
        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 removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountToken, uint amountETH) {
        (amountToken, amountETH) = removeLiquidity(
            token,
            WETH,
            liquidity,
            amountTokenMin,
            amountETHMin,
            address(this),
            deadline
        );
        TransferHelper.safeTransfer(token, to, amountToken);
        IWETH(WETH).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        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);
    }
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override returns (uint amountToken, uint amountETH) {
        address pair = UniswapV2Library.pairFor(factory, token, WETH);
        uint value = approveMax ? uint(-1) : liquidity;
        IUniswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountToken, amountETH) = removeLiquidityETH(token, liquidity, amountTokenMin, amountETHMin, to, deadline);
    }

    // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) ****
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) public virtual override ensure(deadline) returns (uint amountETH) {
        (, amountETH) = removeLiquidity(
            token,
            WETH,
            liquidity,
            amountTokenMin,
            amountETHMin,
            address(this),
            deadline
        );
        TransferHelper.safeTransfer(token, to, IERC20(token).balanceOf(address(this)));
        IWETH(WETH).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external virtual override returns (uint amountETH) {
        address pair = UniswapV2Library.pairFor(factory, token, WETH);
        uint value = approveMax ? uint(-1) : liquidity;
        IUniswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        amountETH = removeLiquidityETHSupportingFeeOnTransferTokens(
            token, liquidity, amountTokenMin, amountETHMin, to, deadline
        );
    }

    // **** SWAP ****
    // requires the initial amount to have already been sent to the first pair
    function _swap(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);
    }
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        payable
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[0] == WETH, 'UniswapV2Router: INVALID_PATH');
        amounts = UniswapV2Library.getAmountsOut(factory, msg.value, path);
        require(amounts[amounts.length - 1] >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(IWETH(WETH).transfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
    }
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[path.length - 1] == WETH, 'UniswapV2Router: INVALID_PATH');
        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, address(this));
        IWETH(WETH).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[path.length - 1] == WETH, 'UniswapV2Router: INVALID_PATH');
        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, address(this));
        IWETH(WETH).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        virtual
        override
        payable
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        require(path[0] == WETH, 'UniswapV2Router: INVALID_PATH');
        amounts = UniswapV2Library.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= msg.value, 'UniswapV2Router: EXCESSIVE_INPUT_AMOUNT');
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(IWETH(WETH).transfer(UniswapV2Library.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 (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 = IERC20(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 = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
            'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'
        );
    }
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    )
        external
        virtual
        override
        payable
        ensure(deadline)
    {
        require(path[0] == WETH, 'UniswapV2Router: INVALID_PATH');
        uint amountIn = msg.value;
        IWETH(WETH).deposit{value: amountIn}();
        assert(IWETH(WETH).transfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn));
        uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
            'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'
        );
    }
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    )
        external
        virtual
        override
        ensure(deadline)
    {
        require(path[path.length - 1] == WETH, 'UniswapV2Router: INVALID_PATH');
        TransferHelper.safeTransferFrom(
            path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn
        );
        _swapSupportingFeeOnTransferTokens(path, address(this));
        uint amountOut = IERC20(WETH).balanceOf(address(this));
        require(amountOut >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
        IWETH(WETH).withdraw(amountOut);
        TransferHelper.safeTransferETH(to, amountOut);
    }

    // **** 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);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 9999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token0","type":"address"},{"internalType":"address","name":"_token1","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a71461054b578063d505accf14610553578063dd62ed3e146105a4578063fff6cae9146105d2576101b9565b8063ba9a7a5614610515578063bc25cf771461051d578063c45a015514610543576101b9565b80637ecebe00116100d35780637ecebe001461047c57806389afcb44146104a257806395d89b41146104e1578063a9059cbb146104e9576101b9565b80636a6278421461042857806370a082311461044e5780637464fc3d14610474576101b9565b806323b872dd116101665780633644e515116101405780633644e515146103e2578063485cc955146103ea5780635909c0d5146104185780635a3d549314610420576101b9565b806323b872dd1461038657806330adf81f146103bc578063313ce567146103c4576101b9565b8063095ea7b311610197578063095ea7b3146103085780630dfe16811461034857806318160ddd1461036c576101b9565b8063022c0d9f146101be57806306fdde031461024c5780630902f1ac146102c9575b600080fd5b61024a600480360360808110156101d457600080fd5b8135916020810135916001600160a01b03604083013516919081019060808101606082013564010000000081111561020b57600080fd5b82018360208201111561021d57600080fd5b8035906020019184600183028401116401000000008311171561023f57600080fd5b5090925090506105da565b005b610254610b6a565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028e578181015183820152602001610276565b50505050905090810190601f1680156102bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102d1610bf8565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103346004803603604081101561031e57600080fd5b506001600160a01b038135169060200135610c4d565b604080519115158252519081900360200190f35b610350610c64565b604080516001600160a01b039092168252519081900360200190f35b610374610c73565b60408051918252519081900360200190f35b6103346004803603606081101561039c57600080fd5b506001600160a01b03813581169160208101359091169060400135610c79565b610374610d0d565b6103cc610d31565b6040805160ff9092168252519081900360200190f35b610374610d36565b61024a6004803603604081101561040057600080fd5b506001600160a01b0381358116916020013516610d3c565b610374610f96565b610374610f9c565b6103746004803603602081101561043e57600080fd5b50356001600160a01b0316610fa2565b6103746004803603602081101561046457600080fd5b50356001600160a01b03166112ea565b6103746112fc565b6103746004803603602081101561049257600080fd5b50356001600160a01b0316611302565b6104c8600480360360208110156104b857600080fd5b50356001600160a01b0316611314565b6040805192835260208301919091528051918290030190f35b61025461172a565b610334600480360360408110156104ff57600080fd5b506001600160a01b038135169060200135611785565b610374611792565b61024a6004803603602081101561053357600080fd5b50356001600160a01b0316611798565b610350611944565b610350611953565b61024a600480360360e081101561056957600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611962565b610374600480360360408110156105ba57600080fd5b506001600160a01b0381358116916020013516611b8a565b61024a611ba7565b600c54600114610631576040805162461bcd60e51b815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806106445750600084115b61067f5760405162461bcd60e51b8152600401808060200182810382526025815260200180612cbb6025913960400191505060405180910390fd5b60008061068a610bf8565b5091509150816dffffffffffffffffffffffffffff16871080156106bd5750806dffffffffffffffffffffffffffff1686105b6106f85760405162461bcd60e51b8152600401808060200182810382526021815260200180612d046021913960400191505060405180910390fd5b60065460075460009182916001600160a01b039182169190811690891682148015906107365750806001600160a01b0316896001600160a01b031614155b610787576040805162461bcd60e51b815260206004820152601560248201527f556e697377617056323a20494e56414c49445f544f0000000000000000000000604482015290519081900360640190fd5b8a1561079857610798828a8d611d59565b89156107a9576107a9818a8c611d59565b861561085b57886001600160a01b03166310d1e85c338d8d8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561084257600080fd5b505af1158015610856573d6000803e3d6000fd5b505050505b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156108ba57600080fd5b505afa1580156108ce573d6000803e3d6000fd5b505050506040513d60208110156108e457600080fd5b5051604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b15801561094957600080fd5b505afa15801561095d573d6000803e3d6000fd5b505050506040513d602081101561097357600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a9003831161099d5760006109b3565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff160383116109d75760006109ed565b89856dffffffffffffffffffffffffffff160383035b905060008211806109fe5750600081115b610a395760405162461bcd60e51b8152600401808060200182810382526024815260200180612ce06024913960400191505060405180910390fd5b6000610a5b610a49846002611f21565b610a55876103e8611f21565b90611f8d565b90506000610a6d610a49846002611f21565b9050610a99620f4240610a936dffffffffffffffffffffffffffff8b8116908b16611f21565b90611f21565b610aa38383611f21565b1015610af6576040805162461bcd60e51b815260206004820152600c60248201527f556e697377617056323a204b0000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610b0484848888611fe5565b60408051838152602081018390528082018d9052606081018c905290516001600160a01b038b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b600d805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bf05780601f10610bc557610100808354040283529160200191610bf0565b820191906000526020600020905b815481529060010190602001808311610bd357829003601f168201915b505050505081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610c5a338484612281565b5060015b92915050565b6006546001600160a01b031681565b60005481565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610cf8576001600160a01b0384166000908152600260209081526040808320338452909152902054610cd39083611f8d565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610d038484846122e3565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b6005546001600160a01b03163314610d9b576040805162461bcd60e51b815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b600680546001600160a01b038085167fffffffffffffffffffffffff00000000000000000000000000000000000000009283161790925560078054928416929091169190911790556060610ded612391565b9050806040516020018082805190602001908083835b60208310610e225780518252601f199092019160209182019101610e03565b51815160209384036101000a60001901801990921691161790527f2073704c5000000000000000000000000000000000000000000000000000000091909301908152604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5018152600590920190528051610eab9550600e94509201919050612c27565b508060405160200180807f53706f6f6b795377617020000000000000000000000000000000000000000000815250600b0182805190602001908083835b60208310610f075780518252601f199092019160209182019101610ee8565b51815160209384036101000a60001901801990921691161790527f204c50000000000000000000000000000000000000000000000000000000000091909301908152604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe3018152600390920190528051610f909550600d94509201919050612c27565b50505050565b60095481565b600a5481565b6000600c54600114610ffb576040805162461bcd60e51b815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c8190558061100b610bf8565b50600654604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519395509193506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561107857600080fd5b505afa15801561108c573d6000803e3d6000fd5b505050506040513d60208110156110a257600080fd5b5051600754604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b505190506000611158836dffffffffffffffffffffffffffff8716611f8d565b90506000611176836dffffffffffffffffffffffffffff8716611f8d565b9050600061118487876127ce565b600054909150806111bb576111a76103e8610a556111a28787611f21565b612915565b98506111b660006103e8612967565b61120c565b6112096dffffffffffffffffffffffffffff89166111d98684611f21565b816111e057fe5b046dffffffffffffffffffffffffffff89166111fc8685611f21565b8161120357fe5b046129f1565b98505b6000891161124b5760405162461bcd60e51b8152600401808060200182810382526028815260200180612d4d6028913960400191505060405180910390fd5b6112558a8a612967565b61126186868a8a611fe5565b811561129d57600854611299906dffffffffffffffffffffffffffff808216916e010000000000000000000000000000900416611f21565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c5460011461136e576040805162461bcd60e51b815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c8190558061137e610bf8565b50600654600754604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519496509294506001600160a01b039182169391169160009184916370a08231916024808301926020929190829003018186803b1580156113f357600080fd5b505afa158015611407573d6000803e3d6000fd5b505050506040513d602081101561141d57600080fd5b5051604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b15801561148457600080fd5b505afa158015611498573d6000803e3d6000fd5b505050506040513d60208110156114ae57600080fd5b5051306000908152600160205260408120549192506114cd88886127ce565b600054909150806114de8487611f21565b816114e557fe5b049a50806114f38486611f21565b816114fa57fe5b04995060008b11801561150d575060008a115b6115485760405162461bcd60e51b8152600401808060200182810382526028815260200180612d256028913960400191505060405180910390fd5b6115523084612a09565b61155d878d8d611d59565b611568868d8c611d59565b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b038916916370a08231916024808301926020929190829003018186803b1580156115c757600080fd5b505afa1580156115db573d6000803e3d6000fd5b505050506040513d60208110156115f157600080fd5b5051604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519196506001600160a01b038816916370a0823191602480820192602092909190829003018186803b15801561165657600080fd5b505afa15801561166a573d6000803e3d6000fd5b505050506040513d602081101561168057600080fd5b5051935061169085858b8b611fe5565b81156116cc576008546116c8906dffffffffffffffffffffffffffff808216916e010000000000000000000000000000900416611f21565b600b555b604080518c8152602081018c905281516001600160a01b038f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b600e805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bf05780601f10610bc557610100808354040283529160200191610bf0565b6000610c5a3384846122e3565b6103e881565b600c546001146117ef576040805162461bcd60e51b815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b0394851694909316926118b892859287926118b3926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b15801561188157600080fd5b505afa158015611895573d6000803e3d6000fd5b505050506040513d60208110156118ab57600080fd5b505190611f8d565b611d59565b61193a81846118b36008600e9054906101000a90046dffffffffffffffffffffffffffff166dffffffffffffffffffffffffffff16856001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561188157600080fd5b50506001600c5550565b6005546001600160a01b031681565b6007546001600160a01b031681565b428410156119b7576040805162461bcd60e51b815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b6003546001600160a01b0380891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa158015611aed573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590611b235750886001600160a01b0316816001600160a01b0316145b611b74576040805162461bcd60e51b815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b611b7f898989612281565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c54600114611bfe576040805162461bcd60e51b815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611d52926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611c6857600080fd5b505afa158015611c7c573d6000803e3d6000fd5b505050506040513d6020811015611c9257600080fd5b5051600754604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611cf857600080fd5b505afa158015611d0c573d6000803e3d6000fd5b505050506040513d6020811015611d2257600080fd5b50516008546dffffffffffffffffffffffffffff808216916e010000000000000000000000000000900416611fe5565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b60208310611e345780518252601f199092019160209182019101611e15565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611e96576040519150601f19603f3d011682016040523d82523d6000602084013e611e9b565b606091505b5091509150818015611ec9575080511580611ec95750808060200190516020811015611ec657600080fd5b50515b611f1a576040805162461bcd60e51b815260206004820152601a60248201527f556e697377617056323a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b6000811580611f3c57505080820282828281611f3957fe5b04145b610c5e576040805162461bcd60e51b815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610c5e576040805162461bcd60e51b815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061201157506dffffffffffffffffffffffffffff8311155b612062576040805162461bcd60e51b815260206004820152601360248201527f556e697377617056323a204f564552464c4f5700000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c0100000000000000000000000000000000000000000000000000000000900481168203908116158015906120b257506dffffffffffffffffffffffffffff841615155b80156120cd57506dffffffffffffffffffffffffffff831615155b15612177578063ffffffff1661210a856120e686612a9b565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690612abf565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff811661214a846120e687612a9b565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166000908152600160205260409020546123069082611f8d565b6001600160a01b0380851660009081526001602052604080822093909355908416815220546123359082612b00565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60608060606000600660009054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156123e657600080fd5b505afa9250505080156124cc57506040513d6000823e601f3d908101601f19168201604052602081101561241957600080fd5b810190808051604051939291908464010000000082111561243957600080fd5b90830190602082018581111561244e57600080fd5b825164010000000081118282018810171561246857600080fd5b82525081516020918201929091019080838360005b8381101561249557818101518382015260200161247d565b50505050905090810190601f1680156124c25780820380516001836020036101000a031916815260200191505b5060405250505060015b61250e576040805180820190915260018082527f3f0000000000000000000000000000000000000000000000000000000000000060208301529093500161251b565b61251781612b58565b9350505b600760009054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561256957600080fd5b505afa92505050801561264f57506040513d6000823e601f3d908101601f19168201604052602081101561259c57600080fd5b81019080805160405193929190846401000000008211156125bc57600080fd5b9083019060208201858111156125d157600080fd5b82516401000000008111828201881017156125eb57600080fd5b82525081516020918201929091019080838360005b83811015612618578181015183820152602001612600565b50505050905090810190601f1680156126455780820380516001836020036101000a031916815260200191505b5060405250505060015b612691576040805180820190915260018082527f3f0000000000000000000000000000000000000000000000000000000000000060208301529092500161269e565b61269a81612b58565b9250505b80600214156126e7576040518060400160405280600781526020017f556e6b6e6f776e0000000000000000000000000000000000000000000000000081525093505050506127cb565b82826040516020018083805190602001908083835b6020831061271b5780518252601f1990920191602091820191016126fc565b6001836020036101000a038019825116818451168082178552505050505050905001807f2f0000000000000000000000000000000000000000000000000000000000000081525060010182805190602001908083835b602083106127905780518252601f199092019160209182019101612771565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405293505050505b90565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561281f57600080fd5b505afa158015612833573d6000803e3d6000fd5b505050506040513d602081101561284957600080fd5b5051600b546001600160a01b0382161580159450919250906129015780156128fc57600061288d6111a26dffffffffffffffffffffffffffff888116908816611f21565b9050600061289a83612915565b9050808211156128f95760006128bc6128b38484611f8d565b60005490611f21565b905060006128d5836128cf866003611f21565b90612b00565b905060008183816128e257fe5b04905080156128f5576128f58782612967565b5050505b50505b61290d565b801561290d576000600b555b505092915050565b60006003821115612958575080600160028204015b818110156129525780915060028182858161294157fe5b04018161294a57fe5b04905061292a565b50612962565b8115612962575060015b919050565b6000546129749082612b00565b60009081556001600160a01b0383168152600160205260409020546129999082612b00565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612a005781612a02565b825b9392505050565b6001600160a01b038216600090815260016020526040902054612a2c9082611f8d565b6001600160a01b03831660009081526001602052604081209190915554612a539082611f8d565b60009081556040805183815290516001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612af857fe5b049392505050565b80820182811015610c5e576040805162461bcd60e51b815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b805160609060059083908210612b72578392505050612962565b60608267ffffffffffffffff81118015612b8b57600080fd5b506040519080825280601f01601f191660200182016040528015612bb6576020820181803683370190505b50905060005b83811015612c1e57828181518110612bd057fe5b602001015160f81c60f81b828281518110612be757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101612bbc565b50949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612c6857805160ff1916838001178555612c95565b82800160010185558215612c95579182015b82811115612c95578251825591602001919060010190612c7a565b50612ca1929150612ca5565b5090565b5b80821115612ca15760008155600101612ca656fe556e697377617056323a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f4c4951554944495459556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4255524e4544556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4d494e544544a264697066735822122025cb318fcb3e1dec8fc27af1cc4db68b5e5f4fb0c140f1f8e40ecd2a2a90d1d464736f6c634300060c0033

Deployed Bytecode Sourcemap

285:10717:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8562:1861;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8562:1861:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8562:1861:2;;-1:-1:-1;8562:1861:2;-1:-1:-1;8562:1861:2;:::i;:::-;;1263:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2320:227;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2067:144:0;;;;;;;;;;;;;;;;-1:-1:-1;2067:144:0;;-1:-1:-1;;;;;2067:144:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;571:21:2;;;:::i;:::-;;;;-1:-1:-1;;;;;571:21:2;;;;;;;;;;;;;;200:24:0;;;:::i;:::-;;;;;;;;;;;;;;;;2359:295;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2359:295:0;;;;;;;;;;;;;;;;;:::i;486:108::-;;;:::i;159:35::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;345:31;;;:::i;3352:385:2:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3352:385:2;;;;;;;;;;:::i;915:32::-;;;:::i;953:::-;;;:::i;5681:1219::-;;;;;;;;;;;;;;;;-1:-1:-1;5681:1219:2;-1:-1:-1;;;;;5681:1219:2;;:::i;230:41:0:-;;;;;;;;;;;;;;;;-1:-1:-1;230:41:0;-1:-1:-1;;;;;230:41:0;;:::i;991:17:2:-;;;:::i;600:38:0:-;;;;;;;;;;;;;;;;-1:-1:-1;600:38:0;-1:-1:-1;;;;;600:38:0;;:::i;7009:1444:2:-;;;;;;;;;;;;;;;;-1:-1:-1;7009:1444:2;-1:-1:-1;;;;;7009:1444:2;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1287:20;;;:::i;2217:136:0:-;;;;;;;;;;;;;;;;-1:-1:-1;2217:136:0;;-1:-1:-1;;;;;2217:136:0;;;;;;:::i;396:46:2:-;;;:::i;10469:329::-;;;;;;;;;;;;;;;;-1:-1:-1;10469:329:2;-1:-1:-1;;;;;10469:329:2;;:::i;543:22::-;;;:::i;598:21::-;;;:::i;2660:662:0:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2660:662:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2660:662:0;;;;;;;;:::i;277:61::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;277:61:0;;;;;;;;;;:::i;10844:156:2:-;;;:::i;8562:1861::-;1160:8;;1172:1;1160:13;1152:43;;;;;-1:-1:-1;;;1152:43:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1216:1;1205:8;:12;8675:14;;;;:32:::1;;;8706:1;8693:10;:14;8675:32;8667:82;;;;-1:-1:-1::0;;;8667:82:2::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8760:17;8779::::0;8801:13:::1;:11;:13::i;:::-;8759:55;;;;;8860:9;8847:22;;:10;:22;:48;;;;;8886:9;8873:22;;:10;:22;8847:48;8839:94;;;;-1:-1:-1::0;;;8839:94:2::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9073:6;::::0;9107::::1;::::0;8944:13:::1;::::0;;;-1:-1:-1;;;;;9073:6:2;;::::1;::::0;9107;;::::1;::::0;9131:13;::::1;::::0;::::1;::::0;::::1;::::0;:30:::1;;-1:-1:-1::0;;;;;;9148:13:2;;::::1;::::0;;::::1;;;9131:30;9123:64;;;::::0;;-1:-1:-1;;;9123:64:2;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;9201:14:::0;;9197:58:::1;;9217:38;9231:7;9240:2;9244:10;9217:13;:38::i;:::-;9303:14:::0;;9299:58:::1;;9319:38;9333:7;9342:2;9346:10;9319:13;:38::i;:::-;9405:15:::0;;9401:97:::1;;9439:2;-1:-1:-1::0;;;;;9422:34:2::1;;9457:10;9469;9481;9493:4;;9422:76;;;;;;;;;;;;;-1:-1:-1::0;;;;;9422:76:2::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;9401:97;9519:40;::::0;;-1:-1:-1;;;9519:40:2;;9553:4:::1;9519:40;::::0;::::1;::::0;;;-1:-1:-1;;;;;9519:25:2;::::1;::::0;::::1;::::0;:40;;;;;::::1;::::0;;;;;;;;:25;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;9519:40:2;9580::::1;::::0;;-1:-1:-1;;;9580:40:2;;9614:4:::1;9580:40;::::0;::::1;::::0;;;9519;;-1:-1:-1;;;;;;9580:25:2;::::1;::::0;::::1;::::0;:40;;;;;9519::::1;::::0;9580;;;;;;;;:25;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;9580:40:2;;-1:-1:-1;9640:14:2::1;::::0;-1:-1:-1;;9668:22:2::1;::::0;::::1;::::0;;::::1;9657:33:::0;::::1;:75;;9731:1;9657:75;;;9717:10;9705:9;:22;;;9693:8;:35;9657:75;9640:92;;9742:14;9782:10;9770:9;:22;;;9759:8;:33;:75;;9833:1;9759:75;;;9819:10;9807:9;:22;;;9795:8;:35;9759:75;9742:92;;9864:1;9852:9;:13;:30;;;;9881:1;9869:9;:13;9852:30;9844:79;;;;-1:-1:-1::0;;;9844:79:2::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10007:21;10031:40;10054:16;:9:::0;10068:1:::1;10054:13;:16::i;:::-;10031:18;:8:::0;10044:4:::1;10031:12;:18::i;:::-;:22:::0;::::1;:40::i;:::-;10007:64:::0;-1:-1:-1;10081:21:2::1;10105:40;10128:16;:9:::0;10142:1:::1;10128:13;:16::i;10105:40::-;10081:64:::0;-1:-1:-1;10205:43:2::1;10240:7;10205:30;;:15:::0;;::::1;::::0;:30;::::1;:19;:30::i;:::-;:34:::0;::::1;:43::i;:::-;10163:38;:16:::0;10184;10163:20:::1;:38::i;:::-;:85;;10155:110;;;::::0;;-1:-1:-1;;;10155:110:2;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1227:1;;10286:49;10294:8;10304;10314:9;10325;10286:7;:49::i;:::-;10350:66;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10350:66:2;::::1;::::0;10355:10:::1;::::0;10350:66:::1;::::0;;;;;;;::::1;-1:-1:-1::0;;1249:1:2;1238:8;:12;-1:-1:-1;;;;;;;;;8562:1861:2:o;1263:18::-;;;;;;;;;;;;;;;-1:-1:-1;;1263:18:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2320:227::-;2452:8;;;;;;;2482;;;;;;;2522:18;;;;;;2320:227::o;2067:144:0:-;2131:4;2147:36;2156:10;2168:7;2177:5;2147:8;:36::i;:::-;-1:-1:-1;2200:4:0;2067:144;;;;;:::o;571:21:2:-;;;-1:-1:-1;;;;;571:21:2;;:::o;200:24:0:-;;;;:::o;2359:295::-;-1:-1:-1;;;;;2457:15:0;;2437:4;2457:15;;;:9;:15;;;;;;;;2473:10;2457:27;;;;;;;;-1:-1:-1;2457:39:0;2453:138;;-1:-1:-1;;;;;2542:15:0;;;;;;:9;:15;;;;;;;;2558:10;2542:27;;;;;;;;:38;;2574:5;2542:31;:38::i;:::-;-1:-1:-1;;;;;2512:15:0;;;;;;:9;:15;;;;;;;;2528:10;2512:27;;;;;;;:68;2453:138;2600:26;2610:4;2616:2;2620:5;2600:9;:26::i;:::-;-1:-1:-1;2643:4:0;2359:295;;;;;:::o;486:108::-;528:66;486:108;:::o;159:35::-;192:2;159:35;:::o;345:31::-;;;;:::o;3352:385:2:-;3447:7;;-1:-1:-1;;;;;3447:7:2;3433:10;:21;3425:54;;;;;-1:-1:-1;;;3425:54:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;3509:6;:16;;-1:-1:-1;;;;;3509:16:2;;;;;;;;;;;3535:6;:16;;;;;;;;;;;;;;;3561:21;3585:12;:10;:12::i;:::-;3561:36;;3640:7;3623:34;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3623:34:2;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3623:34:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3607:51;;;;-1:-1:-1;3607:6:2;;-1:-1:-1;3607:51:2;;;;-1:-1:-1;3607:51:2;:::i;:::-;;3714:7;3682:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3682:47:2;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3682:47:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3668:62;;;;-1:-1:-1;3668:4:2;;-1:-1:-1;3668:62:2;;;;-1:-1:-1;3668:62:2;:::i;:::-;;3352:385;;;:::o;915:32::-;;;;:::o;953:::-;;;;:::o;5681:1219::-;5730:14;1160:8;;1172:1;1160:13;1152:43;;;;;-1:-1:-1;;;1152:43:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1216:1;1205:8;:12;;;1216:1;5798:13:::1;:11;:13::i;:::-;-1:-1:-1::0;5859:6:2::1;::::0;5852:39:::1;::::0;;-1:-1:-1;;;5852:39:2;;5885:4:::1;5852:39;::::0;::::1;::::0;;;5756:55;;-1:-1:-1;5756:55:2;;-1:-1:-1;;;;;;;;5859:6:2;;::::1;::::0;5852:24:::1;::::0;:39;;;;;::::1;::::0;;;;;;;;5859:6;5852:39;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;5852:39:2;5924:6:::1;::::0;5917:39:::1;::::0;;-1:-1:-1;;;5917:39:2;;5950:4:::1;5917:39;::::0;::::1;::::0;;;5852;;-1:-1:-1;;;;;;;;5924:6:2;;::::1;::::0;5917:24:::1;::::0;:39;;;;;5852::::1;::::0;5917;;;;;;;;5924:6;5917:39;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;5917:39:2;;-1:-1:-1;5966:12:2::1;5981:23;:8:::0;:23:::1;::::0;::::1;:12;:23::i;:::-;5966:38:::0;-1:-1:-1;6014:12:2::1;6029:23;:8:::0;:23:::1;::::0;::::1;:12;:23::i;:::-;6014:38;;6063:10;6076:30;6085:9;6096;6076:8;:30::i;:::-;6116:17;6136:11:::0;6063:43;;-1:-1:-1;6239:17:2;6235:347:::1;;6284:54;437:5;6284:31;6294:20;:7:::0;6306;6294:11:::1;:20::i;:::-;6284:9;:31::i;:54::-;6272:66;;6351:36;6365:1;437:5;6351;:36::i;:::-;6235:347;;;6485:86;6494:37;::::0;::::1;:25;:7:::0;6506:12;6494:11:::1;:25::i;:::-;:37;;;;;;6533;::::0;::::1;:25;:7:::0;6545:12;6533:11:::1;:25::i;:::-;:37;;;;;;6485:8;:86::i;:::-;6473:98;;6235:347;6611:1;6599:9;:13;6591:66;;;;-1:-1:-1::0;;;6591:66:2::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6667:20;6673:2;6677:9;6667:5;:20::i;:::-;6698:49;6706:8;6716;6726:9;6737;6698:7;:49::i;:::-;6761:5;6757:47;;;6795:8;::::0;6776:28:::1;::::0;6795:8:::1;6781::::0;;::::1;::::0;6795;;::::1;;6776:18;:28::i;:::-;6768:5;:36:::0;6757:47:::1;6859:34;::::0;;;;;::::1;::::0;::::1;::::0;;;;;6864:10:::1;::::0;6859:34:::1;::::0;;;;;;::::1;-1:-1:-1::0;;1249:1:2;1238:8;:12;-1:-1:-1;5681:1219:2;;;-1:-1:-1;;;;;;5681:1219:2:o;230:41:0:-;;;;;;;;;;;;;:::o;991:17:2:-;;;;:::o;600:38:0:-;;;;;;;;;;;;;:::o;7009:1444:2:-;7058:12;7072;1160:8;;1172:1;1160:13;1152:43;;;;;-1:-1:-1;;;1152:43:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1216:1;1205:8;:12;;;1216:1;7138:13:::1;:11;:13::i;:::-;-1:-1:-1::0;7194:6:2::1;::::0;7274::::1;::::0;7352:40:::1;::::0;;-1:-1:-1;;;7352:40:2;;7386:4:::1;7352:40;::::0;::::1;::::0;;;7096:55;;-1:-1:-1;7096:55:2;;-1:-1:-1;;;;;;7194:6:2;;::::1;::::0;7274;::::1;::::0;-1:-1:-1;;7194:6:2;;7352:25:::1;::::0;:40;;;;;::::1;::::0;;;;;;;;7194:6;7352:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;7352:40:2;7418::::1;::::0;;-1:-1:-1;;;7418:40:2;;7452:4:::1;7418:40;::::0;::::1;::::0;;;7352;;-1:-1:-1;;;;;;;;7418:25:2;::::1;::::0;::::1;::::0;:40;;;;;7352::::1;::::0;7418;;;;;;;:25;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;7418:40:2;7503:4:::1;7468:14;7485:24:::0;;;:9:::1;7418:40;7485:24:::0;;;;;7418:40;;-1:-1:-1;7533:30:2::1;7542:9:::0;7553;7533:8:::1;:30::i;:::-;7573:17;7593:11:::0;7520:43;;-1:-1:-1;7593:11:2;7702:23:::1;:9:::0;7716:8;7702:13:::1;:23::i;:::-;:38;;;;;;::::0;-1:-1:-1;7834:12:2;7808:23:::1;:9:::0;7822:8;7808:13:::1;:23::i;:::-;:38;;;;;;7798:48;;7922:1;7912:7;:11;:26;;;;;7937:1;7927:7;:11;7912:26;7904:79;;;;-1:-1:-1::0;;;7904:79:2::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7993:31;8007:4;8014:9;7993:5;:31::i;:::-;8034:35;8048:7;8057:2;8061:7;8034:13;:35::i;:::-;8079;8093:7;8102:2;8106:7;8079:13;:35::i;:::-;8135:40;::::0;;-1:-1:-1;;;8135:40:2;;8169:4:::1;8135:40;::::0;::::1;::::0;;;-1:-1:-1;;;;;8135:25:2;::::1;::::0;::::1;::::0;:40;;;;;::::1;::::0;;;;;;;;:25;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;8135:40:2;8196::::1;::::0;;-1:-1:-1;;;8196:40:2;;8230:4:::1;8196:40;::::0;::::1;::::0;;;8135;;-1:-1:-1;;;;;;8196:25:2;::::1;::::0;::::1;::::0;:40;;;;;8135::::1;::::0;8196;;;;;;;;:25;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;8196:40:2;;-1:-1:-1;8247:49:2::1;8255:8:::0;8196:40;8275:9;8286;8247:7:::1;:49::i;:::-;8310:5;8306:47;;;8344:8;::::0;8325:28:::1;::::0;8344:8:::1;8330::::0;;::::1;::::0;8344;;::::1;;8325:18;:28::i;:::-;8317:5;:36:::0;8306:47:::1;8408:38;::::0;;;;;::::1;::::0;::::1;::::0;;;;;-1:-1:-1;;;;;8408:38:2;::::1;::::0;8413:10:::1;::::0;8408:38:::1;::::0;;;;;;;;;::::1;1227:1;;;;;;;;;1249::::0;1238:8;:12;;;;7009:1444;;;:::o;1287:20::-;;;;;;;;;;;;;;;-1:-1:-1;;1287:20:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2217:136:0;2277:4;2293:32;2303:10;2315:2;2319:5;2293:9;:32::i;396:46:2:-;437:5;396:46;:::o;10469:329::-;1160:8;;1172:1;1160:13;1152:43;;;;;-1:-1:-1;;;1152:43:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1216:1;1205:8;:12;10537:6:::1;::::0;10586::::1;::::0;10689:8:::1;::::0;10644:40:::1;::::0;;-1:-1:-1;;;10644:40:2;;10678:4:::1;10644:40;::::0;::::1;::::0;;;-1:-1:-1;;;;;10537:6:2;;::::1;::::0;10586;;::::1;::::0;10617:82:::1;::::0;10537:6;;10640:2;;10644:54:::1;::::0;10689:8:::1;;::::0;10537:6;;10644:25:::1;::::0;:40;;;;;::::1;::::0;;;;;;;;;10537:6;10644:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;10644:40:2;;:44:::1;:54::i;:::-;10617:13;:82::i;:::-;10781:8;::::0;10736:40:::1;::::0;;-1:-1:-1;;;10736:40:2;;10770:4:::1;10736:40;::::0;::::1;::::0;;;10709:82:::1;::::0;10723:7;;10732:2;;10736:54:::1;::::0;10781:8;;::::1;;;::::0;-1:-1:-1;;;;;10736:25:2;::::1;::::0;::::1;::::0;:40;;;;;::::1;::::0;;;;;;;;;:25;:40;::::1;;::::0;::::1;;;;::::0;::::1;10709:82;-1:-1:-1::0;;1249:1:2;1238:8;:12;-1:-1:-1;10469:329:2:o;543:22::-;;;-1:-1:-1;;;;;543:22:2;;:::o;598:21::-;;;-1:-1:-1;;;;;598:21:2;;:::o;2660:662:0:-;2805:15;2793:8;:27;;2785:58;;;;;-1:-1:-1;;;2785:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;2955:16;;-1:-1:-1;;;;;3050:13:0;;;2853:14;3050:13;;;:6;:13;;;;;;;;:15;;-1:-1:-1;3050:15:0;;;;;;2999:77;;528:66;2999:77;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2999:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;2989:88;;;;;;2893:198;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2870:231;;;;;;;;;3138:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2853:14;;-1:-1:-1;3138:26:0;;;;;-1:-1:-1;3138:26:0;;;;;;;;;;-1:-1:-1;3138:26:0;;;;;;;;;;;;;;;-1:-1:-1;;3138:26:0;;-1:-1:-1;3138:26:0;;;-1:-1:-1;;;;;;;3182:30:0;;;;;;:59;;-1:-1:-1;;;;;;3216:25:0;;;;;;;3182:59;3174:100;;;;;-1:-1:-1;;;3174:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3284:31;3293:5;3300:7;3309:5;3284:8;:31::i;:::-;2660:662;;;;;;;;;:::o;277:61::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;10844:156:2:-;1160:8;;1172:1;1160:13;1152:43;;;;;-1:-1:-1;;;1152:43:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1216:1;1205:8;:12;10899:6:::1;::::0;10892:39:::1;::::0;;-1:-1:-1;;;10892:39:2;;10925:4:::1;10892:39;::::0;::::1;::::0;;;10884:109:::1;::::0;-1:-1:-1;;;;;10899:6:2::1;::::0;10892:24:::1;::::0;:39;;;;;::::1;::::0;;;;;;;;10899:6;10892:39;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;10892:39:2;10940:6:::1;::::0;10933:39:::1;::::0;;-1:-1:-1;;;10933:39:2;;10966:4:::1;10933:39;::::0;::::1;::::0;;;-1:-1:-1;;;;;10940:6:2;;::::1;::::0;10933:24:::1;::::0;:39;;;;;10892::::1;::::0;10933;;;;;;;;10940:6;10933:39;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;10933:39:2;10974:8:::1;::::0;::::1;::::0;;::::1;::::0;10984;;::::1;;10884:7;:109::i;:::-;1249:1:::0;1238:8;:12;10844:156::o;2553:284::-;500:34;;;;;;;;;;;;;;;;;2680:43;;-1:-1:-1;;;;;2680:43:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2669:55;;;;-1:-1:-1;;2648:17:2;;2669:10;;;2680:43;2669:55;;;2680:43;2669:55;;2680:43;2669:55;;;;;;;;;;-1:-1:-1;;2669:55:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2633:91;;;;2742:7;:57;;;;-1:-1:-1;2754:11:2;;:16;;:44;;;2785:4;2774:24;;;;;;;;;;;;;;;-1:-1:-1;2774:24:2;2754:44;2734:96;;;;;-1:-1:-1;;;2734:96:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;2553:284;;;;;:::o;456:140:12:-;508:6;534;;;:30;;-1:-1:-1;;549:5:12;;;563:1;558;549:5;558:1;544:15;;;;;:20;534:30;526:63;;;;;-1:-1:-1;;;526:63:12;;;;;;;;;;;;;;;;;;;;;;;;;;;323:127;406:5;;;401:16;;;;393:50;;;;;-1:-1:-1;;;393:50:12;;;;;;;;;;;;;;;;;;;;;;;;;;;3819:847:2;3930:23;;;;;;:50;;-1:-1:-1;3957:23:2;;;;3930:50;3922:82;;;;;-1:-1:-1;;;3922:82:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;4117:18;;4045:23;:15;:23;;;4117:18;;;;;4100:35;;;4172:15;;;;;;:33;;-1:-1:-1;4191:14:2;;;;;4172:33;:51;;;;-1:-1:-1;4209:14:2;;;;;4172:51;4168:332;;;4376:11;4323:64;;4328:44;4362:9;4328:27;4345:9;4328:16;:27::i;:::-;:33;;;;:44::i;:::-;4299:20;:88;;4323:50;;;;;:64;;;;4299:88;;;4425:64;;;4430:44;4464:9;4430:27;4447:9;4430:16;:27::i;:44::-;4401:20;:88;;4425:50;;;;;:64;;;;4401:88;;;4168:332;4509:8;:28;;;;;;;;;;;;4547;;;;;;;;;;;;4585:35;;;;;;;;;;;;4635:24;;;4640:8;;;4635:24;;4650:8;;;;;;;4635:24;;;;;;;;;;;;;;;;;3819:847;;;;;;:::o;1673:166:0:-;-1:-1:-1;;;;;1753:16:0;;;;;;;:9;:16;;;;;;;;:25;;;;;;;;;;;;;:33;;;1801:31;;;;;;;;;;;;;;;;;1673:166;;;:::o;1845:216::-;-1:-1:-1;;;;;1938:15:0;;;;;;-1:-1:-1;1938:15:0;;;;;;:26;;1958:5;1938:19;:26::i;:::-;-1:-1:-1;;;;;1920:15:0;;;;;;;-1:-1:-1;1920:15:0;;;;;;:44;;;;1990:13;;;;;;;:24;;2008:5;1990:17;:24::i;:::-;-1:-1:-1;;;;;1974:13:0;;;;;;;-1:-1:-1;1974:13:0;;;;;;;;;:40;;;;2029:25;;;;;;;1974:13;;2029:25;;;;;;;;;;;;;1845:216;;;:::o;1699:615:2:-;1860:6;;1853:23;;;;;;;;1744:13;;;;;;1831:7;;-1:-1:-1;;;;;1860:6:2;;1853:21;;:23;;;;;1831:7;;1853:23;;;;;;;1860:6;1853:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1853:23:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1853:23:2;;;;;;;;;;-1:-1:-1;1853:23:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1849:167;;1974:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2001:4:2;1849:167;;;1929:13;1938:3;1929:8;:13::i;:::-;1919:23;;1877:76;1849:167;2036:6;;2029:23;;;;;;;;-1:-1:-1;;;;;2036:6:2;;;;2029:21;;:23;;;;;2036:6;;2029:23;;;;;;;;2036:6;2029:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2029:23:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2029:23:2;;;;;;;;;;-1:-1:-1;2029:23:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2025:167;;2150:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2177:4:2;2025:167;;;2105:13;2114:3;2105:8;:13::i;:::-;2095:23;;2053:76;2025:167;2205:2;2211:1;2205:7;2202:40;;;2226:16;;;;;;;;;;;;;;;;;;;;;;;;2202:40;2284:7;2298;2267:39;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2267:39:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2267:39:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2253:54;;;;;1699:615;;:::o;4753:819::-;4882:7;;4864:34;;;;;;;;4826:10;;;;-1:-1:-1;;;;;4882:7:2;;;;4864:32;;:34;;;;;;;;;;;;;;;4882:7;4864:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4864:34:2;4959:5;;-1:-1:-1;;;;;4916:19:2;;;;;;-1:-1:-1;4864:34:2;;-1:-1:-1;4959:5:2;4989:577;;5018:11;;5014:485;;5049:10;5062:41;5072:30;;:15;;;;:30;;:19;:30::i;5062:41::-;5049:54;;5121:14;5138:17;5148:6;5138:9;:17::i;:::-;5121:34;;5185:9;5177:5;:17;5173:312;;;5218:14;5235:37;5251:20;:5;5261:9;5251;:20::i;:::-;5235:11;;;:15;:37::i;:::-;5218:54;-1:-1:-1;5294:16:2;5313:27;5330:9;5313:12;:5;5323:1;5313:9;:12::i;:::-;:16;;:27::i;:::-;5294:46;;5362:14;5391:11;5379:9;:23;;;;;;;-1:-1:-1;5428:13:2;;5424:42;;5443:23;5449:5;5456:9;5443:5;:23::i;:::-;5173:312;;;;5014:485;;;4989:577;;;5519:11;;5515:51;;5554:1;5546:5;:9;5515:51;4753:819;;;;;;:::o;343:292:11:-;388:6;414:1;410;:5;406:223;;;-1:-1:-1;435:1:11;467;463;459:5;;:9;482:89;493:1;489;:5;482:89;;;518:1;514:5;;555:1;550;546;542;:5;;;;;;:9;541:15;;;;;;537:19;;482:89;;;406:223;;;;591:6;;587:42;;-1:-1:-1;617:1:11;587:42;343:292;;;:::o;1259:197:0:-;1331:11;;:22;;1347:5;1331:15;:22::i;:::-;1317:11;:36;;;-1:-1:-1;;;;;1379:13:0;;;;-1:-1:-1;1379:13:0;;;;;;:24;;1397:5;1379:17;:24::i;:::-;-1:-1:-1;;;;;1363:13:0;;;;;;-1:-1:-1;1363:13:0;;;;;;;;:40;;;;1418:31;;;;;;;1363:13;;;;1418:31;;;;;;;;;;1259:197;;:::o;134:94:11:-;186:6;212:1;208;:5;:13;;220:1;208:13;;;216:1;208:13;204:17;134:94;-1:-1:-1;;;134:94:11:o;1462:205:0:-;-1:-1:-1;;;;;1540:15:0;;;;;;-1:-1:-1;1540:15:0;;;;;;:26;;1560:5;1540:19;:26::i;:::-;-1:-1:-1;;;;;1522:15:0;;;;;;-1:-1:-1;1522:15:0;;;;;:44;;;;1590:11;:22;;1606:5;1590:15;:22::i;:::-;1576:11;:36;;;1627:33;;;;;;;;-1:-1:-1;;;;;1627:33:0;;;;;;;;;;;;;1462:205;;:::o;319:118:14:-;394:10;;267:6;394:17;;319:118::o;505:106::-;565:9;594:10;;;590:14;;;594:10;590:14;;;;;;505:106;-1:-1:-1;;;505:106:14:o;191:126:12:-;274:5;;;269:16;;;;261:49;;;;;-1:-1:-1;;;261:49:12;;;;;;;;;;;;;;;;;;;;;;;;;;;1314:379:2;1473:15;;1374:13;;1415:1;;1456:3;;1473:27;-1:-1:-1;1470:54:2;;1521:3;1514:10;;;;;;1470:54;1534:19;1566:8;1556:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1556:19:2;;1534:41;;1589:6;1585:70;1605:8;1601:1;:12;1585:70;;;1644:8;1653:1;1644:11;;;;;;;;;;;;;;;;1632:6;1639:1;1632:9;;;;;;;;;;;:23;;;;;;;;;;-1:-1:-1;1615:3:2;;1585:70;;;-1:-1:-1;1679:6:2;1314:379;-1:-1:-1;;;;1314:379:2:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://25cb318fcb3e1dec8fc27af1cc4db68b5e5f4fb0c140f1f8e40ecd2a2a90d1d4

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.