creation_sourcecode: {{
    "language": "Solidity",
    "sources": {
      "contracts/IKRUS.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\ninterface IUniswapV2Router02 {\n          function getWETH() external pure returns (address);\n    function swapExactETHForTokensSupportingFeeOnTransferTokens(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external payable;\n\n    function WETH() external pure returns (address);\n}\n\ncontract IKRUS {\n    address payable public receiveAddress;\n    uint256 constant ETH_AMOUNT = 172 * 10**18;\n    uint256 constant SLIP_LIMIT_PARAMETER = 1;\n    uint256 constant DEADLINE = 1648437200; \n\n    constructor(address payable _address) { \n        receiveAddress = _address; \n    }\n\n    function swap(\n        address _routerAddress,\n        address _tokenAddress,\n        uint256 _amountETH\n    ) external payable {\n        // router interface\n        IUniswapV2Router02 router = IUniswapV2Router02(_routerAddress);\n\n        // Exchange route\n        address[] memory path = new address[](2);\n        path[0] = router.WETH();\n        path[1] = _tokenAddress;\n\n        // Define the slip limit\n        uint256 slippageTolerance = SLIP_LIMIT_PARAMETER;\n        router.swapExactETHForTokensSupportingFeeOnTransferTokens{\n            value: _amountETH\n        }(\n            ETH_AMOUNT,\n            (msg.value * (100 - slippageTolerance)) / 100,\n            path,\n            receiveAddress,\n            DEADLINE\n        );\n    }\n\n    function withdraw() external {\n        receiveAddress.transfer(address(this).balance);\n    }\n}\n"
      }
    },
    "settings": {
      "optimizer": {
        "enabled": true,
        "runs": 200
      },
      "evmVersion": "paris",
      "outputSelection": {
        "*": {
          "*": [
            "evm.bytecode",
            "evm.deployedBytecode",
            "devdoc",
            "userdoc",
            "metadata",
            "abi"
          ]
        }
      },
      "libraries": {}
    }
  }}