Updated 2024-07-14
    with claimt as (
    select
    date_trunc('hour', BLOCK_TIMESTAMP) as dates,
    count(distinct TO_ADDRESS) as users,
    sum(amount) as claimed_amount
    from ethereum.core.ez_token_transfers
    where CONTRACT_ADDRESS = lower('0x63696Fc66795B51d02c1590b536484A41fbDDF9a')
    and FROM_ADDRESS in ('0x3db08a08434bfb774271e46d277468f8da0da144')
    and ORIGIN_FUNCTION_SIGNATURE = '0xf0fd1084'
    group by 1
    )

    /*airdrop_contract as (
    select
    sum(amount) as claimable_amount
    from ethereum.core.ez_token_transfers
    where CONTRACT_ADDRESS = lower('0x63696Fc66795B51d02c1590b536484A41fbDDF9a')
    and TO_ADDRESS in ('0x3db08a08434bfb774271e46d277468f8da0da144')
    )*/

    select
    dates,
    ifnull(claimed_amount,0) as claimed_amount,
    ifnull(users,0) as claimers,
    sum(ifnull(claimed_amount,0)) over( order by dates asc) as cum_claimed_amount,
    1260000000 - sum(ifnull(claimed_amount,0)) over( order by dates asc) as cum_unclaimed_amount,
    sum(ifnull(users,0)) over( order by dates asc) as cum_claimers
    from claimt
    --, airdrop_contract
    --group by claimable_amount
    order by 1 asc



    QueryRunArchived: QueryRun has been archived