QuickSwap
QuickSwap core contracts are the fork of Uniswap V2
QuickSwap/Uniswap-V2 contracts are non-upgradeable and hence immutable in nature
In-depth documentation on Uniswap V2 is available at uniswap.org.
The built contract artifacts can be browsed via unpkg.com.
Addresses and Verified Source Code:
Polygon Mainnet
- QUICK token: https://polygonscan.com/address/0x831753DD7087CaC61aB5644b308642cc1c33Dc13
- QuickSwapRouter: https://polygonscan.com/address/0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff
- QuickSwapFactory: https://polygonscan.com/address/0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32
- Pair Contract: https://polygonscan.com/address/0xadbF1854e5883eB8aa7BAf50705338739e558E5b
Mumbai Testnet
- QuickSwapRouter: https://mumbai.polygonscan.com/address/0x8954AfA98594b838bda56FE4C12a09D7739D179b
- QuickSwapFactory: https://mumbai.polygonscan.com/address/0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32
Local Development
The following assumes the use of node@>=10
.
Install Dependencies
yarn
Compile Contracts
yarn compile
Run Tests
yarn test
Changes from Uniswap V2
Not even a single line of code has been changed in the core contracts when compared with Uniswap V2. Hence no changelog.
Add To Your Site
To include a QuickSwap iframe within your site just add an iframe element within your website code and link to the QuickSwap frontent.
Linking to a MATIC <-> QUICK swap page would look something like this. To link to a token of your choice replace the address after โoutputCurrencyโ with the token address of the token you want to link to.
<iframe src="https://quickswap.exchange/#/swap?outputCurrency=0x831753dd7087cac61ab5644b308642cc1c33dc13" height="660px" width="100%" style=" border: 0; margin: 0 auto; display: block; border-radius: 10px; max-width: 600px; min-width: 300px; " id="myId" />