peteerNumber of claims
    Updated 2022-08-31
    with number_of_claimed as
    (
    select count(tx_hash) from optimism.velodrome.ez_claimed_rewards
    )
    ,number_of_claimed_day as
    (
    select count(tx_hash),date_trunc('day', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2
    )
    ,number_of_claimed_week as
    (
    select count(tx_hash),date_trunc('week', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2
    )
    ,number_of_claimed_month as
    (
    select count(tx_hash),date_trunc('month', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2
    )

    ,amount_of_claimed as
    (
    select sum(claimed_amount_usd) from optimism.velodrome.ez_claimed_rewards
    )
    ,amount_of_claimed_day as
    (
    select sum(claimed_amount_usd),date_trunc('day', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2
    )
    ,amount_of_claimed_week as
    (
    select sum(claimed_amount_usd),date_trunc('week', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2
    )
    ,amount_of_claimed_month as
    Run a query to Download Data