From 2857c3bee7cb022db6e49be9477501b9796e4c62 Mon Sep 17 00:00:00 2001 From: Troy Date: Thu, 12 Dec 2024 13:48:34 -0700 Subject: [PATCH] lint --- .../core/fct_pool_pnl_hourly_base_mainnet.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/transformers/synthetix/models/marts/base/mainnet/core/fct_pool_pnl_hourly_base_mainnet.sql b/transformers/synthetix/models/marts/base/mainnet/core/fct_pool_pnl_hourly_base_mainnet.sql index 977ff0e2..38f10f88 100644 --- a/transformers/synthetix/models/marts/base/mainnet/core/fct_pool_pnl_hourly_base_mainnet.sql +++ b/transformers/synthetix/models/marts/base/mainnet/core/fct_pool_pnl_hourly_base_mainnet.sql @@ -86,14 +86,14 @@ ffill as ( dim.ts, dim.pool_id, dim.collateral_type, - coalesce(last(debt) over ( + coalesce(last(debt.debt) over ( partition by dim.collateral_type, dim.pool_id order by dim.ts rows between unbounded preceding and current row ), 0) as debt, - coalesce(last(collateral_value) over ( + coalesce(last(collateral.collateral_value) over ( partition by dim.collateral_type, dim.pool_id order by dim.ts @@ -162,12 +162,12 @@ pool_rewards as ( from ( select - ts, - pool_id, - token_symbol, - rewards_usd + r.ts, + r.pool_id, + r.token_symbol, + r.rewards_usd from - {{ ref('fct_pool_rewards_pool_hourly_base_mainnet') }} + {{ ref('fct_pool_rewards_pool_hourly_base_mainnet') }} as r ) as r inner join hourly_pnl as pnl on