andreafiandro[zKSyncEra] # Liquidity Provider
Updated 2023-11-22
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 BRIDGED AS (select
AMOUNT,
SYMBOL,
AMOUNT_USD,
date_trunc('hour', BLOCK_TIMESTAMP) as HOUR,
ORIGIN_FROM_ADDRESS,
ORIGIN_TO_ADDRESS,
ORIGIN_FUNCTION_SIGNATURE
from
ethereum.core.ez_token_transfers
where
ORIGIN_TO_ADDRESS in (
'0x57891966931eb4bb6fb81430e6ce0a03aabde063'
)
and ORIGIN_FUNCTION_SIGNATURE in ('0x933999fb','0xe8b99b1b') -- Deposit ERC20 Tokens
AND HOUR > '{{start_date_zksync}}'
AND HOUR < '{{end_date_zksync}}'
UNION ALL
select
AMOUNT,
'ETH' as SYMBOL,
AMOUNT_USD,
date_trunc('hour', BLOCK_TIMESTAMP) as HOUR,
ORIGIN_FROM_ADDRESS,
ORIGIN_TO_ADDRESS,
ORIGIN_FUNCTION_SIGNATURE
from
ethereum.core.ez_eth_transfers
where
ORIGIN_TO_ADDRESS in (
'0x32400084c286cf3e17e7b677ea9583e60a000324' -- Bridge ETH
)
and ORIGIN_FUNCTION_SIGNATURE in ('0xeb672419') -- Deposit ETH
AND AMOUNT > 0
Run a query to Download Data