Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.74 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.74 KB

This repo is a work in progress, and contracts have not been audited.

header

UniswapV3 Simulator

UniswapV3 Simulator based on its name is a swap project whose architecture is broadly based on the UniswapV3. All algorithms associated with this project are based on what is happening in UniswapV3 behind the scenes.

For a better understanding of the swap and add liquidity process you could go to this directory to see the calculations.

NOTE: All resources that I used to build this project were adjusted at the end of this readme.

Environment Variables

To run this project via foundry, you will need to add the following environment variables to your .env file with these names (Choose the appropriate one based on the network that you want to interact with)

ALCHEMY_API_KEY ALCHEMY_ENDPOINT ETHERSCAN_API_KEY= PRIVATE_KEY

Deployment

To deploy this project run

  forge script script/UniswapV3SimulatorDeployer.s.sol --rpc-url <RPC-URL> --broadcast --verify

Running Tests

To run tests, run the following command

  forge test -vvv

To get test coverages run:

  forge coverage

Authors

Resources