sepehrmhz8Untitled Query
Updated 2022-10-01
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
with main as (select
pool_name,
POOL_ADDRESS
from
ethereum.core.dim_dex_liquidity_pools
where PLATFORM ilike 'sushiswap'
)
select
block_timestamp::date as date,
'Deposit' as type,
symbol,
pool_name,
count(distinct tx_hash) as tran,
count(distinct from_address) as users,
sum(amount_usd) as amount_usd
from
ethereum.core.ez_token_transfers b
join main s on to_address = POOL_ADDRESS
where block_timestamp >= '2022-09-15'
and amount_usd is not null
group by 1,2,3,4
Run a query to Download Data