From 062ac2a2f0d1d631ecd53f1d3ba128e01a01bc6d Mon Sep 17 00:00:00 2001 From: Anthony Yim Date: Sat, 29 Jun 2024 14:02:32 -0400 Subject: [PATCH] Calculate adjusted Near DAU for all of time (#268) --- macros/metrics/get_fundamental_data_for_chain.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/macros/metrics/get_fundamental_data_for_chain.sql b/macros/metrics/get_fundamental_data_for_chain.sql index 78071af5..fc46a0c4 100644 --- a/macros/metrics/get_fundamental_data_for_chain.sql +++ b/macros/metrics/get_fundamental_data_for_chain.sql @@ -13,10 +13,9 @@ group by start_date ), {% if chain in ("near") %} - truncated_near_fact_txns as ( + near_fact_txns as ( select * from near_flipside.core.fact_transactions - where block_timestamp > current_date() - interval '300 days' ), fact_transactions_delegate_extracted as ( select @@ -31,7 +30,7 @@ else false end as is_delegate from - truncated_near_fact_txns, + near_fact_txns, lateral flatten(input => tx:actions) as action where tx_succeeded = TRUE