Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.19 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.19 KB

TokenSwap

Token swap smart contract that swaps two ERC20 tokens and takes a fee

TokenSwap

Test

Open Ganache and run the following commands :

truffle migrate
truffle test

Run

you need to modify the Admin address in App.js to get the Admin panel and charge the TokenSwap Smart contract and then run the following comand

npm install
cd Client
yarn install
yarn start
  • add the Admin account in your wallet, the TokenSwap will detect changes and redirect you to the Admin component you need to charge the smart Contract with Tokens XYZ and ABC and set the Ratio and the Fee
  • make sure to configure Metamask to whichever network you migrated to when you ran the truffle migarte command,this repository is already configured to connect to the testnet.