{
  "schema_version": "1.2",
  "scan_id": "b92994df-c714-44f4-855a-2605d6d639bd",
  "status": "ok",
  "error": null,
  "input": {
    "kind": "address",
    "sha256": "afe8b09aa8fcad28255d4174ce746482770f648db4230c46aae8cb692a7c4b26",
    "chain": "ethereum",
    "address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
    "contract_name": "UniswapV2Router02.sol:UniswapV2Router02",
    "compiler_version": "0.6.6",
    "compiler_version_source": "metadata",
    "files": [
      {
        "path": "UniswapV2Router02.sol",
        "sha256": "9424e811bd4952fa8c25068d9c5d9551467e517877124c6ceadd7d7c4a3b0f16",
        "bytes": 33985,
        "lines": 780,
        "nsloc": 701
      }
    ],
    "nsloc": 701,
    "bytes": 33985
  },
  "findings": [
    {
      "id": "F-001",
      "detector": "unused-return",
      "source": "slither",
      "title": "Unused return",
      "severity": "low",
      "confidence": "medium",
      "location": {
        "file": "UniswapV2Router02.sol",
        "start_line": 258,
        "end_line": 258
      },
      "file_line": "UniswapV2Router02.sol:258",
      "snippet": "            IUniswapV2Factory(factory).createPair(tokenA, tokenB);",
      "description": "UniswapV2Router02._addLiquidity(address,address,uint256,uint256,uint256,uint256) (UniswapV2Router02.sol#248-275) ignores return value by IUniswapV2Factory(factory).createPair(tokenA,tokenB) (UniswapV2Router02.sol#258)",
      "explanation": "The return value of an external call is not stored in a local or state variable.",
      "recommendation": "Ensure that all the return values of the function calls are used.",
      "fingerprint": "e815a91cbafd7fe0",
      "also_at": []
    },
    {
      "id": "F-002",
      "detector": "calls-loop",
      "source": "slither",
      "title": "Calls inside a loop",
      "severity": "low",
      "confidence": "medium",
      "location": {
        "file": "UniswapV2Router02.sol",
        "start_line": 434,
        "end_line": 436
      },
      "file_line": "UniswapV2Router02.sol:434",
      "snippet": "            IUniswapV2Pair(UniswapV2Library.pairFor(factory, input, output)).swap(\n                amount0Out, amount1Out, to, new bytes(0)\n            );",
      "description": "UniswapV2Router02._swap(uint256[],address[],address) (UniswapV2Router02.sol#427-438) has external calls inside a loop: IUniswapV2Pair(UniswapV2Library.pairFor(factory,input,output)).swap(amount0Out,amount1Out,to,new bytes(0)) (UniswapV2Router02.sol#434-436)\n\tCalls stack containing the loop:\n\t\tUniswapV2Router02.swapETHForExactTokens(uint256,address[],address,uint256)",
      "explanation": "Calls inside a loop might lead to a denial-of-service attack.",
      "recommendation": "Favor [pull over push](https://consensysdiligence.github.io/smart-contract-best-practices/development-recommendations/general/external-calls/#favor-pull-over-push-for-external-calls) strategy for external calls.",
      "fingerprint": "cfaa88a9cffbc5e8",
      "also_at": []
    },
    {
      "id": "F-003",
      "detector": "calls-loop",
      "source": "slither",
      "title": "Calls inside a loop",
      "severity": "low",
      "confidence": "medium",
      "location": {
        "file": "UniswapV2Router02.sol",
        "start_line": 544,
        "end_line": 544
      },
      "file_line": "UniswapV2Router02.sol:544",
      "snippet": "            (uint reserve0, uint reserve1,) = pair.getReserves();",
      "description": "UniswapV2Router02._swapSupportingFeeOnTransferTokens(address[],address) (UniswapV2Router02.sol#536-553) has external calls inside a loop: (reserve0,reserve1,None) = pair.getReserves() (UniswapV2Router02.sol#544)\n\tCalls stack containing the loop:\n\t\tUniswapV2Router02.swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,uint256)",
      "explanation": "Calls inside a loop might lead to a denial-of-service attack.",
      "recommendation": "Favor [pull over push](https://consensysdiligence.github.io/smart-contract-best-practices/development-recommendations/general/external-calls/#favor-pull-over-push-for-external-calls) strategy for external calls.",
      "fingerprint": "face829ac45733b6",
      "also_at": []
    },
    {
      "id": "F-004",
      "detector": "calls-loop",
      "source": "slither",
      "title": "Calls inside a loop",
      "severity": "low",
      "confidence": "medium",
      "location": {
        "file": "UniswapV2Router02.sol",
        "start_line": 546,
        "end_line": 546
      },
      "file_line": "UniswapV2Router02.sol:546",
      "snippet": "            amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput);",
      "description": "UniswapV2Router02._swapSupportingFeeOnTransferTokens(address[],address) (UniswapV2Router02.sol#536-553) has external calls inside a loop: amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput) (UniswapV2Router02.sol#546)\n\tCalls stack containing the loop:\n\t\tUniswapV2Router02.swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,uint256)",
      "explanation": "Calls inside a loop might lead to a denial-of-service attack.",
      "recommendation": "Favor [pull over push](https://consensysdiligence.github.io/smart-contract-best-practices/development-recommendations/general/external-calls/#favor-pull-over-push-for-external-calls) strategy for external calls.",
      "fingerprint": "2ba791b1669bebc6",
      "also_at": []
    },
    {
      "id": "F-005",
      "detector": "calls-loop",
      "source": "slither",
      "title": "Calls inside a loop",
      "severity": "low",
      "confidence": "medium",
      "location": {
        "file": "UniswapV2Router02.sol",
        "start_line": 551,
        "end_line": 551
      },
      "file_line": "UniswapV2Router02.sol:551",
      "snippet": "            pair.swap(amount0Out, amount1Out, to, new bytes(0));",
      "description": "UniswapV2Router02._swapSupportingFeeOnTransferTokens(address[],address) (UniswapV2Router02.sol#536-553) has external calls inside a loop: pair.swap(amount0Out,amount1Out,to,new bytes(0)) (UniswapV2Router02.sol#551)\n\tCalls stack containing the loop:\n\t\tUniswapV2Router02.swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,uint256)",
      "explanation": "Calls inside a loop might lead to a denial-of-service attack.",
      "recommendation": "Favor [pull over push](https://consensysdiligence.github.io/smart-contract-best-practices/development-recommendations/general/external-calls/#favor-pull-over-push-for-external-calls) strategy for external calls.",
      "fingerprint": "1ce633725b194748",
      "also_at": []
    },
    {
      "id": "F-006",
      "detector": "reentrancy-balance",
      "source": "slither",
      "title": "Reentrancy vulnerabilities",
      "severity": "low",
      "confidence": "medium",
      "location": {
        "file": "UniswapV2Router02.sol",
        "start_line": 565,
        "end_line": 565
      },
      "file_line": "UniswapV2Router02.sol:565",
      "snippet": "        _swapSupportingFeeOnTransferTokens(path, to);",
      "description": "Reentrancy in UniswapV2Router02.swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256) (UniswapV2Router02.sol#554-570):\n\tExternal call allowing reentrancy:\n\t- _swapSupportingFeeOnTransferTokens(path,to) (UniswapV2Router02.sol#565)\n\t\t- pair.swap(amount0Out,amount1Out,to,new bytes(0)) (UniswapV2Router02.sol#551)\n\tBalance read before the call:\n\t- balanceBefore = IERC20(path[path.length - 1]).balanceOf(to) (UniswapV2Router02.sol#564)\n\tPossible stale balance used after the call in a condition:\n\t- require(bool,string)(IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT) (UniswapV2Router02.sol#566-569)\n\t\t- stale variable `TMP_209`",
      "explanation": "\nDetects reentrancy vulnerabilities where a balance is saved (e.g., `balanceOf`) before an external call,\nand the same balance is checked again after the call. An attacker could manipulate the balance during the reentrant call,\ncausing the post-call check to use an outdated value.",
      "recommendation": "Use `transferFrom` to transfer funds of a standard ERC20 token, or use reentrancy guards to prevent reentering the function.",
      "fingerprint": "c0756b603fe36fc7",
      "also_at": [
        "UniswapV2Router02.sol:588"
      ]
    }
  ],
  "stats": {
    "raw_results": 44,
    "dropped_informational": 23,
    "dropped_noisy": 2,
    "dropped_out_of_scope": 0,
    "dropped_dependencies": 0,
    "duplicates_removed": 13,
    "results_truncated": false,
    "findings": 6,
    "findings_by_severity": {
      "high": 0,
      "medium": 0,
      "low": 6,
      "info": 0
    },
    "detectors_run": 111,
    "custom_detectors_run": 9,
    "contracts": 10
  },
  "timing": {
    "fetch_ms": 431,
    "queue_ms": 0,
    "solc_install_ms": 0,
    "sandbox_ms": 1665,
    "compile_ms": 996,
    "detectors_ms": 184,
    "total_ms": 2109,
    "started_at": "2026-10-23T06:17:10.113Z",
    "finished_at": "2026-10-23T06:17:12.222Z"
  },
  "engine": {
    "scanner_version": "0.1.0",
    "slither_version": "0.11.6",
    "sandbox": {
      "user": "scanner",
      "network_isolated": true,
      "notes": [],
      "memory_cgroup": true,
      "memory_max_bytes": 1572864000
    },
    "options": {
      "include_informational": false,
      "include_noisy": false,
      "include_dependencies": false
    }
  },
  "disclaimer": "Automated scan, not an audit. Findings may be false positives; absence of findings does not mean the code is safe."
}
