MLDZMNStargate bridge
    Updated 2024-01-24
    with price_tab as (select
    HOUR::date as day,
    symbol,
    avg(PRICE) as t_price

    from ethereum.price.ez_hourly_token_prices
    where symbol = 'WETH'
    group by 1,2
    ),

    base_tb as (
    select
    s.BLOCK_TIMESTAMP,
    AMOUNT_USD,
    s.tx_hash,
    sender,
    case when amount_usd is null then ETH_VALUE*t_price
    when TOKEN_SYMBOL ilike '%USD%' then AMOUNT_UNADJ/1e6
    when TOKEN_SYMBOL ilike '%DAI%' then AMOUNT_UNADJ/1e6 else amount_usd end as transfer_usd
    from arbitrum.defi.ez_bridge_activity s
    left join arbitrum.core.fact_transactions a on s.tx_hash=a.tx_hash
    left join price_tab p on s.BLOCK_TIMESTAMP::date=p.day
    where platform = 'stargate'
    union
    all
    select
    s.BLOCK_TIMESTAMP,
    AMOUNT_USD,
    s.tx_hash,
    sender,
    case when TOKEN_SYMBOL ilike '%USD%' then AMOUNT_UNADJ/1e6
    when TOKEN_SYMBOL ilike '%DAI%' then AMOUNT_UNADJ/1e6
    else amount_usd end as transfer_usd
    from avalanche.defi.ez_bridge_activity s
    left join price_tab p on s.BLOCK_TIMESTAMP::date=p.day
    where
    Last run: about 1 year ago
    DAY
    DAILY_VOLUME
    DAILY_TRANSFER
    DAILY_USERS
    DAILY_NEW_USERS
    CUMULATIVE_VOLUME
    CUMULATIVE_TRANSFERS
    CUMULATIVE_NEW_USERS
    DAILY_FEE
    DAILY_REVENUE
    DAILY_SUPPLY_SIDE_FEE
    1
    2024-01-22 00:00:00.00024356440.346480133658112822516576632703328369002965700220115411329111961.91329.1
    2
    2024-01-21 00:00:00.00028238449.15346773741997901115576632703084805002962334420090254153237378.84153.2
    3
    2024-01-20 00:00:00.00029527545.04372613747397781158576632702802420002958592520079104274938474.14274.9
    4
    2024-01-19 00:00:00.00027820007.8712072290939994781576632702507145002954845220067524278938510.14278.9
    5
    2024-01-18 00:00:00.00027279955.3242308257617218864576632702228945002951935920059713822334400.73822.3
    6
    2024-01-17 00:00:00.00029324218.4429214274937700968576632701956145002949359820051074070136630.94070.1
    7
    2024-01-16 00:00:00.00027431572.6718019250447423775576632701662903002946610520041394058636527.44058.6
    8
    2024-01-15 00:00:00.00022006711.1054555269778081849576632701388587002944106120033643148428335.63148.4
    9
    2024-01-14 00:00:00.00018504307.7847613236787348895576632701168520002941408420025152445322007.72445.3
    10
    2024-01-13 00:00:00.0005666358570909933042776761075576632700983477002939040620016203347230124.83347.2
    11
    2024-01-12 00:00:00.00026823360.7610278262327664966570966342412567002935997920005454084136756.94084.1
    12
    2024-01-11 00:00:00.00025205596.89005962550272231067570966342144334002933374719995793738233643.83738.2
    13
    2024-01-10 00:00:00.00026760215.3445428252317811822570966341892278002930824519985127021263190.87021.2
    14
    2024-01-09 00:00:00.00026810104.65215243140296401051570966341624676002928301419976904169737527.34169.7
    15
    2024-01-08 00:00:00.00031559385.21138623076410179992570966341356575002925161219966395229947069.15229.9
    16
    2024-01-07 00:00:00.00018263772.8809725256998691828570966341040981002922084819956472997926981.12997.9
    17
    2024-01-06 00:00:00.00022238674.1851916293628705923570966340858343002919514919948193325429928.63325.4
    18
    2024-01-05 00:00:00.00023001633.7197072311059421872570966340635956002916578719938963574432169.63574.4
    19
    2024-01-04 00:00:00.00027904203.3611484304429173798570966340405940002913468219930244838743548.34838.7
    20
    2024-01-03 00:00:00.00025735732.5207924261658169877570966340126898002910424019922266826161434.96826.1
    ...
    677
    73KB
    66s