Merge pull request #65 from FlipsideCrypto/fix-test-failures
Some checks failed
docs_update / run_dbt_jobs (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled

fix and update issues causing alerts
This commit is contained in:
Mike Stepanovic 2025-09-26 11:06:19 -06:00 committed by GitHub
commit 6154e67bc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -8,7 +8,7 @@
WITH block_prices AS (
SELECT
AVG(rune_usd) AS rune_usd,
COALESCE(AVG(rune_usd), 0) AS rune_usd,
block_id
FROM
{{ ref('silver__prices') }}
@ -21,7 +21,7 @@ fin AS (
b.height AS block_id,
ree.pool_name AS reward_entity,
COALESCE(rune_e8 / pow(10, 8), 0) AS rune_amount,
COALESCE(rune_e8 / pow(10, 8) * rune_usd, 0) AS rune_amount_usd,
COALESCE(rune_e8 / pow(10, 8) * COALESCE(rune_usd, 0), 0) AS rune_amount_usd,
concat_ws(
'-',
b.height,
@ -76,7 +76,7 @@ SELECT
bond_e8 / pow(
10,
8
) * rune_usd AS rune_amount_usd,
) * COALESCE(rune_usd, 0) AS rune_amount_usd,
concat_ws(
'-',
b.height,

View File

@ -20,8 +20,6 @@ models:
- not_null
- name: SENDER
- name: ATTRIBUTES
tests:
- not_null
- name: EVENT_ID
tests:
- not_null

View File

@ -1 +1,5 @@
{{ config(
warn_if = "> 10",
severity = "warn"
) }}
{{ sequence_distinct_gaps_dim_block_id(ref("price__fact_prices"), "block_id") }}