• Stars
    star
    171
  • Rank 222,266 (Top 5 %)
  • Language
    Solidity
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UniswapV2 clone made in educational purposes

ZUniswapV2, a clone of UniswapV2 made in educational purposes

Using this repo

  1. git clone [email protected]:Jeiwan/zuniswapv2.git
  2. Ensure you have installed Rust and Cargo: Install Rust
  3. Install Foundry: cargo install --git https://github.com/gakonst/foundry --bin forge --locked
  4. Install dependency contracts: git submodule update --init --recursive
  5. Run tests: forge test

Blog posts

  1. Part 1, architecture of UniswapV2, adding liquidity, first tests in Solidity, removing liquidity.
  2. Part 2, tokens swapping, re-entrancy attacks and protection, price oracle, integer overflow and underflow, safe transfer.
  3. Part 3, factory contract, CREATE2 opcode, Router contract, Library contract
  4. 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

More Repositories

1

blockchain_go

A simplified blockchain implementation in Golang
Go
4,102
star
2

uniswapv3-book

Uniswap V3 Development Book
JavaScript
596
star
3

uniswapv3-code

Uniswap V3 clone built to learn smart-contracts development in Solidity
Solidity
281
star
4

flash-loans-comparison

Comparison of flash loan solutions on Ethereum
Solidity
269
star
5

awesome-blockchain

A curated list of blockchain resources for developers
Makefile
119
star
6

zuniswap

UniswapV1 clone made in educational purposes
JavaScript
117
star
7

tinybit

Tiny Bitcoin Node [Work in Progress]
Go
40
star
8

uniswapv3-unrefunded-eth-poc

Solidity
38
star
9

upgradeable-proxy-from-scratch

Code from "Upgradeable proxy contract from scratch" blog post
JavaScript
24
star
10

defi-strategy-eth-staking

Leveraged ETH staking strategy contract
Solidity
21
star
11

uniswapv2-contracts

Uniswap V2 contracts, ready to be deployed to local or test network
Solidity
14
star
12

ethernaut-solutions

My solutions for Ethernaut, https://ethernaut.openzeppelin.com/
Solidity
10
star
13

rails_telegram_bot

Rails Telegram Bot
Ruby
8
star
14

eosgo

Instead, use:
Go
7
star
15

StackUnderflow

A clone of StackOverflow
Ruby
6
star
16

eos-abi

ABI deserializer for EOS
Go
4
star
17

uniswapv4-book

🚧 WORK IN PROGRESS 🚧
JavaScript
4
star
18

eosio-alpine

Alpine Linux based Docker image of EOS blockchain
Dockerfile
3
star
19

titan-finance-analysis

Analysis of the TITAN fall
JavaScript
3
star
20

manzana-client

Ruby
2
star
21

opscript

A viewer and debugger of Bitcoin scripts.
Go
2
star
22

go-blogs-demo

An example multi-tenancy application in Golang
Go
1
star
23

bank_client

Ruby
1
star
24

micros

A basic microservices setup
Go
1
star
25

switter

Twitter-like application on Ruby on Rails from scratch
Ruby
1
star
26

jeiwan.github.io

A blog about blockchains and smart contracts development
HTML
1
star