intensodefiUntitled Query
Updated 2021-11-09
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 gas as (
select
date(block_timestamp) as date,
median(gwei) as median_gwei
from
(
select
block_timestamp,
gas_price / pow(10, 9) as gwei
from
ethereum.transactions
)
group by
1
),
aave_borrows as (
select
date(block_timestamp) as date,
avg(borrowed_usd) as avg_borrow,
count(tx_id) as no_borrows
from
aave.borrows
group by
1
),
aave_deposits as (
select
date(block_timestamp) as date,
avg(supplied_usd) as avg_deposit,
count(tx_id) as no_deposits
from
aave.deposits
group by
1
)
select
Run a query to Download Data