Sbhn_NPaave 2 over time
Updated 2023-03-01
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
select 'Deposit' as type,
date_trunc('day',block_timestamp) as date,
count(DISTINCT tx_hash) as txs,
count(DISTINCT depositor_address) as users,
sum(supplied_usd) as volume_usd,
avg(supplied_usd) as avg_volume
from ethereum.aave.ez_deposits
where block_timestamp::date >= CURRENT_DATE - {{Date}}
group by 1,2
UNION ALL
select 'Borrow' as type,
date_trunc('day',block_timestamp) as date,
count(DISTINCT tx_hash) as txs,
count(DISTINCT borrower_address) as users,
sum(borrowed_usd) as volume_usd,
avg(borrowed_usd) as avg_volume
from ethereum.aave.ez_borrows
where block_timestamp::date >= CURRENT_DATE - {{Date}}
group by 1,2
Run a query to Download Data