Clone of Uniswap V2 Decentralized Exchange (DEX).
- Copy Uniswap Factory Contract and add
INIT_CODE_PAIR_HASH
constant - Deploy contract and save the
Factory Contract Address
and theINIT_CODE_PAIR_HASH
value - Copy Uniswap Router Contract and change the
INIT_CODE_PAIR_HASH
value from previous step - Deploy contract and save
Router Contract Address
- Edit Router address on the frontend's constants folder to use the
Router Contract Address
- Edit
Factory Contract Address
andINIT_CODE_PAIR_HASH
onnode_modules/@uniswap
- Set the network address to localhost or wherever you deploy the contract to
Use
yarn deploy
to deploy the contracts
Author: Ramdhani Rachmansyah -- 101391780
George Brown College
Source: Clone Uniswap Tutorial