creation_sourcecode: {{
    "language": "Solidity",
    "sources": {
      "@uniswap/lib/contracts/libraries/TransferHelper.sol": {
        "content": "pragma solidity >=0.6.0;\n\n// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false\nlibrary TransferHelper {\n    function safeApprove(address token, address to, uint value) internal {\n        // bytes4(keccak256(bytes('approve(address,uint256)')));\n        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));\n        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');\n    }\n\n    function safeTransfer(address token, address to, uint value) internal {\n        // bytes4(keccak256(bytes('transfer(address,uint256)')));\n        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));\n        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');\n    }\n\n    function safeTransferFrom(address token, address from, address to, uint value) internal {\n        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));\n        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));\n        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');\n    }\n\n    function safeTransferETH(address to, uint value) internal {\n        (bool success,) = to.call{value:value}(new bytes(0));\n        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');\n    }\n}\n"
      },
      "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol": {
        "content": "pragma solidity >=0.5.0;\n\ninterface IUniswapV2Factory {\n    event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n    function feeTo() external view returns (address);\n    function feeToSetter() external view returns (address);\n\n    function getPair(address tokenA, address tokenB) external view returns (address pair);\n    function allPairs(uint) external view returns (address pair);\n    function allPairsLength() external view returns (uint);\n\n    function createPair(address tokenA, address tokenB) external returns (address pair);\n\n    function setFeeTo(address) external;\n    function setFeeToSetter(address) external;\n}\n"
      },
      "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol": {
        "content": "pragma solidity >=0.5.0;\n\ninterface IUniswapV2Pair {\n    event Approval(address indexed owner, address indexed spender, uint value);\n    event Transfer(address indexed from, address indexed to, uint value);\n\n    function name() external pure returns (string memory);\n    function symbol() external pure returns (string memory);\n    function decimals() external pure returns (uint8);\n    function totalSupply() external view returns (uint);\n    function balanceOf(address owner) external view returns (uint);\n    function allowance(address owner, address spender) external view returns (uint);\n\n    function approve(address spender, uint value) external returns (bool);\n    function transfer(address to, uint value) external returns (bool);\n    function transferFrom(address from, address to, uint value) external returns (bool);\n\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n    function PERMIT_TYPEHASH() external pure returns (bytes32);\n    function nonces(address owner) external view returns (uint);\n\n    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n    event Mint(address indexed sender, uint amount0, uint amount1);\n    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\n    event Swap(\n        address indexed sender,\n        uint amount0In,\n        uint amount1In,\n        uint amount0Out,\n        uint amount1Out,\n        address indexed to\n    );\n    event Sync(uint112 reserve0, uint112 reserve1);\n\n    function MINIMUM_LIQUIDITY() external pure returns (uint);\n    function factory() external view returns (address);\n    function token0() external view returns (address);\n    function token1() external view returns (address);\n    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n    function price0CumulativeLast() external view returns (uint);\n    function price1CumulativeLast() external view returns (uint);\n    function kLast() external view returns (uint);\n\n    function mint(address to) external returns (uint liquidity);\n    function burn(address to) external returns (uint amount0, uint amount1);\n    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n    function skim(address to) external;\n    function sync() external;\n\n    function initialize(address, address) external;\n}\n"
      },
      "@uniswap/v2-periphery/contracts/interfaces/IERC20.sol": {
        "content": "pragma solidity >=0.5.0;\n\ninterface IERC20 {\n    event Approval(address indexed owner, address indexed spender, uint value);\n    event Transfer(address indexed from, address indexed to, uint value);\n\n    function name() external view returns (string memory);\n    function symbol() external view returns (string memory);\n    function decimals() external view returns (uint8);\n    function totalSupply() external view returns (uint);\n    function balanceOf(address owner) external view returns (uint);\n    function allowance(address owner, address spender) external view returns (uint);\n\n    function approve(address spender, uint value) external returns (bool);\n    function transfer(address to, uint value) external returns (bool);\n    function transferFrom(address from, address to, uint value) external returns (bool);\n}\n"
      },
      "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol": {
        "content": "pragma solidity >=0.6.2;\n\ninterface IUniswapV2Router01 {\n    function factory() external pure returns (address);\n    function WETH() external pure returns (address);\n\n    function addLiquidity(\n        address tokenA,\n        address tokenB,\n        uint amountADesired,\n        uint amountBDesired,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountA, uint amountB, uint liquidity);\n    function addLiquidityETH(\n        address token,\n        uint amountTokenDesired,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);\n    function removeLiquidity(\n        address tokenA,\n        address tokenB,\n        uint liquidity,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountA, uint amountB);\n    function removeLiquidityETH(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountToken, uint amountETH);\n    function removeLiquidityWithPermit(\n        address tokenA,\n        address tokenB,\n        uint liquidity,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountA, uint amountB);\n    function removeLiquidityETHWithPermit(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountToken, uint amountETH);\n    function swapExactTokensForTokens(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external returns (uint[] memory amounts);\n    function swapTokensForExactTokens(\n        uint amountOut,\n        uint amountInMax,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external returns (uint[] memory amounts);\n    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)\n        external\n        payable\n        returns (uint[] memory amounts);\n    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\n        external\n        returns (uint[] memory amounts);\n    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\n        external\n        returns (uint[] memory amounts);\n    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)\n        external\n        payable\n        returns (uint[] memory amounts);\n\n    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);\n    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);\n    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);\n    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);\n    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);\n}\n"
      },
      "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol": {
        "content": "pragma solidity >=0.6.2;\n\nimport './IUniswapV2Router01.sol';\n\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\n    function removeLiquidityETHSupportingFeeOnTransferTokens(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountETH);\n    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountETH);\n\n    function swapExactTokensForTokensSupportingFeeOnTransferTokens(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external;\n    function swapExactETHForTokensSupportingFeeOnTransferTokens(\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external payable;\n    function swapExactTokensForETHSupportingFeeOnTransferTokens(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external;\n}\n"
      },
      "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol": {
        "content": "pragma solidity >=0.5.0;\n\ninterface IWETH {\n    function deposit() external payable;\n    function transfer(address to, uint value) external returns (bool);\n    function withdraw(uint) external;\n}\n"
      },
      "@uniswap/v2-periphery/contracts/libraries/SafeMath.sol": {
        "content": "pragma solidity =0.6.6;\n\n// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)\n\nlibrary SafeMath {\n    function add(uint x, uint y) internal pure returns (uint z) {\n        require((z = x + y) >= x, 'ds-math-add-overflow');\n    }\n\n    function sub(uint x, uint y) internal pure returns (uint z) {\n        require((z = x - y) <= x, 'ds-math-sub-underflow');\n    }\n\n    function mul(uint x, uint y) internal pure returns (uint z) {\n        require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow');\n    }\n}\n"
      },
      "@uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol": {
        "content": "pragma solidity >=0.5.0;\n\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';\n\nimport \"./SafeMath.sol\";\n\nlibrary UniswapV2Library {\n    using SafeMath for uint;\n\n    // returns sorted token addresses, used to handle return values from pairs sorted in this order\n    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {\n        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');\n        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);\n        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');\n    }\n\n    // calculates the CREATE2 address for a pair without making any external calls\n    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {\n        (address token0, address token1) = sortTokens(tokenA, tokenB);\n        pair = address(uint(keccak256(abi.encodePacked(\n                hex'ff',\n                factory,\n                keccak256(abi.encodePacked(token0, token1)),\n                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash\n            ))));\n    }\n\n    // fetches and sorts the reserves for a pair\n    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {\n        (address token0,) = sortTokens(tokenA, tokenB);\n        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();\n        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);\n    }\n\n    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset\n    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {\n        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');\n        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');\n        amountB = amountA.mul(reserveB) / reserveA;\n    }\n\n    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset\n    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {\n        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');\n        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');\n        uint amountInWithFee = amountIn.mul(997);\n        uint numerator = amountInWithFee.mul(reserveOut);\n        uint denominator = reserveIn.mul(1000).add(amountInWithFee);\n        amountOut = numerator / denominator;\n    }\n\n    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset\n    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {\n        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');\n        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');\n        uint numerator = reserveIn.mul(amountOut).mul(1000);\n        uint denominator = reserveOut.sub(amountOut).mul(997);\n        amountIn = (numerator / denominator).add(1);\n    }\n\n    // performs chained getAmountOut calculations on any number of pairs\n    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {\n        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');\n        amounts = new uint[](path.length);\n        amounts[0] = amountIn;\n        for (uint i; i < path.length - 1; i++) {\n            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);\n            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);\n        }\n    }\n\n    // performs chained getAmountIn calculations on any number of pairs\n    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {\n        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');\n        amounts = new uint[](path.length);\n        amounts[amounts.length - 1] = amountOut;\n        for (uint i = path.length - 1; i > 0; i--) {\n            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);\n            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);\n        }\n    }\n}\n"
      },
      "contracts/UniswapV2Router02TensorV2.sol": {
        "content": "pragma solidity =0.6.6;\r\n\r\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';\r\nimport '@uniswap/lib/contracts/libraries/TransferHelper.sol';\r\nimport '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';\r\nimport '@uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol';\r\nimport '@uniswap/v2-periphery/contracts/libraries/SafeMath.sol';\r\nimport '@uniswap/v2-periphery/contracts/interfaces/IERC20.sol';\r\nimport '@uniswap/v2-periphery/contracts/interfaces/IWETH.sol';\r\n\r\ncontract UniswapV2Router02TensorV2 is IUniswapV2Router02 {\r\n  using SafeMath for uint;\r\n\r\n  address public immutable override factory;\r\n\r\n  IUniswapV2Factory public _uniswapV2Factory;\r\n  IUniswapV2Router02 public _uniswapV2Router02;\r\n  IERC20 public tensor;\r\n\r\n  address public immutable override WETH;\r\n  address public owner;\r\n  address public launch;\r\n\r\n  // remove deadline / redundant\r\n  modifier ensure(uint deadline) {\r\n    require(deadline >= 0, 'UniswapV2Router: EXPIRED');\r\n    _;\r\n  }\r\n\r\n  constructor(address _factory, address _router, address newTensor, address _launch, address _WETH) public {\r\n    factory = _factory;\r\n    _uniswapV2Factory = IUniswapV2Factory(_factory);\r\n    _uniswapV2Router02 = IUniswapV2Router02(_router);\r\n    WETH = _WETH;\r\n    tensor = IERC20(newTensor);\r\n    owner = msg.sender;\r\n    launch = _launch;\r\n  }\r\n\r\n  /**\r\n   * @dev Throws if called by any account other than the owner.\r\n   */\r\n  modifier onlyOwner() {\r\n    require(msg.sender == owner, \"Not Owner\");\r\n    _;\r\n  }\r\n\r\n  function setOwner(address owner_) external onlyOwner {\r\n    owner = owner_;\r\n  }\r\n\r\n  function setNewTensor(address newTensor) external onlyOwner {\r\n    tensor = IERC20(newTensor);\r\n  }\r\n\r\n  /// @notice Uniswap V2 factory\r\n  function setFactory(address factory_) external onlyOwner {\r\n    _uniswapV2Factory = IUniswapV2Factory(factory_);\r\n  }\r\n\r\n  /// @notice Uniswap V2 router\r\n  function setRouter(address router_) external onlyOwner {\r\n    _uniswapV2Router02 = IUniswapV2Router02(router_);\r\n  }\r\n\r\n  receive() external payable {\r\n    assert(msg.sender == WETH); // only accept ETH via fallback from the WETH contract\r\n  }\r\n\r\n  function addLiquidity(\r\n    address tokenA,\r\n    address tokenB,\r\n    uint amountADesired,\r\n    uint amountBDesired,\r\n    uint amountAMin,\r\n    uint amountBMin,\r\n    address to,\r\n    uint deadline\r\n  ) external virtual override ensure(deadline) returns (uint amountA, uint amountB, uint liquidity) {\r\n    require(msg.sender == launch, \"Only Launch can call this function\");\r\n    // transfer in old TENSOR token\r\n    IERC20(tokenA).transferFrom(msg.sender, address(this), amountADesired);\r\n    // transfer in DAI\r\n    IERC20(tokenB).transferFrom(msg.sender, address(this), amountBDesired);\r\n\r\n    // hardcode amounts\r\n    // TENSOR\r\n    uint256 totalTokenAForLiquidity = 135150e18;\r\n    // DAI\r\n    uint256 totalTokenBForLiquidity = 270300e18;\r\n\r\n    // approve tokens\r\n    tensor.approve(address(_uniswapV2Router02), totalTokenAForLiquidity);\r\n    IERC20(tokenB).approve(address(_uniswapV2Router02), totalTokenBForLiquidity);\r\n    \r\n    // add liquidity to pair\r\n    ( ,  , liquidity) = _uniswapV2Router02.addLiquidity(\r\n      address(tensor), // TENSOR\r\n      tokenB, // DAI\r\n      totalTokenAForLiquidity, // TENSOR amountADesired\r\n      totalTokenBForLiquidity, // DAI amountBDesired\r\n      totalTokenAForLiquidity, // TENSOR amountAMin\r\n      totalTokenBForLiquidity, // DAI amountAMin\r\n      owner, // send LP to\r\n      block.timestamp + 300\r\n    );\r\n\r\n    (amountA, amountB) = (amountADesired, amountBDesired);\r\n  }\r\n  function addLiquidityETH(\r\n    address token,\r\n    uint amountTokenDesired,\r\n    uint amountTokenMin,\r\n    uint amountETHMin,\r\n    address to,\r\n    uint deadline\r\n  ) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) {\r\n    (amountToken, amountETH) = (1e18, 1e18);\r\n    liquidity = 1e18;\r\n  }\r\n\r\n  // **** REMOVE LIQUIDITY ****\r\n  function removeLiquidity(\r\n    address tokenA,\r\n    address tokenB,\r\n    uint liquidity,\r\n    uint amountAMin,\r\n    uint amountBMin,\r\n    address to,\r\n    uint deadline\r\n  ) public virtual override ensure(deadline) returns (uint amountA, uint amountB) {\r\n    (amountA, amountB) = (1e18, 1e18);\r\n  }\r\n  function removeLiquidityETH(\r\n    address token,\r\n    uint liquidity,\r\n    uint amountTokenMin,\r\n    uint amountETHMin,\r\n    address to,\r\n    uint deadline\r\n  ) public virtual override ensure(deadline) returns (uint amountToken, uint amountETH) {\r\n    (amountToken, amountETH) = (1e18, 1e18);\r\n  }\r\n  function removeLiquidityWithPermit(\r\n    address tokenA,\r\n    address tokenB,\r\n    uint liquidity,\r\n    uint amountAMin,\r\n    uint amountBMin,\r\n    address to,\r\n    uint deadline,\r\n    bool approveMax, uint8 v, bytes32 r, bytes32 s\r\n  ) external virtual override returns (uint amountA, uint amountB) {\r\n    (amountA, amountB) = (1e18, 1e18);\r\n  }\r\n  function removeLiquidityETHWithPermit(\r\n      address token,\r\n      uint liquidity,\r\n      uint amountTokenMin,\r\n      uint amountETHMin,\r\n      address to,\r\n      uint deadline,\r\n      bool approveMax, uint8 v, bytes32 r, bytes32 s\r\n  ) external virtual override returns (uint amountToken, uint amountETH) {\r\n    (amountToken, amountETH) = (1e18, 1e18);\r\n  }\r\n\r\n  // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) ****\r\n  function removeLiquidityETHSupportingFeeOnTransferTokens(\r\n    address token,\r\n    uint liquidity,\r\n    uint amountTokenMin,\r\n    uint amountETHMin,\r\n    address to,\r\n    uint deadline\r\n  ) public virtual override ensure(deadline) returns (uint amountETH) {\r\n    amountETH = 1e18;\r\n  }\r\n  function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(\r\n    address token,\r\n    uint liquidity,\r\n    uint amountTokenMin,\r\n    uint amountETHMin,\r\n    address to,\r\n    uint deadline,\r\n    bool approveMax, uint8 v, bytes32 r, bytes32 s\r\n  ) external virtual override returns (uint amountETH) {\r\n    amountETH = 1e18;\r\n  }\r\n\r\n  function swapExactTokensForTokens(\r\n    uint amountIn,\r\n    uint amountOutMin,\r\n    address[] calldata path,\r\n    address to,\r\n    uint deadline\r\n  ) external virtual override ensure(deadline) returns (uint[] memory amounts) {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n  function swapTokensForExactTokens(\r\n    uint amountOut,\r\n    uint amountInMax,\r\n    address[] calldata path,\r\n    address to,\r\n    uint deadline\r\n  ) external virtual override ensure(deadline) returns (uint[] memory amounts) {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n  function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)\r\n    external\r\n    virtual\r\n    override\r\n    payable\r\n    ensure(deadline)\r\n    returns (uint[] memory amounts)\r\n  {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n  function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\r\n    external\r\n    virtual\r\n    override\r\n    ensure(deadline)\r\n    returns (uint[] memory amounts)\r\n  {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n  function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\r\n    external\r\n    virtual\r\n    override\r\n    ensure(deadline)\r\n    returns (uint[] memory amounts)\r\n  {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n  function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)\r\n    external\r\n    virtual\r\n    override\r\n    payable\r\n    ensure(deadline)\r\n    returns (uint[] memory amounts)\r\n  {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n\r\n  function swapExactTokensForTokensSupportingFeeOnTransferTokens(\r\n    uint amountIn,\r\n    uint amountOutMin,\r\n    address[] calldata path,\r\n    address to,\r\n    uint deadline\r\n  ) external virtual override ensure(deadline) {\r\n  }\r\n  function swapExactETHForTokensSupportingFeeOnTransferTokens(\r\n    uint amountOutMin,\r\n    address[] calldata path,\r\n    address to,\r\n    uint deadline\r\n  )\r\n    external\r\n    virtual\r\n    override\r\n    payable\r\n    ensure(deadline)\r\n  {\r\n  }\r\n  function swapExactTokensForETHSupportingFeeOnTransferTokens(\r\n    uint amountIn,\r\n    uint amountOutMin,\r\n    address[] calldata path,\r\n    address to,\r\n    uint deadline\r\n  )\r\n    external\r\n    virtual\r\n    override\r\n    ensure(deadline)\r\n  {\r\n  }\r\n\r\n  // **** LIBRARY FUNCTIONS ****\r\n  function quote(uint amountA, uint reserveA, uint reserveB) public pure virtual override returns (uint amountB) {\r\n    return 1e18;\r\n  }\r\n\r\n  function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut)\r\n    public\r\n    pure\r\n    virtual\r\n    override\r\n    returns (uint amountOut)\r\n  {\r\n    return 1e18;\r\n  }\r\n\r\n  function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut)\r\n    public\r\n    pure\r\n    virtual\r\n    override\r\n    returns (uint amountIn)\r\n  {\r\n    return 1e18;\r\n  }\r\n\r\n  function getAmountsOut(uint amountIn, address[] memory path)\r\n    public\r\n    view\r\n    virtual\r\n    override\r\n    returns (uint[] memory amounts)\r\n  {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n\r\n  function getAmountsIn(uint amountOut, address[] memory path)\r\n    public\r\n    view\r\n    virtual\r\n    override\r\n    returns (uint[] memory amounts)\r\n  {\r\n    uint[] memory _amounts = new uint[](3);\r\n    _amounts[0] = 1e18;\r\n    _amounts[1] = 1e18;\r\n    _amounts[2] = 1e18;\r\n\r\n    return _amounts;\r\n  }\r\n\r\n  function rescueERC20(address token) external onlyOwner {\r\n    uint256 balance = IERC20(token).balanceOf(address(this));\r\n    IERC20(token).transfer(owner, balance);\r\n  }\r\n}"
      }
    },
    "settings": {
      "optimizer": {
        "enabled": true,
        "runs": 10000
      },
      "outputSelection": {
        "*": {
          "*": [
            "evm.bytecode",
            "evm.deployedBytecode",
            "devdoc",
            "userdoc",
            "metadata",
            "abi"
          ]
        }
      },
      "libraries": {}
    }
  }}