BlockTrackermain query (swap) total
Updated 2024-05-22
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
›
⌄
-- forked from main query (swap) @ https://flipsidecrypto.xyz/edit/queries/7fe6bf7a-577f-460d-ae03-2598d65247f6
with ethereum_chain_data as (
select
'ethereum' as chain,
'LiFi' as aggregator,
block_timestamp,
tx_hash,
event_index,
origin_from_address,
decoded_log : fromAssetId :: string as "fromAssetId",
decoded_log : toAssetId :: string as "toAssetId",
decoded_log : fromAmount :: int as "fromAmount",
decoded_log : toAmount :: int as "toAmount"
from ethereum.core.ez_decoded_event_logs
where event_name IN ('LiFiGenericSwapCompleted','LiFiSwappedGeneric')
and decoded_log:integrator :: string = 'jumper.exchange'
and block_timestamp::date >= '2024-01-01'
)
,
arbitrum_chain_data as (
select
'arbitrum' as chain,
'LiFi' as aggregator,
block_timestamp,
tx_hash,
event_index,
origin_from_address,
decoded_log : fromAssetId :: string as "fromAssetId",
decoded_log : toAssetId :: string as "toAssetId",
decoded_log : fromAmount :: int as "fromAmount",
decoded_log : toAmount :: int as "toAmount"
from arbitrum.core.ez_decoded_event_logs
where event_name IN ('LiFiGenericSwapCompleted','LiFiSwappedGeneric')
and decoded_log:integrator :: string = 'jumper.exchange'
and block_timestamp::date >= '2024-01-01'
QueryRunArchived: QueryRun has been archived