Popex404Total General Metrics tx - volume - users
Updated 2022-11-29Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- Querie From Alik110 https://app.flipsidecrypto.com/dashboard/TPy8JA
-- With my own changes, to visualize a better comparison between Single asset vs All assets Adding Liquidity Transactions
-- Important Change? => Change the Time period.
with pricet as (
select recorded_at::date as day,
address,
symbol,
avg (price) as USDPrice
from osmosis.core.dim_prices t1 join osmosis.core.dim_labels t2 on t1.symbol = t2.project_name
where recorded_at >= '2021-12-28'
group by 1,2,3),
SingleSideT as (
select tx_id,
count (tx_id) as TXS_Count
from osmosis.core.fact_liquidity_provider_actions
where action = 'pool_joined'
and tx_status = 'SUCCEEDED'
and block_timestamp >= '2021-12-28'
group by 1
having TXS_Count < 2),
BothAssetsT as (
select tx_id,
count (tx_id) as TXS_Count
from osmosis.core.fact_liquidity_provider_actions
where action = 'pool_joined'
and tx_status = 'SUCCEEDED'
and block_timestamp >= '2021-12-28'
group by 1
having TXS_Count > 1)
select 'Single Asset' as join_type,
count (distinct tx_id) as TX_Count,
count (distinct liquidity_provider_address) as Users_Count,
Run a query to Download Data