From e75acf384b2f2cc8bebe8ac6dc4706b7afe15c08 Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Mon, 25 Nov 2024 09:30:41 -0700 Subject: [PATCH 1/2] adding mantle to stablecoin models --- .../breakdowns/agg_daily_stablecoin_breakdown_silver.sql | 5 +++++ .../stablecoins/breakdowns/agg_stablecoin_transfers_l30d.sql | 2 ++ 2 files changed, 7 insertions(+) diff --git a/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql b/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql index 4f6c0cfb..a5b173fa 100644 --- a/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql +++ b/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql @@ -66,6 +66,11 @@ with {% if is_incremental() %} where date >= (select dateadd('day', -7, max(date)) from {{ this }}) {% endif %} + select * + from {{ref("ez_mantle_stablecoin_metrics_by_address")}} + {% if is_incremental() %} + where date >= (select dateadd('day', -7, max(date)) from {{ this }}) + {% endif %} ) select date diff --git a/models/metrics/stablecoins/breakdowns/agg_stablecoin_transfers_l30d.sql b/models/metrics/stablecoins/breakdowns/agg_stablecoin_transfers_l30d.sql index b3045d8a..f1abe71b 100644 --- a/models/metrics/stablecoins/breakdowns/agg_stablecoin_transfers_l30d.sql +++ b/models/metrics/stablecoins/breakdowns/agg_stablecoin_transfers_l30d.sql @@ -27,6 +27,8 @@ with stablecoin_transfers as ( {{ l30d_stablecoin_transfers('ton') }} union all {{ l30d_stablecoin_transfers('celo') }} + union all + {{ l30d_stablecoin_transfers('mantle') }} ) select stablecoin_transfers.date From 5e14463bc315031ddcb42c8f643bae2cb4def746 Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Mon, 25 Nov 2024 11:36:34 -0700 Subject: [PATCH 2/2] fixing comp error --- .../breakdowns/agg_daily_stablecoin_breakdown_silver.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql b/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql index a5b173fa..2f90f00a 100644 --- a/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql +++ b/models/metrics/stablecoins/breakdowns/agg_daily_stablecoin_breakdown_silver.sql @@ -66,6 +66,7 @@ with {% if is_incremental() %} where date >= (select dateadd('day', -7, max(date)) from {{ this }}) {% endif %} + union all select * from {{ref("ez_mantle_stablecoin_metrics_by_address")}} {% if is_incremental() %}