From c44302b8989c2723a04872cfcd590275deec5c85 Mon Sep 17 00:00:00 2001 From: Son Do Date: Thu, 20 Jun 2024 15:30:28 -0400 Subject: [PATCH] Updated Solana Flipside Pricing Table --- macros/p2p/filter_p2p_token_transfers.sql | 6 +++--- macros/p2p/p2p_token_transfers.sql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/macros/p2p/filter_p2p_token_transfers.sql b/macros/p2p/filter_p2p_token_transfers.sql index 866a8fc0..83237193 100644 --- a/macros/p2p/filter_p2p_token_transfers.sql +++ b/macros/p2p/filter_p2p_token_transfers.sql @@ -26,10 +26,10 @@ {% if chain == "solana" %} token_prices as ( select - recorded_hour::date as date, + hour::date as date, token_address, - avg(close) as price - from solana_flipside.price.ez_token_prices_hourly + avg(price) as price + from solana_flipside.price.ez_prices_hourly {% if is_incremental() %} where block_timestamp >= ( select dateadd('day', -3, max(block_timestamp)) diff --git a/macros/p2p/p2p_token_transfers.sql b/macros/p2p/p2p_token_transfers.sql index ac7190e1..6b5c237e 100644 --- a/macros/p2p/p2p_token_transfers.sql +++ b/macros/p2p/p2p_token_transfers.sql @@ -32,10 +32,10 @@ with {% elif chain == "solana" %} token_prices as ( select - recorded_hour::date as date, + hour::date as date, token_address, - avg(close) as price - from solana_flipside.price.ez_token_prices_hourly + avg(price) as price + from solana_flipside.price.ez_prices_hourly group by date, token_address ), distinct_peer_address as (