maybeyonaseth_rem_aave_netflows
Updated 2022-09-18Copy Reference Fork
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 flows as (
select
block_timestamp,
tx_hash,
'borrow' as event,
-borrowed_tokens as amt,
-borrowed_usd as amt_usd
from ethereum.aave.ez_borrows
where symbol = 'WETH'
union all
select
block_timestamp,
tx_hash,
'withdraw' as event,
-withdrawn_tokens as amt,
-withdrawn_usd as amt_usd
from ethereum.aave.ez_withdraws
where symbol = 'WETH'
union all
select
block_timestamp,
tx_hash,
'deposit' as event,
issued_tokens as amt,
supplied_usd as amt_usd
from ethereum.aave.ez_deposits
where symbol = 'WETH'
union all
select
block_timestamp,
Run a query to Download Data