Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Does it support other Networks and Dex? #93

Open
NabiKAZ opened this issue May 31, 2022 · 1 comment
Open

Does it support other Networks and Dex? #93

NabiKAZ opened this issue May 31, 2022 · 1 comment

Comments

@NabiKAZ
Copy link

NabiKAZ commented May 31, 2022

I had two questions:

  1. Can this project be used for other Networks such as Polygon?
  2. Can this project be used for other DEX such as Kyberswap, Quickswap,...?
@Florian-S-A-W
Copy link

Florian-S-A-W commented Apr 26, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants