Skip to content

Commit

Permalink
Stablecoin V2.5: Clean up stablecoin breakdown (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 committed Sep 9, 2024
1 parent 234bf5f commit 06bb791
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions macros/stablecoins/stablecoin_breakdown.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% macro stablecoin_breakdown(breakdowns=[], granularity='day') %}
select
date_trunc('{{granularity}}', date) as date_granularity
, date_trunc('{{granularity}}', date) as date
{% for breakdown in breakdowns %}
, {{ breakdown }}
{% endfor %}
Expand Down Expand Up @@ -35,6 +34,6 @@ select
, sum(case when is_wallet::number = 1 and date = date_trunc('{{granularity}}', date) then stablecoin_supply else 0 end) as p2p_stablecoin_supply
{% endif %}
from {{ ref("agg_daily_stablecoin_breakdown_silver") }}
group by date_granularity, date {% for breakdown in breakdowns %}, {{ breakdown }} {% endfor %}
group by date_granularity {% for breakdown in breakdowns %}, {{ breakdown }} {% endfor %}
order by date_granularity
{% endmacro %}

0 comments on commit 06bb791

Please sign in to comment.