From 89c70b5081f1b376dfc9c8b8671feb2971c51b8c Mon Sep 17 00:00:00 2001 From: Alex Weseley Date: Mon, 25 Nov 2024 17:37:46 -0500 Subject: [PATCH] move balance filter downstream --- macros/rwa/rwa_balances.sql | 1 - macros/rwa/rwa_supply_by_date_and_chain.sql | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/rwa/rwa_balances.sql b/macros/rwa/rwa_balances.sql index f6eccc0e..e4f836e8 100644 --- a/macros/rwa/rwa_balances.sql +++ b/macros/rwa/rwa_balances.sql @@ -157,7 +157,6 @@ with left join {{ ref( "fact_ousg_prices") }} o on st.date = o.date and st.symbol = 'OUSG' - where rwa_supply_native >= 1e-9 ) select date diff --git a/macros/rwa/rwa_supply_by_date_and_chain.sql b/macros/rwa/rwa_supply_by_date_and_chain.sql index 77d865a5..0ce1d92b 100644 --- a/macros/rwa/rwa_supply_by_date_and_chain.sql +++ b/macros/rwa/rwa_supply_by_date_and_chain.sql @@ -8,6 +8,7 @@ with rwa_balances as ( , sum(rwa_supply_native) as rwa_supply_native , sum(rwa_supply_usd) as rwa_supply_usd from {{ ref("fact_" ~ chain ~ "_rwa_balances") }} + where rwa_supply_native >= 1e-9 group by 1, 2, 3 ) select