0-MIDm & t stats
Updated 2024-10-21
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
›
⌄
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'
),
tab2 as (
select
SOURCE_ADDRESS
from near.defi.ez_bridge_activity
)
select date_trunc('month',BLOCK_TIMESTAMP) as month
,sum(AMOUNT_USD) as volume
,count(distinct ORIGIN_FROM_ADDRESS) as users
,count(distinct TX_HASH) as bridges
,sum(volume)over(order by month) as total_volume
,sum(bridges)over(order by month) as total_bridges
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)
and ORIGIN_FROM_ADDRESS in (select SOURCE_ADDRESS from tab2)
group by 1
QueryRunArchived: QueryRun has been archived