View Code? Open in Web Editor
NEW
This project forked from jeiwan/zuniswapv2
UniswapV2 clone made in educational purposes
Home Page: https://jeiwan.net/posts/programming-defi-uniswapv2-1/
Makefile 0.20%
Solidity 99.80%
zuniswapv2's Introduction
ZUniswapV2, a clone of UniswapV2 made in educational purposes
git clone [email protected]:Jeiwan/zuniswapv2.git
- Ensure you have installed Rust and Cargo: Install Rust
- Install Foundry:
cargo install --git https://github.com/gakonst/foundry --bin forge --locked
- Install dependency contracts:
git submodule update --init --recursive
- Run tests:
forge test
- Part 1, architecture of UniswapV2, adding liquidity, first tests in Solidity, removing liquidity.
- Part 2, tokens swapping, re-entrancy attacks and protection,
price oracle, integer overflow and underflow, safe transfer.
- Part 3, factory contract, CREATE2 opcode, Router contract, Library contract
- Part 4, LP-tokens burning bug, liquidity removal, output amount calculation, swapExactTokensForTokens, swapTokensForExactTokens, fixing swap fee bug, flash loans, fixing re-entrancy vulnerability, protocol fees
zuniswapv2's People
Contributors