-
Notifications
You must be signed in to change notification settings - Fork 825
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
Change Uniswap v3 subgraph queries to use pagination #1619
base: master
Are you sure you want to change the base?
Conversation
- filter out Uniswap v2 pools that can be duplicated in Uniswap v3
Tests are failing because of missing
I tested it on forked repo on copied Of course workflow |
@rav-ipor ty. issue with this version is runtime, which for me locally was almost 15min which is way to long. if u can explore a faster version of this that be appreciated |
@slasher125 ok, I will try to speed it up |
Uniswap v3 adapter is fetching only first 1000 pools from subgraph for every chain. Because of that it misses many pools with >10k TVL.
In this PR, adapter fetches all Uniswap v3 pools from subgraph with pagination and filter out pools with less then 10k TVL.
Uniswap v2 pools are filtered out, because some of them are duplicated in both subgraphs used in Uniswap v2 and Uniswap v3 adapters.