This repo provides code for using the single and multihop swap functions of UniswapV3. For more information on the UniswapV3 contracts check the documentation.
-
Run "foundyup" to make sure you have the latest version of foundry installed
-
Create a .env file at the route of your project with
MAINNET_FORKING_URL=
and set the url as an RPC url from Alchemy, Infuria, Moralis etc . . . -
To run the test:
- "source .env"
- "forge test --fork-url $MAINNET_FORKING_URL -vv"