adriaparcerisasARB/OSMO pool 3
Updated 2023-05-25
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with tab1 as (
select
distinct pool_id[0] as pool,
count(distinct tx_id) as actions,
count(distinct LIQUIDITY_PROVIDER_ADDRESS) as users
from osmosis.core.fact_liquidity_provider_actions
where ACTION in ('pool_joined')
and LIQUIDITY_PROVIDER_ADDRESS in (
select
DISTINCT LIQUIDITY_PROVIDER_ADDRESS AS exitors
from osmosis.core.fact_liquidity_provider_actions where ACTION in ('pool_exited')
and POOL_ID[0]='1011'
) and pool_id[0]<>1011
group by 1
order by 3 desc
)
select case when users>6 then pool else 'Others' end as pool,
actions,users from tab1
Run a query to Download Data