yasmin-n-d-r-hosmo8
Updated 2022-10-12
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
›
⌄
with osmolp as (
select
tx_id,
LIQUIDITY_PROVIDER_ADDRESS as User,
amount / pow(10, decimal) as volume2
from
osmosis.core.fact_liquidity_provider_actions
where
currency = 'uosmo'
and tx_status = 'SUCCEEDED'
and block_timestamp >= CURRENT_DATE - 10
),
osmoswap as (
select
tx_id,
trader as user,
from_amount / pow(10, from_decimal) as volume2
from
osmosis.core.fact_swaps
where
from_currency = 'uosmo'
and tx_status = 'SUCCEEDED'
and block_timestamp >= CURRENT_DATE -10
)
SELECT
'Only LPing' as type,
count (distinct tx_id) as TX_Count,
count (distinct user) as Users_Count,
sum (volume2) as Volume1
from
osmolp
where
user not in (
select
user
from
Run a query to Download Data