Pine Analyticsfight_horse copy
    Updated 2025-02-18
    with tab1 as (
    SELECT
    -- ACCOUNT_KEYS[5] as pool,
    t.*,
    f.value as log_message,
    f.index as log_index
    FROM eclipse.core.fact_transactions t,
    LATERAL FLATTEN(input => LOG_MESSAGES) f
    WHERE log_message LIKE '%InitializeMint2%'
    AND block_timestamp > '2024-11-10'
    and log_messages[0] like 'Program 7X3YmPcRu4V5GKxeFvC9MQq4bemCdR5MWea5tVs62bM9 invoke [1]'
    and SUCCEEDED
    and not signers[0] like '2SpeaLUs5SUBauC3xDwDyArz28buhi44QP4RBQq3Gn4E'
    ), tab2 as (
    SELECT
    token_account,
    mint
    FROM eclipse.defi.fact_token_mint_actions
    where tx_id in (SELECT tx_id from tab1)
    AND block_timestamp > '2024-11-10'
    AND not token_account is NULL
    ), tab3 as (
    SELECT
    DISTINCT tx_id
    FROM eclipse.core.fact_transfers
    where (SOURCE_TOKEN_ACCOUNT in (SELECT token_account from tab2)
    or DEST_TOKEN_ACCOUNT in (SELECT token_account from tab2))
    AND block_timestamp > '2024-11-10'
    )


    SELECT
    date_trunc('hour', block_timestamp) as hour,
    count(*) as swaps,
    count(DISTINCT wallet) as swappers,
    Last run: 19 days ago
    HOUR
    SWAPS
    SWAPPERS
    VOLUME_ETH
    VOLUME_USD
    1
    2025-02-20 09:00:00.00020170.090094026246.254001266
    2
    2025-02-11 12:00:00.00020100.117420091317.041290905
    3
    2025-01-22 14:00:00.00058230.02329623577.187415426
    4
    2025-01-14 17:00:00.000750.0022238917.116718067
    5
    2024-12-09 22:00:00.000630.030019697112.525532038
    6
    2025-01-19 02:00:00.00017130.074247037246.001965222
    7
    2025-02-28 16:00:00.0002070.0013922853.015912076
    8
    2025-03-22 00:00:00.0001750.0011369182.23487382
    9
    2025-02-16 00:00:00.00024170.00443547711.949175038
    10
    2025-03-04 06:00:00.00026190.00675333814.108128282
    11
    2025-03-22 15:00:00.00019100.0014498652.882027148
    12
    2025-01-07 13:00:00.00034270.00700957425.494030925
    13
    2024-11-18 13:00:00.00034230.129245272395.511211564
    14
    2024-12-30 19:00:00.00037210.247697396837.858734736
    15
    2025-01-04 07:00:00.0001480.031352096112.61265306
    16
    2025-01-03 18:00:00.00019130.01126526640.374713344
    17
    2025-03-13 15:00:00.0002990.9830261191842.014002305
    18
    2025-03-06 20:00:00.00021150.073633804162.172562606
    19
    2025-02-19 15:00:00.00024140.136726341370.860629119
    20
    2025-01-05 21:00:00.0001480.01116612340.569874696
    ...
    3215
    182KB
    575s