v2-sdk
v2-sdk copied to clipboard
Does it support other Networks and Dex?
I had two questions:
- Can this project be used for other Networks such as Polygon?
- Can this project be used for other DEX such as Kyberswap, Quickswap,...?
Hi @NabiKAZ
Even though it is primarily meant to be used with Uniswap V2, this SDK works for other networks and DEXs if they are exact copies of Uniswap V2. However, you will have to change the FACTORY_ADDRESS and INIT_CODE_HASH in constants to the ones that the specific DEX uses if you want to use the functionalities that depend on Pairs. A lot of DEXs have forked the v2-sdk repository and made those changes, so I would suggest either using those sdks or making these changes yourself.
Be cautious and make sure that you know what you are dealing with, as Kyberswap for example is not an exact replica (but very very close) of Uniswap.