# uniswap-v2-reborn: reconstructing Uniswap v2 from deployed bytecode

> uniswap-v2-reborn reconstructs Uniswap v2 factory, pair and Router02 behavior from deployed EVM runtime bytecode using REA interface inspection, storage probing and written specifications. It provides a TypeScript model, Solidity 0.8 contracts and a differential harness that compares both with the original bytecode; the author reports 4,800 fuzzed operations without mismatches and exact replay of 426 historical swaps.

- Type: Case study
- Targets: Binary
- Category: Community REA investigations
- Relationship: Author-reported mixed workflow
- Sources reviewed: 2026-11-07
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/devtechedge/uniswap-v2-reborn>
- Primary source: <https://github.com/devtechedge/uniswap-v2-reborn/blob/0cdad3f6d2919e62b33a81afea03ae305ebb6275/README.md>
- Catalog page: <https://awesomerea.org/resources/uniswap-v2-reborn-case/>
- Record JSON: <https://awesomerea.org/resources/uniswap-v2-reborn-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/uniswap-v2-reborn-case/index.md)

## Requirements & limits

- Local builds and tests require Node 22.19 or later, pnpm 9 and Foundry.
- The author reports 4,800 differential operations with zero mismatches and 426 exact historical-swap replays.
- MIT license.

## Primary sources

1. <https://github.com/devtechedge/uniswap-v2-reborn/blob/0cdad3f6d2919e62b33a81afea03ae305ebb6275/README.md>
2. <https://github.com/devtechedge/uniswap-v2-reborn/blob/0cdad3f6d2919e62b33a81afea03ae305ebb6275/docs/ARCHITECTURE.md>

## More in Native binaries

- [Eidolon in Rust: byte-exact Rust port of the Eidolon 64k intro](https://awesomerea.org/resources/eidolon-64k-rust-port-case/index.md) · Case study
- [m0rph: tracing an obfuscated ELF flag checker](https://awesomerea.org/resources/m0rph-ctf-analysis-case/index.md) · Case study
- [CPQ IO Scheduler: reconstructing Xiaomi's block scheduler](https://awesomerea.org/resources/cpq-iosched-case/index.md) · Case study
- [Malware Analysis: njRAT and Casdet behavior investigation](https://awesomerea.org/resources/malware-analysis-njrat-casdet-case/index.md) · Case study
- [FSR 4 INT8: reconstructed GPU passes and comparison harness](https://awesomerea.org/resources/fsr4-int8-reconstruction-case/index.md) · Case study
- [bcwc_pcie: auditing the FaceTime HD camera driver against Apple's kext](https://awesomerea.org/resources/bcwc-pcie-camera-audit-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
