elsinaTransactions Count Breakdown by Symbol
    Updated 10 days ago
    WITH katana_swaps_tx AS (
    SELECT tx_hash
    FROM
    ronin.core.ez_decoded_event_logs
    WHERE
    origin_to_address in ('0x5f0acdd3ec767514ff1bf7e79949640bf94576bd', '0x7d0556d55ca1a92708681e2e231733ebd922597d') and
    TX_SUCCEEDED = TRUE and
    (
    EVENT_NAME = 'Swap'
    OR ORIGIN_FUNCTION_SIGNATURE LIKE '%swap%'
    OR TOPIC_0 = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'
    )
    ),

    katana_swaps as (
    select
    t.tx_hash,
    block_timestamp,
    origin_from_address as user,
    symbol,
    amount_usd,
    ROW_NUMBER() OVER (PARTITION BY t.TX_HASH ORDER BY CASE WHEN AMOUNT_USD = 0 OR AMOUNT_USD IS NULL THEN AMOUNT ELSE AMOUNT_USD END DESC) as row_num
    from katana_swaps_tx k left join ronin.core.ez_token_transfers t
    where k.tx_hash = t.tx_hash
    ),

    base as (
    SELECT *
    FROM katana_swaps
    WHERE row_num = 1;
    )

    select
    symbol,
    count(distinct tx_hash) as tx_count,
    100.0 * COUNT(DISTINCT tx_hash) / SUM(COUNT(DISTINCT tx_hash)) OVER () AS tx_count_percentage
    Last run: 10 days ago
    SYMBOL
    TX_COUNT
    TX_COUNT_PERCENTAGE
    1
    WRON61451723.567558
    2
    WETH32834012.592283
    3
    USDC28178410.806797
    4
    AXS2605939.994094
    5
    SLP1517765.820815
    6
    PIXEL1202144.610369
    7
    ANIMA476211.82633
    8
    Ronke474331.81912
    9
    CAG441191.692023
    10
    YGG323291.239861
    11
    WF305461.17148
    12
    JAIHOZ285121.093474
    13
    COCK263871.011977
    14
    KOKU228340.875715
    15
    JIN224830.862253
    15
    365B
    14s