From a81487eddf2bfd1b6281b583848e822d71417fe3 Mon Sep 17 00:00:00 2001 From: jeff-dude <102681548+jeff-dude@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:30:08 -0500 Subject: [PATCH] fix column name, propogate downstream (#7479) --- dbt_macros/shared/balancer/balancer_protocol_fee_macro.sql | 2 +- .../_project/balancer/protocol_fee/balancer_protocol_fee.sql | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dbt_macros/shared/balancer/balancer_protocol_fee_macro.sql b/dbt_macros/shared/balancer/balancer_protocol_fee_macro.sql index d363a1a8b51..6eaa4377c78 100644 --- a/dbt_macros/shared/balancer/balancer_protocol_fee_macro.sql +++ b/dbt_macros/shared/balancer/balancer_protocol_fee_macro.sql @@ -364,7 +364,7 @@ WITH pool_labels AS ( SUM(f.token_amount) as token_amount, SUM(f.protocol_fee_collected_usd) as protocol_fee_collected_usd, r.treasury_share, - SUM(f.protocol_fee_collected_usd) * r.treasury_share as treasury_feee_usd, + SUM(f.protocol_fee_collected_usd) * r.treasury_share as treasury_fee_usd, SUM(CASE WHEN f.fee_type = 'swap_fee' THEN f.protocol_fee_collected_usd WHEN f.fee_type = 'yield_fee' THEN f.protocol_fee_collected_usd * 9 END) AS lp_fee_collected_usd diff --git a/dbt_subprojects/hourly_spellbook/models/_project/balancer/protocol_fee/balancer_protocol_fee.sql b/dbt_subprojects/hourly_spellbook/models/_project/balancer/protocol_fee/balancer_protocol_fee.sql index d0cf6d8445c..af563984e30 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/balancer/protocol_fee/balancer_protocol_fee.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/balancer/protocol_fee/balancer_protocol_fee.sql @@ -39,7 +39,8 @@ FROM ( token_amount, protocol_fee_collected_usd, treasury_share, - treasury_revenue_usd + treasury_fee_usd, + lp_fee_collected_usd FROM {{ protocol_fee }} {% if not loop.last %} UNION ALL