mirror of
https://github.com/FlipsideCrypto/movement-models.git
synced 2026-02-06 13:26:45 +00:00
fixed issue with prices in stats
This commit is contained in:
parent
ac3eb8d302
commit
8c3a35f41d
@ -46,13 +46,13 @@ SELECT
|
||||
unique_sender_count,
|
||||
unique_payload_function_count,
|
||||
total_fees AS total_fees_native,
|
||||
ROUND(
|
||||
COALESCE(ROUND(
|
||||
(total_fees / pow(
|
||||
10,
|
||||
8
|
||||
)) * p.price,
|
||||
2
|
||||
) AS total_fees_usd,
|
||||
), 0) AS total_fees_usd,
|
||||
core_metrics_hourly_id AS ez_core_metrics_hourly_id,
|
||||
s.inserted_timestamp AS inserted_timestamp,
|
||||
s.modified_timestamp AS modified_timestamp
|
||||
@ -62,9 +62,9 @@ FROM
|
||||
LEFT JOIN {{ ref('price__ez_prices_hourly') }}
|
||||
p
|
||||
ON s.block_timestamp_hour = p.hour
|
||||
AND p.is_native
|
||||
WHERE
|
||||
block_timestamp_hour < DATE_TRUNC('hour', CURRENT_TIMESTAMP)
|
||||
p.is_native
|
||||
AND block_timestamp_hour < DATE_TRUNC('hour', CURRENT_TIMESTAMP)
|
||||
{% if is_incremental() %}
|
||||
AND
|
||||
block_timestamp_hour >= COALESCE(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user