Skip to content

Commit

Permalink
Updating chainlink ez metric by chain (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Jul 2, 2024
1 parent 7679c18 commit da53e89
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ with
select
date_start as date
, chain
, usd_amount as ocr_fees
, sum(usd_amount) as ocr_fees
from ocr_models
group by 1, 2
)
, fm_models as(
{{
Expand All @@ -38,8 +39,9 @@ with
select
date_start as date
, chain
, usd_amount as fm_fees
, sum(usd_amount) as fm_fees
from fm_models
group by 1, 2
)
, automation_models as(
{{
Expand All @@ -54,8 +56,9 @@ with
select
date_start as date
, chain
, usd_amount as automation_fees
, sum(usd_amount) as automation_fees
from automation_models
group by 1, 2
)
, ccip_models as(
{{
Expand All @@ -71,8 +74,9 @@ with
date_start as date
, chain
-- different tokens are paid out in ccip fees
, usd_amount as ccip_fees
, sum(usd_amount) as ccip_fees
from ccip_models
group by 1, 2
)
, vrf_models as (
{{
Expand All @@ -87,8 +91,9 @@ with
select
date
, blockchain as chain
, usd_amount as vrf_fees
, sum(usd_amount) as vrf_fees
from vrf_models
group by 1, 2
)
, staking_incentive_models as (
{{
Expand All @@ -103,8 +108,9 @@ with
select
date
, chain
, staking_rewards as token_incentives
, sum(staking_rewards) as token_incentives
from staking_incentive_models
group by 1, 2
)

select
Expand Down

0 comments on commit da53e89

Please sign in to comment.