Skip to content
/ DEX Public

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

Notifications You must be signed in to change notification settings

Super-Nim/DEX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published