0-MIDsize poly
Updated 2024-11-01
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
›
⌄
with tab1 as (
select
TX_HASH
from polygon.core.ez_decoded_event_logs
where EVENT_NAME='LiFiTransferStarted'
and DECODED_LOG:bridgeData:integrator='jumper.exchange'
and ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
and BLOCK_TIMESTAMP::date>=current_date-30
)
select case
when AMOUNT_USD>0 and AMOUNT_USD<=10 then 'Below 10 $'
when AMOUNT_USD>10 and AMOUNT_USD<=100 then '10~100 $'
when AMOUNT_USD>100 and AMOUNT_USD<=1000 then '100~1K $'
when AMOUNT_USD>1000 and AMOUNT_USD<=10000 then '1K~10K $'
when AMOUNT_USD>10000 then 'Up to 10K $' end as dis_volume
,count(distinct TX_HASH) as bridges
,count(distinct ORIGIN_FROM_ADDRESS) as bridgers
from polygon.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 BLOCK_TIMESTAMP::date>=current_date-30
and dis_volume is not null
group by 1
QueryRunArchived: QueryRun has been archived