Swapper A contract to exchange betwen tokens, receiving multiple tokens given a percentage
This is a solidity project about a usefull swap tool with the next characteristics:
- It´s an upgradeable smart contract.
- It swap betwen multiple tokens.
- The user can give any percentage from the tokens to receive.
- The second version uses paraswap to find the best price.
- Clone this repo
- Install the dependencies with
npm install
- Run test with any of
npx hardhat test npm run test
- For swapping
- Uniswap
- Paraswap
You can follow the code with the coments, they explain every function on the contract.
The tests are divided to check every contract functionality one by one.
If you want to contribute just fork the repo and describe the changes you made.
MIT