mlhUntitled Query
Updated 2022-09-18
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
›
⌄
select date_trunc('day', BLOCK_TIMESTAMP) AS date,
'Aave' as protocol,
sum(ISSUED_TOKENS) AS ETH_supplied_volume,
count(distinct DEPOSITOR_ADDRESS) AS distinct_suppliers
from ethereum.aave.ez_deposits
where SYMBOL ='WETH'
and date >= CURRENT_DATE- 90
group by 1, 2
UNION
select date_trunc('day', BLOCK_TIMESTAMP) AS date,
'Maker' as protocol,
sum(AMOUNT_DEPOSITED) AS ETH_supplied_volume,
count(DISTINCT DEPOSITOR) AS distinct_suppliers
from ethereum.maker.ez_deposits
where SYMBOL='WETH'
and date >= CURRENT_DATE- 90
group by 1, 2
UNION
select date_trunc('day', BLOCK_TIMESTAMP) AS date,
'Compound' as protocol,
sum(SUPPLIED_BASE_ASSET) AS ETH_supplied_volume,
count(DISTINCT SUPPLIER) AS distinct_suppliers
from ethereum.compound.ez_deposits
where SUPPLIED_SYMBOL='ETH'
and date >= CURRENT_DATE- 90
group by 1, 2
Run a query to Download Data