Skip to content

Commit ac77d1e

Browse files
henrystatsjeff-dude
authored andcommitted
remove time filters
1 parent 380a898 commit ac77d1e

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

dbt_subprojects/dex/macros/models/_project/uniswap_compatible_liquidity.sql

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ modify_liquidity_events as (
267267
from
268268
{{ PoolManager_call_ModifyLiquidity }}
269269
where call_success
270-
and call_block_time <= date '2025-03-05'
271270
{%- if is_incremental() %}
272271
and {{ incremental_predicate('call_block_time') }}
273272
{%- endif %}
@@ -324,9 +323,8 @@ modify_liquidity_events as (
324323
ROW_NUMBER() OVER (PARTITION BY evt_tx_hash ORDER BY evt_index) AS evt_rn
325324
from
326325
{{ PoolManager_evt_ModifyLiquidity }}
327-
where evt_block_time <= date '2025-03-05'
328326
{%- if is_incremental() %}
329-
and {{ incremental_predicate('evt_block_time') }}
327+
where {{ incremental_predicate('evt_block_time') }}
330328
{%- endif %}
331329
)
332330

@@ -398,9 +396,8 @@ swap_events as (
398396
, cast(null as varbinary) as salt
399397
from
400398
{{ PoolManager_evt_Swap }}
401-
where evt_block_time <= date '2025-03-05'
402399
{%- if is_incremental() %}
403-
and {{ incremental_predicate('evt_block_time') }}
400+
where {{ incremental_predicate('evt_block_time') }}
404401
{%- endif %}
405402
),
406403

@@ -421,9 +418,8 @@ swap_fees_paid as (
421418
, cast(null as varbinary) as salt
422419
from
423420
{{ PoolManager_evt_Swap }}
424-
where evt_block_time <= date '2025-03-05'
425421
{%- if is_incremental() %}
426-
and {{ incremental_predicate('evt_block_time') }}
422+
where {{ incremental_predicate('evt_block_time') }}
427423
{%- endif %}
428424
),
429425

dbt_subprojects/dex/models/_projects/uniswap/uniswap_liquidity_events.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ WITH dexes AS (
5353
, amount1_usd
5454
FROM
5555
dexes
56-
WHERE block_date >= date '2025-10-01'
5756
{% if is_incremental() %}
58-
AND
57+
WHERE
5958
{{ incremental_predicate('block_time') }}
6059
{% endif %}
6160

0 commit comments

Comments
 (0)