Table of Contents
Instant decentralized cryptocurrency exchange powered by the ethereum blockchain that allows for ERC20 cryptocurrency transactions to take place at a fixed price
- Clone the repo
git clone https://github.com/gumastro/dex.git
- Install NPM packages
npm install
- Open Ganache and run the migrations
truffle migrate --reset
- Start NPM packages
npm run start
- Import an address to Metamask
- Make sure your Metamask is connected to the right network (same as Ganache test network)
- RPC URL
http://localhost:7545
- Chain ID
1337
- RPC URL
- Make sure your Metamask is connected to the right network (same as Ganache test network)
- Swap!
- Click on Buy option
- Select desired amount of Ether to pay
- Click on Swap!
- Confirm transaction on Metamask pop-up
- Enjoy your tokens!
- Click on Sell option
- Select desired amount of Catto to sell
- Click on Swap!
- Give permission to access your Catto on Metamask pop-up
- Confirm transaction on Metamask pop-up
- Enjoy your tokens!
- Add fee exchange to collect profit
- Make exchange rate dynamic
- Support multiple tokens
Distributed under the MIT License. See LICENSE.txt
for more information.
Gustavo Tuani Mastrobuono - gumastro@usp.br