Giter Site home page Giter Site logo

dex's Introduction

DEX

A Decentralised exchange built with react and truffle/web3.js

  1. Install truffle dependencies:
npm i 
  1. Start Ganache local blockchain:
truffle develop 
  1. Then Deploy migration files
migrate --reset
  1. Install client dependencies and start localhost:
cd client/ 
npm i 
npm start

Project Aim

The purpose of the project is to demonstrate the core functionalities of a DEX.

The DEX is pre-funded with tokens to provide liquidity as is the user.

Market orders can be executed against an order book based on its BUY/SELL side.

Limit orders can be placed against an order book also. The createLimitOrder() function arranges the orders by price and recency using the bubble sort algorithm.

Dai token is the stablecoin of the DEX.

All trades will appear in the order book and the chart.

Screenshot 2022-05-15 at 08 04 56

Screenshot 2022-05-15 at 08 06 50

Current Objectives

  • Implement TypeScript
  • Deploy to Rinkeby - currently experiencing synchronization issues
  • Implement real price feeds
  • Fix some issues with inputting decimal values

Tech Stack

  • React
  • JavaScript/TypeScript
  • Truffle/Web3.JS
  • Solidity

dex's People

Contributors

super-nim avatar

Watchers

 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.