Skip to content

skpkss/MultiSwap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiSwap with Uniswap

This project uses the core smart contracts of uniswap v3 to swap n (n>1) tokens to one single token.

Dependencies

dotenv
ethers
express

1.Note: You should have sufficient balance of weth,usdc and uni tokens (atleast 0.0005 each)

2.Network used: Polygon Mainnet OR Sepolia Testnet
You can change whichever you want to use inside multicall.js(line 14 & 20)

  1. In .env file, please enter your wallet address,secret key, and infura url

    For Polygon Mainnet: https://polygon-mainnet.infura.io/v3/YOUR_API_KEY
    For Sepolia Testnet: https://sepolia.infura.io/v3/YOUR_API_KEY

Steps:

  1. Initially, check the balance of WETH,USDC AND UNI.

  2. After that in your terminal , run

    npm start

    Server will start running on port 3000

  3. After execution of this command, (i) Balance of weth and usdc should have reduced significantly. (ii) Balance of uni should be increased upon swapping.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published