Skip to content

Commit

Permalink
fix column name, propogate downstream (#7479)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-dude authored Jan 16, 2025
1 parent 2268fab commit a81487e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt_macros/shared/balancer/balancer_protocol_fee_macro.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a81487e

Please sign in to comment.