Blazewen claim progress
    Updated 2024-02-12
    -- forked from jup claim progress @ https://flipsidecrypto.xyz/edit/queries/e8a48679-db37-414e-8459-b182069a67b7

    WITH airdrops AS (
    SELECT DISTINCT
    block_timestamp,
    tx_id
    FROM solana.core.fact_events
    WHERE succeeded
    AND program_id = 'meRjbQXFNf5En86FXT2YPz1dQzLj4Yb3xK8u1MVgqpb'
    and block_timestamp<'2024-01-30'
    ),
    transfers AS (
    SELECT
    block_timestamp,
    tx_id,
    tx_to,
    643652 as amount
    FROM solana.core.fact_transfers
    INNER JOIN airdrops USING (block_timestamp, tx_id)
    WHERE lower(mint) = lower('WENWENvqqNya429ubCdR81ZmD69brwQaaBYY6p3LCpk')
    )
    SELECT
    DATE_TRUNC('day', block_timestamp) AS date,
    COUNT(DISTINCT tx_to) AS num_claimers,
    COUNT(DISTINCT tx_id) AS txs,
    SUM(amount) AS amt,
    SUM(num_claimers) OVER (ORDER BY date) AS total_claimers,
    SUM(amt) OVER (ORDER BY date) AS cum_amt,
    cum_amt/700000000000 * 100 as pct_claimed
    FROM transfers
    GROUP BY 1
    order by 1



    Last run: about 1 year ago
    DATE
    NUM_CLAIMERS
    TXS
    AMT
    TOTAL_CLAIMERS
    CUM_AMT
    PCT_CLAIMED
    1
    2024-01-24 00:00:00.000192592159841592159840.0085
    2
    2024-01-25 00:00:00.0001925921598421184319680.0169
    3
    2024-01-26 00:00:00.00044164244162928472074950444164428483918147240.6913
    4
    2024-01-27 00:00:00.0001455761455709370478911658722037854397058854.0777
    5
    2024-01-28 00:00:00.00048676486493164000136463589641018397195258.5977
    6
    2024-01-29 00:00:00.00030904309712001564624466680043019961819661.4571
    6
    447B
    18s