From c9cb2acdfc167ea76f660ba1d8a6811c5611ac06 Mon Sep 17 00:00:00 2001 From: marcus-snx Date: Tue, 27 Aug 2024 15:56:47 +0300 Subject: [PATCH] Fixes --- .../core/fct_core_account_delegation_arbitrum_mainnet.sql | 2 +- .../sepolia/perp_stats/fct_perp_stats_daily_base_sepolia.sql | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/transformers/synthetix/models/marts/arbitrum/mainnet/core/fct_core_account_delegation_arbitrum_mainnet.sql b/transformers/synthetix/models/marts/arbitrum/mainnet/core/fct_core_account_delegation_arbitrum_mainnet.sql index e2e745448..d92d87731 100644 --- a/transformers/synthetix/models/marts/arbitrum/mainnet/core/fct_core_account_delegation_arbitrum_mainnet.sql +++ b/transformers/synthetix/models/marts/arbitrum/mainnet/core/fct_core_account_delegation_arbitrum_mainnet.sql @@ -44,7 +44,7 @@ cumulative_delegation as ( ) select - block_timestamp, + block_timestamp as ts, pool_id, collateral_type, cumulative_amount_delegated as amount_delegated, diff --git a/transformers/synthetix/models/marts/base/sepolia/perp_stats/fct_perp_stats_daily_base_sepolia.sql b/transformers/synthetix/models/marts/base/sepolia/perp_stats/fct_perp_stats_daily_base_sepolia.sql index f378b88c8..65d232f58 100644 --- a/transformers/synthetix/models/marts/base/sepolia/perp_stats/fct_perp_stats_daily_base_sepolia.sql +++ b/transformers/synthetix/models/marts/base/sepolia/perp_stats/fct_perp_stats_daily_base_sepolia.sql @@ -17,4 +17,7 @@ select from {{ ref('fct_perp_stats_hourly_base_sepolia') }} group by - ts + DATE_TRUNC( + 'day', + ts + )