Skip to content

Commit

Permalink
Stablecoin V2: Fixing Macros (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Aug 5, 2024
1 parent 862be4e commit 009937c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion macros/stablecoins/stablecoin_balances.sql
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ with
left join {{ ref( "fact_" ~ chain ~ "_stablecoin_contracts") }} c
on lower(st.contract_address) = lower(c.contract_address)
left join {{ ref( "fact_coingecko_token_date_adjusted_gold") }} d
on lower(c.coingecko_id) = lower(d.token_id)
on lower(c.coingecko_id) = lower(d.coingecko_id)
and st.date = d.date::date
)
select
Expand Down
2 changes: 1 addition & 1 deletion macros/stablecoins/stablecoin_metrics_all.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ with
left join {{ ref( "fact_" ~ chain ~ "_stablecoin_contracts") }} c
on lower(stablecoin_metrics.contract_address) = lower(c.contract_address)
left join {{ ref( "fact_coingecko_token_date_adjusted_gold") }} d
on lower(c.coingecko_id) = lower(d.token_id)
on lower(c.coingecko_id) = lower(d.coingecko_id)
and stablecoin_metrics.date = d.date::date
)
select
Expand Down
2 changes: 1 addition & 1 deletion macros/stablecoins/stablecoin_metrics_artemis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ with
left join {{ ref( "fact_" ~ chain ~ "_stablecoin_contracts") }} c
on lower(stablecoin_metrics.contract_address) = lower(c.contract_address)
left join {{ ref( "fact_coingecko_token_date_adjusted_gold") }} d
on lower(c.coingecko_id) = lower(d.token_id)
on lower(c.coingecko_id) = lower(d.coingecko_id)
and stablecoin_metrics.date = d.date::date
)
select
Expand Down

0 comments on commit 009937c

Please sign in to comment.