Remove now unsused v3 subgraph source - #4734
Conversation
|
@claude review this |
|
Claude finished @AryanGodara's task in 2m 11s —— View job PR Review
Verdict: LGTM ✅ — clean, correct deletion refactor. No blocking issues found. I traced each claimed simplification and they all hold:
A couple of things I considered and deliberately did not flag:
Note: I was unable to run |
789efaa to
d2b29a8
Compare
a9e3082 to
ad349e5
Compare
|
Claude finished @AryanGodara's task in 2m 1s —— View job PR Review
Verdict: LGTM ✅ — clean, behavior-preserving deletion refactor. No blocking issues; nothing warranting an inline comment. What I verified beyond a re-read of the diff:
Couldn't run |
…e-v3-subgraph-source
|
|
||
| pub enum LiquidityProvider { | ||
| UniswapV2, | ||
| UniswapV3 { subgraph: Url }, |
There was a problem hiding this comment.
Do we not have an e2e test that requires this?
There was a problem hiding this comment.
No test requires this. I checked at it was never constructed. It was added in #3468 as scaffolding whose e2e testwasremoved (validated on mainnet-staging instead). So this was just hanging around not being used
ref:

…-seed' into aryan/remove-v3-subgraph-source
Description
Every V3 network (prod + staging) already reads liquidity from the pool-indexer, so the driver-side subgraph-vs-indexer is no longer needed. This makes the pool-indexer the only Uniswap V3 liquidity source.
Stacked on #4733
Changes
UniV3SubgraphClientand its GraphQL queries; renamegraph_api.rs→models.rs, keeping only the plain pool/tick DTOs.fetch_on_demandguard. It's always on now that the indexer is the only source.UniswapV3PoolSourceenum and theIndexerConfig::Subgraphvariant down to the single pool-indexer form.max_pools_per_tick_queryfrom the shared subgraph client (V3 tick-chunking was its only reader; Balancer always passedusize::MAX).LiquidityProvider::UniswapV3e2e helper (never constructed since it was introduced in UniV3 support in the Baseline solver #3468, so safe to remove).How to test
Note before merge
The shadow envs for 2 networks still use the subgraphs, so they need to be pointed to use the staging pool indexers first. I'll open the respective PR there, before merging in this one.