Monitize AIBlock 1 (cummunity)
    Updated 2024-07-15
    with claimt as (
    select
    --'Social points' as type,
    'Cummunity Reward' as type,
    date_trunc('week', BLOCK_TIMESTAMP) as dates,
    count(distinct TO_ADDRESS) as users,
    sum(amount) as claimed_amount,
    sum(amount_usd) as claim_usd_amt
    from ethereum.core.ez_token_transfers
    where CONTRACT_ADDRESS = lower('0x8fc17671D853341D9e8B001F5Fc3C892d09CB53A')
    and FROM_ADDRESS in ('0x97d7915ee95ed700d4499f702c8e3c7fd12e431b','0x3d577e5aad32b8e9b5b8824fc824d86d09383b4c')
    and ORIGIN_FUNCTION_SIGNATURE = '0x5eddd157'
    group by 1,2

    /*UNION

    select
    'Pre Sale' as type,
    date_trunc('week', BLOCK_TIMESTAMP) as dates,
    count(distinct TO_ADDRESS) as users,
    sum(amount) as claimed_amount,
    sum(amount_usd) as claim_usd_amt
    from ethereum.core.ez_token_transfers
    where CONTRACT_ADDRESS = lower('0x8fc17671D853341D9e8B001F5Fc3C892d09CB53A')
    and FROM_ADDRESS = lower('0xb1371882a69f7d9b2cd3c2a02b47f51b107ee5d7')
    --and ORIGIN_FUNCTION_SIGNATURE = '0x5eddd157'
    group by 1,2*/
    ),


    airdrop_contract as (
    select
    'Cummunity Reward' as type,
    sum(amount) as claimable_amount
    from ethereum.core.ez_token_transfers
    where CONTRACT_ADDRESS = lower('0x8fc17671D853341D9e8B001F5Fc3C892d09CB53A')
    QueryRunArchived: QueryRun has been archived