Module Deployment
The module is available on GitHub. 2 contracts are available:
UniswapV2DAppControl
: for Uniswap v2 fork DEXes.UniswapV3DAppControl
: for Uniswap v3 fork DEXes.
Requirements
You will need git
, forge
and npm
installed to run the commands showcased in this document.
Deployment
Clone the repository on your locale machine.
git clone [email protected]:FastLane-Labs/atlas-dex-backrun.git
Install the dependencies.
forge install
Review carefully the smart contract you are interested in (Uniswap v2 or v3 forks). Minor changes might be necessary for your specific dApp needs. View the dApp guides to understand better how to customize an existing module.
Compile the contracts.
forge build
Create a .env
file, patterned after .env.example
. Fill in the values.
You will need the Atlas deployment addresses for the chain you are targeting, please refer to the Atlas contracts deployments section.
Deploy scripts are available in the /script
directory. Deploy easily with the following commands:
# For UniswapV2DAppControl
npm run deploy-uniswap-v2-module
# For UniswapV3DAppControl
npm run deploy-uniswap-v3-module
The initialization step is included in the deploy script.