Skip to content

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

License

Notifications You must be signed in to change notification settings

revoltez/TokenSwap

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published