Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Failed to get subgraph pools from any providers after upgrade #478

Open
JakobJar opened this issue Jan 24, 2024 · 5 comments
Open

Failed to get subgraph pools from any providers after upgrade #478

JakobJar opened this issue Jan 24, 2024 · 5 comments

Comments

@JakobJar
Copy link

@Moganesan
Copy link

same issue can anyone help

@kharlanchuk47
Copy link

kharlanchuk47 commented Jun 21, 2024

I researched the problem and it seems to be related to the 500 response from the IPFS provider in V2SubgraphProviderWithFallBacks.
SubgraphProvider makes a call to https://ipfs.io/ipns/api.uniswap.org/v1/pools/v2/mainnet.json and gets 500.

The same thing happens with V3.

Can anyone help with this?

@jsy1218 FYI

@JakobJar
Copy link
Author

I hotfixed it by keeping the versions of the uniswap dependencies at a certain version.
It's not a very satisfying solution but the best we can do at this point.
You can find the versions here: https://github.com/JakobJar/uniswap-smart-router-rest/blob/master/package.json

@kharlanchuk47
Copy link

kharlanchuk47 commented Jun 21, 2024

I noticed that in the Ethereum network, routes are still founded through StaticV2SubgraphProvider.

The error is reproduced when trying to find routes in the Base network.

@kharlanchuk47
Copy link

I hotfixed it by keeping the versions of the uniswap dependencies at a certain version. It's not a very satisfying solution but the best we can do at this point. You can find the versions here: https://github.com/JakobJar/uniswap-smart-router-rest/blob/master/package.json

Using your versions I get the error:
Unexpected pool type in route when constructing trade object

Thank you for participating.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants