Deploying Uniswap on Matic Network
The guide shows how to deploy the Uniswap Exchange on Matic Network.
Matic Network is a blockchain scalability platform which provides secure, scalable and instant transactions powered by PoS side chains. This will make Uniswap work on Plasma chain make transactions fast.
Deploying Smart Contracts
git clone
https://github.com/Uniswap/contracts-vyper for Uniswap Contracts
Go to Remix IDE and choose Vyper Compiler
Add Custom RPC in Metamask to connect to Matic Network at https://testnet2.matic.network
and choose Injected Web3
for the Remix Deploy Environment
Paste the contracts from contracts/uniswap_exchange.vy
and contracts/uniswap_factor.vy
into the remix ide and deploy them
Change the gas price in Metamask Popup to 0 and confirm the deploy for both contracts. Keep the contract address safe for use.
Deploying the Frontend
git clone
https://github.com/Trellis-Lab/uniswap-frontend
Change the env.local.example
to :-
REACT_APP_NETWORK_ID="8995" REACT_APP_NETWORK_URL="https://testnet2.matic.network"```
Change src/constants/index.js
to :-
...
42: ‘0xD3E51Ef092B2845f10401a0159B2B96e8B6c3D30’,
8895: ‘0xba3f5204de791221185c87b5068cbe2fc5401fd6’, }
Run frontend through yarn start
Links
Github Repo :- https://github.com/Trellis-Lab/uniswap-frontend
Deployed Contracts Address :- https://github.com/Trellis-Lab/uniswap-frontend/blob/beta/contracts.txt