Skip to content

Add balancer v2 indexing to pool-indexer - #4815

Draft
AryanGodara wants to merge 1 commit into
aryan/balancer-v2-configfrom
aryan/balancer-v2-indexing
Draft

Add balancer v2 indexing to pool-indexer#4815
AryanGodara wants to merge 1 commit into
aryan/balancer-v2-configfrom
aryan/balancer-v2-indexing

Conversation

@AryanGodara

Copy link
Copy Markdown
Member

Description

The indexer part for bal-v2. Finds balancer pools from each factory's PoolCreated event and stores their static data, the same shape the subgraph used to serve.

Changes

  • For each configured factory, index PoolCreated, then read getPoolId, Vault.getPoolTokens, token decimals, and (weighted pools) getNormalizedWeights.
  • A backfill task fills in token decimals that couldn't be read at discovery.
  • Move the shared indexer plumbing out of the uniswap-v3 module into indexer/mod.rs so both protocols reuse it.

How to test

  • cargo nextest run -p pool-indexer
  • run the indexer against a network with balancer factories configured; rows land in balancer_v2_pools and balancer_v2_pool_tokens.

@AryanGodara AryanGodara self-assigned this Aug 28, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed.

@github-actions github-actions Bot added the stale label Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant