0-MIDdaily & total stats
Updated 2024-07-18
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 act1 as (
with tab1 as (
select
TX_HASH
from arbitrum.core.ez_decoded_event_logs
where EVENT_NAME='LiFiTransferStarted'
and DECODED_LOG:bridgeData:integrator='jumper.exchange'
and ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
and DECODED_LOG:bridgeData:bridge='squid'
)
select
AMOUNT_USD
,TX_HASH
from arbitrum.core.ez_token_transfers
where ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
and ORIGIN_FROM_ADDRESS=FROM_ADDRESS
and TX_HASH in (select TX_HASH from tab1)
),
act2 as (
select BLOCK_TIMESTAMP::date as day
,TX_HASH
,SENDER
,DESTINATION_CHAIN
,TOKEN_SYMBOL
from axelar.defi.ez_bridge_squid
)
select day
,sum(AMOUNT_USD) as volume
,count(distinct act1.TX_HASH) as bridges
,count(distinct SENDER) as bridgers
,sum(volume)over(order by day) as total_volume
,sum(bridges)over(order by day) as total_bridges
from act1
left join act2
on act1.TX_HASH=act2.TX_HASH
where day is not null
QueryRunArchived: QueryRun has been archived