A Decentralised exchange built with react and truffle/web3.js
- Install truffle dependencies:
npm i
- Start Ganache local blockchain:
truffle develop
- Then Deploy migration files
migrate --reset
- Install client dependencies and start localhost:
cd client/
npm i
npm start
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.
- Implement TypeScript
Deploy to Rinkeby - currently experiencing synchronization issues- Implement real price feeds
- Fix some issues with inputting decimal values
- React
- JavaScript/TypeScript
- Truffle/Web3.JS
- Solidity