Afonso_Diaz2023-09-09 08:56 PM
Updated 2023-09-27
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 t as (
select
tx_hash,
block_timestamp,
origin_from_address as user
from ethereum.defi.ez_dex_swaps
where platform = 'uniswap-v3'
union all
select
tx_hash,
block_timestamp,
liquidity_provider as user
from ethereum.uniswapv3.ez_lp_actions
union all
select
tx_hash,
block_timestamp,
seller_address as user
from ethereum.nft.ez_nft_sales
where origin_to_address = lower('0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b')
and event_type = 'sale'
)
select
'Inactive users' as type,
count(distinct user) as quantity,
(quantity / (
select count(distinct user) as users
from t
where user not in (select distinct user from t
where block_timestamp::date >= '2023-04-11')
)) * 100 as value_percent
Run a query to Download Data