BlazePyth claimers swaps
    Updated 2024-02-13
    WITH airdrops AS (
    SELECT DISTINCT
    block_timestamp,
    tx_id
    FROM solana.core.fact_events
    WHERE succeeded
    AND program_id = 'EXxqB6XPLczReFcZyigfbdowB6WGYtnkLYC4XZ2ae9ch'
    ),
    claimers AS (
    SELECT
    tx_to as wallet_address,
    sum(amount) AS total_pyth
    FROM solana.core.fact_transfers
    JOIN airdrops USING (block_timestamp, tx_id)
    WHERE lower(mint) = lower('HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3')
    GROUP BY 1
    )

    SELECT
    date_trunc('day', block_timestamp) as date,
    count(DISTINCT tx_id) as SWAPS,
    count(DISTINCT SWAPPER) as SWAPPERS
    FROM solana.defi.fact_swaps
    join claimers on claimers.wallet_address=swapper
    where date_trunc('month', block_timestamp)>date_trunc('month', current_timestamp)-interval'6 months'
    and succeeded
    group by 1
    Last run: about 1 year ago
    DATE
    SWAPS
    SWAPPERS
    1
    2023-10-02 00:00:00.000741543051
    2
    2023-11-12 00:00:00.0001926275064
    3
    2023-10-30 00:00:00.000886343180
    4
    2023-10-21 00:00:00.000808212701
    5
    2023-10-03 00:00:00.000740283008
    6
    2024-02-05 00:00:00.0001079095280
    7
    2023-11-30 00:00:00.0001885746484
    8
    2023-09-01 00:00:00.000536922963
    9
    2023-09-30 00:00:00.000456192735
    10
    2023-09-25 00:00:00.000351972435
    11
    2023-12-21 00:00:00.00043886710525
    12
    2023-12-26 00:00:00.0003435669140
    13
    2024-01-10 00:00:00.0003023755530
    14
    2024-01-19 00:00:00.0003799516934
    15
    2023-11-10 00:00:00.0002534205799
    16
    2024-01-26 00:00:00.00036788311672
    17
    2023-12-15 00:00:00.00048857510728
    18
    2024-01-24 00:00:00.0003487535512
    19
    2023-09-08 00:00:00.000382182360
    20
    2023-09-09 00:00:00.000232471955
    ...
    166
    6KB
    281s