Giter Site home page Giter Site logo

fuwei1217 / zuniswapv2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeiwan/zuniswapv2

0.0 0.0 0.0 65 KB

UniswapV2 clone made in educational purposes

Home Page: https://jeiwan.net/posts/programming-defi-uniswapv2-1/

Makefile 0.18% Solidity 99.82%

zuniswapv2's Introduction

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

zuniswapv2's People

Contributors

jeiwan avatar fuwei1217 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.