h4wkbase total
    Updated 19 hours ago
    -- forked from base penalty @ https://flipsidecrypto.xyz/studio/queries/264efcda-dba9-4335-a15b-e666a1bdc446

    -- 8d81W2jTM4M8GQSMzv9vx4fkTSeVKn1f2iWAZHRgvypY penalty
    -- 2QfiM9uocJpSohZkeBvQe9usWB17CxbWqWD5F4tyws8C first 50% claiming
    with base_first as (
    select tx_from,
    tx_to,
    amount,
    block_timestamp,
    tx_id
    from solana.core.fact_events e
    join solana.core.fact_transfers t using (tx_id, block_timestamp)
    where block_timestamp > '2024-10-16'
    and program_id = 'DeDRoPXNyHRJSagxZBBqs4hLAAM1bGKgxh7cyfuNCBpo'
    and mint = 'DBRiDgJAMsM95moTzJs7M9LnkGErpbv9v6CUR1DXnUu5'
    and tx_from = '2QfiM9uocJpSohZkeBvQe9usWB17CxbWqWD5F4tyws8C'
    )
    , base_penalty as (
    select tx_from,
    tx_to,
    amount,
    block_timestamp,
    tx_id
    from solana.core.fact_events e
    join solana.core.fact_transfers t using (tx_id, block_timestamp)
    where block_timestamp > '2024-10-16'
    and program_id = 'DeDRoPXNyHRJSagxZBBqs4hLAAM1bGKgxh7cyfuNCBpo'
    and mint = 'DBRiDgJAMsM95moTzJs7M9LnkGErpbv9v6CUR1DXnUu5'
    and tx_from = '8d81W2jTM4M8GQSMzv9vx4fkTSeVKn1f2iWAZHRgvypY'
    )
    , first_agg as (
    select tx_to as user_address,
    sum(amount) as first_amount,
    count(distinct tx_id) as first_tx_count,
    any_value(tx_id) as first_tx
    from base_first
    Last run: about 19 hours agoAuto-refreshes every 24 hours
    FIRST_CLAIMERS
    SECOND_CLAIMERS
    VESTED_CLAIMERS
    CEX_CLAIMERS
    TOTAL_CLAIMERS
    FIRST_CLAIM
    SECOND_CLAIM
    SECOND_CLAIM_WITH_CEX
    CEX_CLAIM
    TOTAL_CLAIM
    FIRST_CLAIM_WITH_CEX
    TOTAL_CLAIM_WITH_CEX
    PENALTY
    FIRST_CLAIMING_COUNT
    SECOND_CLAIMING_COUNT
    FIRST_CLAIMING_COUNT_WITH_CEX
    SECOND_CEX_CLAIM_COUNT
    SECOND_CLAIM_COUNT_WITH_CEX
    TOTAL_CLAIM_COUNT
    TOTAL_CLAIM_COUNT_WITH_CEX
    TOTAL_ALLOCATION
    SECOND_ALLOCATION
    TOTAL_PENALTY_WITH_CEX
    AIRDROP_LEFT
    CLAIMED_PERC
    1
    125613750711810631146156759217288540.77465923056439.62414234827942.74914257816364.558477240344980.398801263333401.649659298161344.95727815370959.7494281813818898212527420413102190279221425379403583.12237822060000023218628.499428116070181.47271969.407199448
    1
    284B
    557s