| {side} | 13 |||
|---|---|---|
| amount | 16 |price | 17 |date | 18 |
| {order.amount - order.filled} | 24 |{order.price} | 25 |
26 | |
28 |
| {side} | 12 |||
|---|---|---|
| amount/filled | 15 |price | 16 |date | 17 |
| {order.amount}/{order.filled} | 23 |{order.price} | 24 |
25 | |
27 |
| amount | 13 |price | 14 |date | 15 |
|---|---|---|
| {trade.amount} | 21 |{trade.price} | 22 |
23 | |
25 |
6 |
7 |
8 | # How to install the code
9 |
10 | ```
11 | npm install
12 | ```
13 | open a new terminal
14 | ```
15 | truffle develop
16 | copy the nemonic
17 | logout from the metamask and Import using account seed phrase
18 | copy paste the nemonic
19 | migrate --reset in the same terminal and keep that terminal open
20 | ```
21 |
22 | open a new terminal
23 | ```
24 | cd app or client
25 | npm install
26 | npm start
27 | ```
28 |
29 | enjoy the code happy coding
30 |
31 | just made this awsome project called DEFI trading platform
32 |
33 | in this project i have imbedded 4 fake erc-20 tokens named DAI, BAT ,ZRX , REP made using #OpenZeppelin in this i have given first four accounts of mine 1 #ethereum equivalent fake erc-20 tokens
34 |
35 |
36 |
37 | there is a withdraw and a deposit function by withdraw button you can invest fake #crypto tokens present in your account to the trading application and by depositing you can deposit the tokens earned to your account
38 |
39 |
40 |
41 | also there is a function called limit order and market order
42 |
43 | limit order basically means that you want to buy or sell n number of tokens at this highest price that you will put in the input field
44 |
45 |
46 |
47 | market orders means that you want to buy or sell n number of tokens what ever price that is availiable in the market
48 |
49 |
50 |
51 | the trading algorithm matches the limit order and the market orders and create a trade between the tokens and price that person who wants the tokens at any price get the tokens and the person who wants to sell at a specific price sells it so its all about the working of this DAPP
52 |
53 |
54 |
55 | I have followed Julien Klepatch tutorial series avaliable on
56 |
57 | https://eattheblocks-pro.teachable.com/ this website
58 |
59 |
60 |
61 | thanks Julien Klepatch for making this awsome course on decentralized applications using ethereum and soldity you are great teacher and an awsome person
62 |
63 |
64 |
65 | #solidity #smartcontracts #ethereum #truffle #reactjs #nodejs #ganache #metamask #chai_test #testing #crypto #eattheblocks
66 |
--------------------------------------------------------------------------------
/client/README.md:
--------------------------------------------------------------------------------
1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2 |
3 | ## Available Scripts
4 |
5 | In the project directory, you can run:
6 |
7 | ### `yarn start`
8 |
9 | Runs the app in the development mode.