0xHaM-dOver Time
Updated 2022-09-06
999
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 price as (
SELECT
hour::date as p_date,
price
FROM ethereum.core.fact_hourly_token_prices
WHERE symbol = 'WETH'
)
, all_tx as (
SELECT
BLOCK_TIMESTAMP,
'DEPOSITOR' as status,
TX_HASH,
DEPOSITOR as users,
AMOUNT_DEPOSITED as amount
FROM ethereum.maker.ez_deposits
WHERE TX_STATUS = 'SUCCESS'
UNION ALL
SELECT
BLOCK_TIMESTAMP,
'WITHDRAWER' as status,
TX_HASH,
WITHDRAWER as users,
AMOUNT_WITHDRAWN as amount
FROM ethereum.maker.ez_withdrawals
WHERE TX_STATUS = 'SUCCESS'
UNION ALL
SELECT
BLOCK_TIMESTAMP,
'BORROWER' as status,
TX_HASH,
BORROWER as users,
AMOUNT_LOANED as amount
Run a query to Download Data