Merge branch 'main' of github.com:FlipsideCrypto/kaia-models into AN-5337/kaia-phase-2-changes

This commit is contained in:
mattromano 2025-04-15 11:59:32 -07:00
commit cb17f196cc
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ WITH base AS (
to_address,
MIN(block_number) AS start_block,
MIN(block_timestamp) AS start_timestamp,
MAX(_inserted_timestamp) AS _inserted_timestamp
MAX(modified_timestamp) AS _inserted_timestamp
FROM
{{ ref('core__fact_traces') }}
WHERE
@ -22,7 +22,7 @@ WITH base AS (
AND from_address != to_address -- exclude self-calls
{% if is_incremental() %}
AND _inserted_timestamp >= (
AND modified_timestamp >= (
SELECT
MAX(_inserted_timestamp) - INTERVAL '24 hours'
FROM

View File

@ -13,7 +13,7 @@ WITH contract_deployments AS (
block_timestamp,
from_address AS deployer_address,
to_address AS contract_address,
modified_timestamp AS _inserted_timestamp
modified_timestamp as _inserted_timestamp
FROM
{{ ref('core__fact_traces') }}
WHERE