saeedmznaxlUSDC: Soon to be forgotten? -- over time
Updated 2022-11-04
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
›
⌄
------------------CopyRight by Ali3n------------------ https://app.flipsidecrypto.com/dashboard/axl-usdc-soon-to-be-forgotten-tNernJ
with Transfers as (
select
block_timestamp ,
TX_ID ,
TRANSFER_TYPE ,
SENDER ,
RECEIVER ,
AMOUNT,
DECIMAL,
regexp_substr (sender,'[a-zA-Z]+|\d+') Sender_Chain,
regexp_substr (receiver,'[a-zA-Z]+|\d+') Receiver_Chain,
Sender_Chain|| ' To ' || Receiver_Chain Transfer_Path
-- lower (split(currency,'-')[0]) Symbol1,
-- iff (Symbol1 ilike 'u%',substring(Symbol1,2,LEN(Symbol1)), Symbol1) Symbol
from axelar.core.fact_transfers
where transfer_type in ('IBC_TRANSFER_IN','IBC_TRANSFER_OUT')
and currency = 'uusdc'
and TX_SUCCEEDED = 'TRUE'
)
select date_trunc (week,block_timestamp) weekly,
transfer_Type,
count (distinct tx_id) num_transfers,
sum (num_transfers) over (partition by transfer_type order by weekly) cum_transfers,
count (DISTINCT SENDER) num_senders,
count (DISTINCT RECEIVER ) num_RECEIVERs,
sum ((amount/POW (10,decimal))) transferred_volume,
avg ((amount/POW (10,decimal))) weekly_avg_volume,
median ((amount/POW (10,decimal))) Median_Volume,
min ((amount/POW (10,decimal))) Minimum_Volume,
max ((amount/POW (10,decimal))) Maximum_Volume,
sum (transferred_volume) over (partition by transfer_type order by weekly) cum_volume
from Transfers
group by 1,2
------------------CopyRight by Ali3n------------------ https://app.flipsidecrypto.com/dashboard/axl-usdc-soon-to-be-forgotten-tNernJ
Run a query to Download Data