Skip to content
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

Refactor Balancer API fetcher to pull all pools and always use the cache #518

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

timjrobinson
Copy link
Contributor

We had some issues with the Balancer API when filtering pools by token/type, and the root cause of this is that we had a skip variable that we were sometimes using to skip from the API fetch and sometimes to skip from the cache, and this was causing strange things to happen when they were in conflict.

This PR refactors the Balancer API pool fetcher to always pull all pools, save them to the cache, and return from the cache as soon as enough are available or the query finishes.

@gmbronco gmbronco merged commit a061a53 into develop Aug 23, 2023
3 checks passed
@johngrantuk johngrantuk mentioned this pull request Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants