0-MIDnew lpers by first lp numbers
Updated 2023-04-12
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with tab1 as (
select min(BLOCK_TIMESTAMP)as min_date
,TX_FROM
from osmosis.core.fact_transactions
group by 2),
tab2 as (
select BLOCK_TIMESTAMP
, POOL_ID[0] as pool_num
,LIQUIDITY_PROVIDER_ADDRESS
from osmosis.core.fact_liquidity_provider_actions
group by 1,2,3)
select
pool_num
,count(distinct LIQUIDITY_PROVIDER_ADDRESS)as lpers
from tab1
left join tab2
on min_date=BLOCK_TIMESTAMP
and TX_FROM=LIQUIDITY_PROVIDER_ADDRESS
group by 1
Run a query to Download Data