-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update subgraph urls (moving away from hosted service) #581
Conversation
I'm not sure but if you need here are the endpoints you can use.
Mode is already there right? 🤔 and it looks because it already uses the Studio endpoint.
I suggest removing it. Goerli has stopped producing blocks and it's not useful anymore. |
Thanks for the feedback!
|
Not sure it's related, but there are a few failing APR tests.
|
Another alternative is to keep the APR functionality but update to make it a proxy to the API. Would keep the functionality incase anyone is using it. I think this would be fairly easy to do and would probably allow us to remove a bunch of dependecies. |
Hi @brunoguerios @johngrantuk! When can we expect to be merged in? The hosted subgraphs used by the SDK have been made unavailable since 8:30 CET breaking most of its features. I'll cherry pick this branch for now to solve the issues we're having because of this. |
@peterpolman - Sorry about that, just released now in: @balancer-labs/[email protected]. Please open a ticket or reach out if there are still issues. |
Thanks for the patch! Tested and solves the issues🙏
|
The API is running as a graphql server and is deployed at https://api-v3.balancer.fi/, its self-documenting so you can click around the link to explore.
If you confirm what you mean by token pair prices (and maybe how you currently do that) I could try to find the best query for you. |
Thanks! I appreciate that 🙏 This method is responsible for updating price information periodically using the SDK: The USD value of the token pair 20USD-80THX: |
You can use:
and filter for the token addresses. |
Closes #580
Main changes:
subgraph
andgaugesSubgraph
config url for all chainsQuestions:
blockNumbersSubgraph
? -> used to calculate accumulated swapFees on the last 24hlatest
release?Mode
because we don't have any config info for it - do we need to add it?Goerli
because we don't have a new one - should we remove all config info for Goerli and drop support for it?