peteerNumber of rewards and their types per month
Updated 2022-08-31
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with number_of_reward_type as
(
select count(tx_hash),reward_type from optimism.velodrome.ez_claimed_rewards
group by 2
)
,number_of_reward_type_day as
(
select count(tx_hash),reward_type,date_trunc('day', block_timestamp) from optimism.velodrome.ez_claimed_rewards
group by 2,3
)
,number_of_reward_type_week as
(
select count(tx_hash),reward_type,date_trunc('week', block_timestamp) from optimism.velodrome.ez_claimed_rewards
group by 2,3
)
,number_of_reward_type_month as
(
select count(tx_hash),reward_type,date_trunc('month', block_timestamp) from optimism.velodrome.ez_claimed_rewards
group by 2,3
)
,amount_of_reward_type as
(
select sum(claimed_amount_usd),reward_type from optimism.velodrome.ez_claimed_rewards
group by 2
)
,amount_of_reward_type_day as
(
select sum(claimed_amount_usd),reward_type,date_trunc('day', block_timestamp) from optimism.velodrome.ez_claimed_rewards
group by 2,3
)
,amount_of_reward_type_week as
(
select sum(claimed_amount_usd),reward_type,date_trunc('week', block_timestamp) from optimism.velodrome.ez_claimed_rewards
group by 2,3
Run a query to Download Data