BlockTrackerchains revenue
    Updated 5 days ago
    -- forked from other chain revenue @ https://flipsidecrypto.xyz/studio/queries/39bfcfc4-7237-43bc-890c-7c659a3ee80e

    select *
    from (
    select
    date_trunc('week', date) as week,
    chain,
    sum(REVENUE) as revenue
    from external.defillama.fact_protocol_fees_revenue
    where date >= current_date -90
    group by 1 , 2
    )
    where revenue is not null
    qualify row_number () over (partition by week order by revenue desc) <= 20
    union all
    select
    date_trunc('week',day) as week,
    'THORChain' as chain,
    sum(liquidity_fees_usd) as revenue -- i consider just liquidity fee (or swap fee)
    from thorchain.defi.fact_daily_earnings
    where week >= current_date -90
    group by 1
    order by week desc






    Last run: 5 days ago
    WEEK
    CHAIN
    REVENUE
    1
    2025-05-26 00:00:00.000THORChain48564.251515753
    2
    2025-05-19 00:00:00.000bifrost11686
    3
    2025-05-19 00:00:00.000abstract89874
    4
    2025-05-19 00:00:00.000bsc3016046
    5
    2025-05-19 00:00:00.000bitcoin56295
    6
    2025-05-19 00:00:00.000dydx159433
    7
    2025-05-19 00:00:00.000mantle6562
    8
    2025-05-19 00:00:00.000ink17128
    9
    2025-05-19 00:00:00.000linea36593
    10
    2025-05-19 00:00:00.000berachain401114
    11
    2025-05-19 00:00:00.000ethereum110172559
    12
    2025-05-19 00:00:00.000cronos28406
    13
    2025-05-19 00:00:00.000aptos98477
    14
    2025-05-19 00:00:00.000arbitrum914259
    15
    2025-05-19 00:00:00.000bouncebit19757
    16
    2025-05-19 00:00:00.000core5284
    17
    2025-05-19 00:00:00.000chainflip18588
    18
    2025-05-19 00:00:00.000blast9182
    19
    2025-05-19 00:00:00.000THORChain783567.890511256
    20
    2025-05-19 00:00:00.000base4078682
    ...
    273
    12KB
    3s