Skip to content
Dune Analytics

@overanalyser / Fork of (#12074) Balancer Pools Weights

Token WeightsFork of (#12074) Balancer Pools Weights


About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query results


SQL query

2set_weights_calls as (
3  select 
4    contract_address as pool,
5    token,
6    denorm as weight,
7    call_block_number as block_number
8  from balancer."BPool_call_bind" A
9  join ethereum."transactions" B on A.call_tx_hash = B.hash
10  where call_success and B.success
11  union
12  select 
13    contract_address as pool,
14    token,
15    denorm as weight,
16    call_block_number as block_number
17  from balancer."BPool_call_rebind" A
18  join ethereum."transactions" B on A.call_tx_hash = B.hash
19  where call_success and B.success
21latest_weights as (
22  select pool, token, weight
23  from (
24    select 
25      pool, ...