From 5e218863a79e9ef188066c5440bda067661fb51c Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Wed, 19 Jun 2024 09:51:04 -0400 Subject: [PATCH 1/6] incremental cake bsc dex swaps --- .../staging/pancakeswap/fact_pancakeswap_v2_bsc_dex_swaps.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/staging/pancakeswap/fact_pancakeswap_v2_bsc_dex_swaps.sql b/models/staging/pancakeswap/fact_pancakeswap_v2_bsc_dex_swaps.sql index 7fc6eaef..8072deb0 100644 --- a/models/staging/pancakeswap/fact_pancakeswap_v2_bsc_dex_swaps.sql +++ b/models/staging/pancakeswap/fact_pancakeswap_v2_bsc_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="PANCAKESWAP_SM", ) From 522f1ff79dd73da0ea6d2d8d8718d46809f9ab03 Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Wed, 19 Jun 2024 09:55:27 -0400 Subject: [PATCH 2/6] updating curve incrermental dex-swaps --- macros/decentralized_exchanges/fact_curve_dex_swaps.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macros/decentralized_exchanges/fact_curve_dex_swaps.sql b/macros/decentralized_exchanges/fact_curve_dex_swaps.sql index b73417cd..14ec26c4 100644 --- a/macros/decentralized_exchanges/fact_curve_dex_swaps.sql +++ b/macros/decentralized_exchanges/fact_curve_dex_swaps.sql @@ -84,8 +84,7 @@ where event_name in ('TokenExchange', 'TokenExchangeUnderlying') {% if is_incremental() %} - where t1.block_timestamp - >= (select max(block_timestamp) from {{ this }}) + and t1.block_timestamp >= (select max(block_timestamp) from {{ this }}) {% endif %} ), average_token_price_per_day as ( From c79f7e2e6166dbb59fd0f91c10903780ae50f27c Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Wed, 19 Jun 2024 10:01:57 -0400 Subject: [PATCH 3/6] updating unique keys --- models/staging/curve/fact_curve_arbitrum_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_avalanche_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_ethereum_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_optimism_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_polygon_dex_swaps.sql | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql b/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql index e9ef4936..5852760f 100644 --- a/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql +++ b/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("arbitrum") }} diff --git a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql index d9042cf7..6ead19c0 100644 --- a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql +++ b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("avalanche") }} diff --git a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql index a2cef313..54874a97 100644 --- a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql +++ b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("ethereum") }} diff --git a/models/staging/curve/fact_curve_optimism_dex_swaps.sql b/models/staging/curve/fact_curve_optimism_dex_swaps.sql index 25af282b..9be33a67 100644 --- a/models/staging/curve/fact_curve_optimism_dex_swaps.sql +++ b/models/staging/curve/fact_curve_optimism_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("optimism") }} diff --git a/models/staging/curve/fact_curve_polygon_dex_swaps.sql b/models/staging/curve/fact_curve_polygon_dex_swaps.sql index 12dd26ce..bf5f05a6 100644 --- a/models/staging/curve/fact_curve_polygon_dex_swaps.sql +++ b/models/staging/curve/fact_curve_polygon_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("polygon") }} From 5b0f10ef6f19368208560336f90517d81cd47e1c Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Wed, 19 Jun 2024 19:05:02 -0400 Subject: [PATCH 4/6] updating curve models --- .../fact_curve_dex_swaps.sql | 28 +++++++------ models/staging/curve/dim_curve_pools.sql | 39 ++++++++++--------- .../curve/fact_curve_avalanche_dex_swaps.sql | 2 +- .../curve/fact_curve_ethereum_dex_swaps.sql | 2 +- .../curve/fact_curve_optimism_dex_swaps.sql | 2 +- .../curve/fact_curve_polygon_dex_swaps.sql | 2 +- 6 files changed, 37 insertions(+), 38 deletions(-) diff --git a/macros/decentralized_exchanges/fact_curve_dex_swaps.sql b/macros/decentralized_exchanges/fact_curve_dex_swaps.sql index 14ec26c4..5adbb55f 100644 --- a/macros/decentralized_exchanges/fact_curve_dex_swaps.sql +++ b/macros/decentralized_exchanges/fact_curve_dex_swaps.sql @@ -84,7 +84,7 @@ where event_name in ('TokenExchange', 'TokenExchangeUnderlying') {% if is_incremental() %} - and t1.block_timestamp >= (select max(block_timestamp) from {{ this }}) + and t1.block_timestamp >= (select dateadd('day', -3, max(block_timestamp)) from {{ this }}) {% endif %} ), average_token_price_per_day as ( @@ -117,20 +117,16 @@ t1.token_out, t2.symbol as token_out_symbol, - coalesce(t1.amount_out, 0) as amount_out, + t1.amount_out, 0 as amount_out, t2.decimals as token_out_decimals, - coalesce(t2.price, t3.price) as token_out_price, - coalesce( - (amount_out / pow(10, token_out_decimals)) * token_out_price, 0 - ) as amount_out_usd, + t2.price as token_out_price, + amount_out / pow(10, token_out_decimals) * token_out_price as amount_out_usd, t1.token_in, t3.symbol as token_in_symbol, - coalesce(t1.amount_in, 0) as amount_in, + t1.amount_in as amount_in, t3.decimals as token_in_decimals, - coalesce(t3.price, 0) as token_in_price, - coalesce( - (amount_in / pow(10, token_in_decimals)) * token_in_price, 0 - ) as amount_in_usd, + t3.price as token_in_price, + amount_in / pow(10, token_in_decimals) * token_in_price as amount_in_usd, amount_out_usd * t1.swap_fee as trading_fee, trading_fee * admin_fee as revenue from pool_events t1 @@ -144,7 +140,7 @@ and lower(t1.token_in) = lower(t3.token_address) ), events as ( - select + select block_timestamp, tx_hash, event_index, @@ -155,7 +151,7 @@ token_out_symbol, token_in, token_in_symbol, - least(amount_in_usd, amount_out_usd) as trading_volume, + coalesce(least(amount_in_usd, amount_out_usd), 0) as trading_volume, trading_fee as trading_fees, revenue as trading_revenue, ROW_NUMBER() OVER (PARTITION by tx_hash, pool ORDER BY event_index) AS row_number @@ -177,8 +173,7 @@ and substr(t1.input, 0, 10) in ('0x3df02124', '0xa6417ed6') left join {{ _chain }}_flipside.core.fact_transactions t3 on t1.tx_hash = t3.tx_hash {% if is_incremental() %} - where t1.block_timestamp - >= (select max(block_timestamp) from {{ this }}) + where t1.block_timestamp >= (select dateadd('day', -3, max(block_timestamp)) from {{ this }}) {% endif %} ) @@ -208,4 +203,7 @@ and events.pool = traces.to_address and events.row_number = traces.row_number where events.block_timestamp is not null + {% if is_incremental() %} + and events.block_timestamp >= (select dateadd('day', -3, max(block_timestamp)) from {{ this }}) + {% endif %} {% endmacro %} diff --git a/models/staging/curve/dim_curve_pools.sql b/models/staging/curve/dim_curve_pools.sql index 14fe397d..395811cd 100644 --- a/models/staging/curve/dim_curve_pools.sql +++ b/models/staging/curve/dim_curve_pools.sql @@ -34,25 +34,26 @@ with select chain, - app, + max(app) as app, 'DeFi' as category, - pool_type, - registration_address, + max(pool_type) as pool_type, + max(registration_address) as registration_address, pool_address, - token, - amplification_coefficient, - name, - symbol, - swap_fee, - admin_fee, - mid_fee, - out_fee, - coin_0, - coin_1, - coin_2, - coin_3, - underlying_coin_0, - underlying_coin_1, - underlying_coin_2, - underlying_coin_3 + max(token) as token, + max(amplification_coefficient) as amplification_coefficient, + max(name) as name, + max(symbol) as symbol, + max(swap_fee) as swap_fee, + max(admin_fee) as admin_fee, + max(mid_fee) as mid_fee, + max(out_fee) as out_fee, + max(coin_0) as coin_0, + max(coin_1) as coin_1, + max(coin_2) as coin_2, + max(coin_3) as coin_3, + max(underlying_coin_0) as underlying_coin_0, + max(underlying_coin_1) as underlying_coin_1, + max(underlying_coin_2) as underlying_coin_2, + max(underlying_coin_3) as underlying_coin_3 from latest_entry +group by pool_address, chain diff --git a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql index 6ead19c0..f77947b3 100644 --- a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql +++ b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("avalanche") }} diff --git a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql index 54874a97..3298b6d3 100644 --- a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql +++ b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("ethereum") }} diff --git a/models/staging/curve/fact_curve_optimism_dex_swaps.sql b/models/staging/curve/fact_curve_optimism_dex_swaps.sql index 9be33a67..c592c066 100644 --- a/models/staging/curve/fact_curve_optimism_dex_swaps.sql +++ b/models/staging/curve/fact_curve_optimism_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("optimism") }} diff --git a/models/staging/curve/fact_curve_polygon_dex_swaps.sql b/models/staging/curve/fact_curve_polygon_dex_swaps.sql index bf5f05a6..62d0990c 100644 --- a/models/staging/curve/fact_curve_polygon_dex_swaps.sql +++ b/models/staging/curve/fact_curve_polygon_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("polygon") }} From d3668db28e38fddcdd0bea7ee6c9611a71063543 Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Thu, 20 Jun 2024 10:41:11 -0400 Subject: [PATCH 5/6] fixing curve job --- models/projects/curve/core/ez_curve_metrics_by_chain.sql | 2 +- models/projects/curve/core/ez_curve_metrics_by_pool.sql | 3 +-- models/staging/curve/fact_curve_avalanche_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_ethereum_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_optimism_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_polygon_dex_swaps.sql | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/models/projects/curve/core/ez_curve_metrics_by_chain.sql b/models/projects/curve/core/ez_curve_metrics_by_chain.sql index 9f75e1ea..98032662 100644 --- a/models/projects/curve/core/ez_curve_metrics_by_chain.sql +++ b/models/projects/curve/core/ez_curve_metrics_by_chain.sql @@ -28,7 +28,7 @@ with trading_volume_by_pool.chain, sum(trading_volume_by_pool.trading_volume) as trading_volume, sum(trading_volume_by_pool.trading_fees) as trading_fees, - sum(trading_volume_by_pool.trading_revenue) as unique_traders, + sum(trading_volume_by_pool.trading_revenue) as trading_revenue, sum(trading_volume_by_pool.unique_traders) as unique_traders, sum(trading_volume_by_pool.gas_cost_native) as gas_cost_native, sum(trading_volume_by_pool.gas_cost_usd) as gas_cost_usd diff --git a/models/projects/curve/core/ez_curve_metrics_by_pool.sql b/models/projects/curve/core/ez_curve_metrics_by_pool.sql index 9374cf7e..f10ead6e 100644 --- a/models/projects/curve/core/ez_curve_metrics_by_pool.sql +++ b/models/projects/curve/core/ez_curve_metrics_by_pool.sql @@ -40,7 +40,6 @@ select 'curve' as app, 'DeFi' as category, tvl_by_pool.chain, - tvl_by_pool.version, tvl_by_pool.pool, tvl_by_pool.tvl, trading_volume_pool.trading_volume, @@ -49,5 +48,5 @@ select trading_volume_pool.gas_cost_native, trading_volume_pool.gas_cost_usd from tvl_by_pool -left join trading_volume_pool using(date, chain, version, pool) +left join trading_volume_pool using(date, chain, pool) where tvl_by_pool.date < to_date(sysdate()) \ No newline at end of file diff --git a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql index f77947b3..6ead19c0 100644 --- a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql +++ b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("avalanche") }} diff --git a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql index 3298b6d3..54874a97 100644 --- a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql +++ b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("ethereum") }} diff --git a/models/staging/curve/fact_curve_optimism_dex_swaps.sql b/models/staging/curve/fact_curve_optimism_dex_swaps.sql index c592c066..9be33a67 100644 --- a/models/staging/curve/fact_curve_optimism_dex_swaps.sql +++ b/models/staging/curve/fact_curve_optimism_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("optimism") }} diff --git a/models/staging/curve/fact_curve_polygon_dex_swaps.sql b/models/staging/curve/fact_curve_polygon_dex_swaps.sql index 62d0990c..bf5f05a6 100644 --- a/models/staging/curve/fact_curve_polygon_dex_swaps.sql +++ b/models/staging/curve/fact_curve_polygon_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" ) }} {{ fact_curve_dex_swaps("polygon") }} From 05123a2851a5d7c96db1c80b5fb2653ffb762242 Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Thu, 20 Jun 2024 10:43:48 -0400 Subject: [PATCH 6/6] updating curve warehouse --- models/projects/curve/core/ez_curve_metrics_by_chain.sql | 2 +- models/projects/curve/core/ez_curve_metrics_by_pool.sql | 2 +- models/projects/curve/raw/ez_curve_dex_swaps.sql | 2 +- models/staging/curve/dim_curve_pools_gold.sql | 2 +- .../staging/curve/fact_curve_arbitrum_daily_trading_metrics.sql | 2 +- models/staging/curve/fact_curve_arbitrum_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_arbitrum_tvl_by_pool.sql | 2 +- .../curve/fact_curve_avalanche_daily_trading_metrics.sql | 2 +- models/staging/curve/fact_curve_avalanche_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_avalanche_tvl_by_pool.sql | 2 +- .../staging/curve/fact_curve_ethereum_daily_trading_metrics.sql | 2 +- models/staging/curve/fact_curve_ethereum_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_ethereum_tvl_by_pool.sql | 2 +- .../staging/curve/fact_curve_optimism_daily_trading_metrics.sql | 2 +- models/staging/curve/fact_curve_optimism_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_optimism_tvl_by_pool.sql | 2 +- .../staging/curve/fact_curve_polygon_daily_trading_metrics.sql | 2 +- models/staging/curve/fact_curve_polygon_dex_swaps.sql | 2 +- models/staging/curve/fact_curve_polygon_tvl_by_pool.sql | 2 +- ..._curve_trading_vol_trading_fees_trading_revenue_arbitrum.sql | 2 +- ...curve_trading_vol_trading_fees_trading_revenue_avalanche.sql | 2 +- ..._curve_trading_vol_trading_fees_trading_revenue_ethereum.sql | 2 +- ..._curve_trading_vol_trading_fees_trading_revenue_optimism.sql | 2 +- ...t_curve_trading_vol_trading_fees_trading_revenue_polygon.sql | 2 +- models/staging/curve/fact_curve_tvl_arbitrum.sql | 2 +- models/staging/curve/fact_curve_tvl_avalanche.sql | 2 +- models/staging/curve/fact_curve_tvl_ethereum.sql | 2 +- models/staging/curve/fact_curve_tvl_optimism.sql | 2 +- models/staging/curve/fact_curve_tvl_polygon.sql | 2 +- ...rading_fees_trading_revenue_unique_traders_arbitrum_gold.sql | 2 +- ...ading_fees_trading_revenue_unique_traders_avalanche_gold.sql | 2 +- ...rading_fees_trading_revenue_unique_traders_ethereum_gold.sql | 2 +- ...rading_fees_trading_revenue_unique_traders_optimism_gold.sql | 2 +- ...trading_fees_trading_revenue_unique_traders_polygon_gold.sql | 2 +- models/staging/curve/fact_curve_unique_traders_arbitrum.sql | 2 +- models/staging/curve/fact_curve_unique_traders_avalanche.sql | 2 +- models/staging/curve/fact_curve_unique_traders_ethereum.sql | 2 +- models/staging/curve/fact_curve_unique_traders_optimism.sql | 2 +- models/staging/curve/fact_curve_unique_traders_polygon.sql | 2 +- 39 files changed, 39 insertions(+), 39 deletions(-) diff --git a/models/projects/curve/core/ez_curve_metrics_by_chain.sql b/models/projects/curve/core/ez_curve_metrics_by_chain.sql index 98032662..94c9a1c0 100644 --- a/models/projects/curve/core/ez_curve_metrics_by_chain.sql +++ b/models/projects/curve/core/ez_curve_metrics_by_chain.sql @@ -1,7 +1,7 @@ {{ config( materialized="table", - snowflake_warehouse="CURVE_SM", + snowflake_warehouse="CURVE", database="curve", schema="core", alias="ez_metrics_by_chain", diff --git a/models/projects/curve/core/ez_curve_metrics_by_pool.sql b/models/projects/curve/core/ez_curve_metrics_by_pool.sql index f10ead6e..4faaf749 100644 --- a/models/projects/curve/core/ez_curve_metrics_by_pool.sql +++ b/models/projects/curve/core/ez_curve_metrics_by_pool.sql @@ -1,7 +1,7 @@ {{ config( materialized="table", - snowflake_warehouse="CURVE_SM", + snowflake_warehouse="CURVE", database="curve", schema="core", alias="ez_metrics_by_pool", diff --git a/models/projects/curve/raw/ez_curve_dex_swaps.sql b/models/projects/curve/raw/ez_curve_dex_swaps.sql index 9b88b375..b6869713 100644 --- a/models/projects/curve/raw/ez_curve_dex_swaps.sql +++ b/models/projects/curve/raw/ez_curve_dex_swaps.sql @@ -1,7 +1,7 @@ {{ config( materialized="table", - snowflake_warehouse="CURVE_SM", + snowflake_warehouse="CURVE", database="curve", schema="raw", alias="ez_dex_swaps", diff --git a/models/staging/curve/dim_curve_pools_gold.sql b/models/staging/curve/dim_curve_pools_gold.sql index 676d7c37..feaf1c9e 100644 --- a/models/staging/curve/dim_curve_pools_gold.sql +++ b/models/staging/curve/dim_curve_pools_gold.sql @@ -1,4 +1,4 @@ -{{ config(materialized="table", snowflake_warehouse="CURVE_SM") }} +{{ config(materialized="table", snowflake_warehouse="CURVE") }} select chain, diff --git a/models/staging/curve/fact_curve_arbitrum_daily_trading_metrics.sql b/models/staging/curve/fact_curve_arbitrum_daily_trading_metrics.sql index 603ba156..4ecc6245 100644 --- a/models/staging/curve/fact_curve_arbitrum_daily_trading_metrics.sql +++ b/models/staging/curve/fact_curve_arbitrum_daily_trading_metrics.sql @@ -2,7 +2,7 @@ {{ config( - materialized="table", snowflake_warehouse="CURVE_SM" + materialized="table", snowflake_warehouse="CURVE" ) }} {{ fact_daily_curve_trading_vol_fees_traders_by_pool("arbitrum", "fact_curve_arbitrum_dex_swaps") }} diff --git a/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql b/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql index 5852760f..6719c3cf 100644 --- a/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql +++ b/models/staging/curve/fact_curve_arbitrum_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE" ) }} {{ fact_curve_dex_swaps("arbitrum") }} diff --git a/models/staging/curve/fact_curve_arbitrum_tvl_by_pool.sql b/models/staging/curve/fact_curve_arbitrum_tvl_by_pool.sql index 30c99c82..a91fc3b9 100644 --- a/models/staging/curve/fact_curve_arbitrum_tvl_by_pool.sql +++ b/models/staging/curve/fact_curve_arbitrum_tvl_by_pool.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="table", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl_by_pool("arbitrum", "0x912ce59144191c1204e64559fe8253a0e49e6548") }} diff --git a/models/staging/curve/fact_curve_avalanche_daily_trading_metrics.sql b/models/staging/curve/fact_curve_avalanche_daily_trading_metrics.sql index 639651fa..73c714dc 100644 --- a/models/staging/curve/fact_curve_avalanche_daily_trading_metrics.sql +++ b/models/staging/curve/fact_curve_avalanche_daily_trading_metrics.sql @@ -2,7 +2,7 @@ {{ config( - materialized="table", snowflake_warehouse="CURVE_SM" + materialized="table", snowflake_warehouse="CURVE" ) }} {{ fact_daily_curve_trading_vol_fees_traders_by_pool("avalanche", "fact_curve_avalanche_dex_swaps") }} diff --git a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql index 6ead19c0..ff86ff7d 100644 --- a/models/staging/curve/fact_curve_avalanche_dex_swaps.sql +++ b/models/staging/curve/fact_curve_avalanche_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE" ) }} {{ fact_curve_dex_swaps("avalanche") }} diff --git a/models/staging/curve/fact_curve_avalanche_tvl_by_pool.sql b/models/staging/curve/fact_curve_avalanche_tvl_by_pool.sql index 80e92211..ec436596 100644 --- a/models/staging/curve/fact_curve_avalanche_tvl_by_pool.sql +++ b/models/staging/curve/fact_curve_avalanche_tvl_by_pool.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="table", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl_by_pool("avalanche", "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7") }} diff --git a/models/staging/curve/fact_curve_ethereum_daily_trading_metrics.sql b/models/staging/curve/fact_curve_ethereum_daily_trading_metrics.sql index fa5595c8..216f8465 100644 --- a/models/staging/curve/fact_curve_ethereum_daily_trading_metrics.sql +++ b/models/staging/curve/fact_curve_ethereum_daily_trading_metrics.sql @@ -2,7 +2,7 @@ {{ config( - materialized="table", snowflake_warehouse="CURVE_SM" + materialized="table", snowflake_warehouse="CURVE" ) }} {{ fact_daily_curve_trading_vol_fees_traders_by_pool("ethereum", "fact_curve_ethereum_dex_swaps") }} diff --git a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql index 54874a97..3c80b100 100644 --- a/models/staging/curve/fact_curve_ethereum_dex_swaps.sql +++ b/models/staging/curve/fact_curve_ethereum_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE" ) }} {{ fact_curve_dex_swaps("ethereum") }} diff --git a/models/staging/curve/fact_curve_ethereum_tvl_by_pool.sql b/models/staging/curve/fact_curve_ethereum_tvl_by_pool.sql index 1e67ae0d..a89bbed6 100644 --- a/models/staging/curve/fact_curve_ethereum_tvl_by_pool.sql +++ b/models/staging/curve/fact_curve_ethereum_tvl_by_pool.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="table", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl_by_pool("ethereum", "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") }} diff --git a/models/staging/curve/fact_curve_optimism_daily_trading_metrics.sql b/models/staging/curve/fact_curve_optimism_daily_trading_metrics.sql index 20996391..5fb8ec03 100644 --- a/models/staging/curve/fact_curve_optimism_daily_trading_metrics.sql +++ b/models/staging/curve/fact_curve_optimism_daily_trading_metrics.sql @@ -2,7 +2,7 @@ {{ config( - materialized="table", snowflake_warehouse="CURVE_SM" + materialized="table", snowflake_warehouse="CURVE" ) }} {{ fact_daily_curve_trading_vol_fees_traders_by_pool("optimism", "fact_curve_optimism_dex_swaps") }} diff --git a/models/staging/curve/fact_curve_optimism_dex_swaps.sql b/models/staging/curve/fact_curve_optimism_dex_swaps.sql index 9be33a67..a7939963 100644 --- a/models/staging/curve/fact_curve_optimism_dex_swaps.sql +++ b/models/staging/curve/fact_curve_optimism_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE" ) }} {{ fact_curve_dex_swaps("optimism") }} diff --git a/models/staging/curve/fact_curve_optimism_tvl_by_pool.sql b/models/staging/curve/fact_curve_optimism_tvl_by_pool.sql index 6324500d..46130ae9 100644 --- a/models/staging/curve/fact_curve_optimism_tvl_by_pool.sql +++ b/models/staging/curve/fact_curve_optimism_tvl_by_pool.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="table", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl_by_pool("optimism", "0x4200000000000000000000000000000000000042") }} diff --git a/models/staging/curve/fact_curve_polygon_daily_trading_metrics.sql b/models/staging/curve/fact_curve_polygon_daily_trading_metrics.sql index 272398eb..bc3f5946 100644 --- a/models/staging/curve/fact_curve_polygon_daily_trading_metrics.sql +++ b/models/staging/curve/fact_curve_polygon_daily_trading_metrics.sql @@ -1,7 +1,7 @@ --depends_on {{ ref("fact_curve_polygon_dex_swaps") }} {{ config( - materialized="table", snowflake_warehouse="CURVE_SM" + materialized="table", snowflake_warehouse="CURVE" ) }} {{ fact_daily_curve_trading_vol_fees_traders_by_pool("polygon", "fact_curve_polygon_dex_swaps") }} diff --git a/models/staging/curve/fact_curve_polygon_dex_swaps.sql b/models/staging/curve/fact_curve_polygon_dex_swaps.sql index bf5f05a6..a40f28f4 100644 --- a/models/staging/curve/fact_curve_polygon_dex_swaps.sql +++ b/models/staging/curve/fact_curve_polygon_dex_swaps.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key=["tx_hash", "event_index"], snowflake_warehouse="CURVE" ) }} {{ fact_curve_dex_swaps("polygon") }} diff --git a/models/staging/curve/fact_curve_polygon_tvl_by_pool.sql b/models/staging/curve/fact_curve_polygon_tvl_by_pool.sql index 3a8fd349..a5bfbcbf 100644 --- a/models/staging/curve/fact_curve_polygon_tvl_by_pool.sql +++ b/models/staging/curve/fact_curve_polygon_tvl_by_pool.sql @@ -1,6 +1,6 @@ {{ config( - materialized="table", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="table", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl_by_pool("polygon", "0x0000000000000000000000000000000000001010") }} diff --git a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_arbitrum.sql b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_arbitrum.sql index 6f97db1d..f44e0056 100644 --- a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_arbitrum.sql +++ b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_arbitrum.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_trading_vol_trading_fees_trading_revenue("arbitrum") }} diff --git a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_avalanche.sql b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_avalanche.sql index 88715234..ee02839b 100644 --- a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_avalanche.sql +++ b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_avalanche.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_trading_vol_trading_fees_trading_revenue("avalanche") }} diff --git a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_ethereum.sql b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_ethereum.sql index 6323004e..268d6d2d 100644 --- a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_ethereum.sql +++ b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_ethereum.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_trading_vol_trading_fees_trading_revenue("ethereum") }} diff --git a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_optimism.sql b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_optimism.sql index a0943090..1a534862 100644 --- a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_optimism.sql +++ b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_optimism.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_trading_vol_trading_fees_trading_revenue("optimism") }} diff --git a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_polygon.sql b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_polygon.sql index 0993212b..e1031e1e 100644 --- a/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_polygon.sql +++ b/models/staging/curve/fact_curve_trading_vol_trading_fees_trading_revenue_polygon.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_trading_vol_trading_fees_trading_revenue("polygon") }} diff --git a/models/staging/curve/fact_curve_tvl_arbitrum.sql b/models/staging/curve/fact_curve_tvl_arbitrum.sql index ac97bb50..eb785717 100644 --- a/models/staging/curve/fact_curve_tvl_arbitrum.sql +++ b/models/staging/curve/fact_curve_tvl_arbitrum.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl("arbitrum", "0x912ce59144191c1204e64559fe8253a0e49e6548") }} diff --git a/models/staging/curve/fact_curve_tvl_avalanche.sql b/models/staging/curve/fact_curve_tvl_avalanche.sql index 3fcc8046..9720b71e 100644 --- a/models/staging/curve/fact_curve_tvl_avalanche.sql +++ b/models/staging/curve/fact_curve_tvl_avalanche.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl("avalanche", "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7") }} diff --git a/models/staging/curve/fact_curve_tvl_ethereum.sql b/models/staging/curve/fact_curve_tvl_ethereum.sql index 4087fcee..227750c2 100644 --- a/models/staging/curve/fact_curve_tvl_ethereum.sql +++ b/models/staging/curve/fact_curve_tvl_ethereum.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl("ethereum", "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") }} diff --git a/models/staging/curve/fact_curve_tvl_optimism.sql b/models/staging/curve/fact_curve_tvl_optimism.sql index 3c682121..44806c0a 100644 --- a/models/staging/curve/fact_curve_tvl_optimism.sql +++ b/models/staging/curve/fact_curve_tvl_optimism.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl("optimism", "0x4200000000000000000000000000000000000042") }} diff --git a/models/staging/curve/fact_curve_tvl_polygon.sql b/models/staging/curve/fact_curve_tvl_polygon.sql index 2c196342..a10289e6 100644 --- a/models/staging/curve/fact_curve_tvl_polygon.sql +++ b/models/staging/curve/fact_curve_tvl_polygon.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_tvl("polygon", "0x0000000000000000000000000000000000001010") }} diff --git a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_arbitrum_gold.sql b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_arbitrum_gold.sql index 47459078..97f36377 100644 --- a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_arbitrum_gold.sql +++ b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_arbitrum_gold.sql @@ -1,4 +1,4 @@ -{{ config(materialized="table", snowflake_warehouse="CURVE_SM") }} +{{ config(materialized="table", snowflake_warehouse="CURVE") }} select date, chain, category, app, trading_volume, fees, tvl, unique_traders from {{ ref("fact_curve_trading_vol_trading_fees_trading_revenue_arbitrum") }} full outer join {{ ref("fact_curve_tvl_arbitrum") }} using (date, chain, category, app) diff --git a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_avalanche_gold.sql b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_avalanche_gold.sql index 5526d298..cc932157 100644 --- a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_avalanche_gold.sql +++ b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_avalanche_gold.sql @@ -1,4 +1,4 @@ -{{ config(materialized="table", snowflake_warehouse="CURVE_SM") }} +{{ config(materialized="table", snowflake_warehouse="CURVE") }} select date, chain, category, app, trading_volume, fees, tvl, unique_traders from {{ ref("fact_curve_trading_vol_trading_fees_trading_revenue_avalanche") }} full outer join {{ ref("fact_curve_tvl_avalanche") }} using (date, chain, category, app) diff --git a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_ethereum_gold.sql b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_ethereum_gold.sql index c3ead44f..f3bb48be 100644 --- a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_ethereum_gold.sql +++ b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_ethereum_gold.sql @@ -1,4 +1,4 @@ -{{ config(materialized="table", snowflake_warehouse="CURVE_SM") }} +{{ config(materialized="table", snowflake_warehouse="CURVE") }} select date, chain, category, app, trading_volume, fees, tvl, unique_traders from {{ ref("fact_curve_trading_vol_trading_fees_trading_revenue_ethereum") }} full outer join {{ ref("fact_curve_tvl_ethereum") }} using (date, chain, category, app) diff --git a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_optimism_gold.sql b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_optimism_gold.sql index 6b4e5017..9ec83499 100644 --- a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_optimism_gold.sql +++ b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_optimism_gold.sql @@ -1,4 +1,4 @@ -{{ config(materialized="table", snowflake_warehouse="CURVE_SM") }} +{{ config(materialized="table", snowflake_warehouse="CURVE") }} select date, chain, category, app, trading_volume, fees, tvl, unique_traders from {{ ref("fact_curve_trading_vol_trading_fees_trading_revenue_optimism") }} full outer join {{ ref("fact_curve_tvl_optimism") }} using (date, chain, category, app) diff --git a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_polygon_gold.sql b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_polygon_gold.sql index a174e8c6..38654984 100644 --- a/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_polygon_gold.sql +++ b/models/staging/curve/fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_polygon_gold.sql @@ -1,4 +1,4 @@ -{{ config(materialized="table", snowflake_warehouse="CURVE_SM") }} +{{ config(materialized="table", snowflake_warehouse="CURVE") }} select date, chain, category, app, trading_volume, fees, tvl, unique_traders from {{ ref("fact_curve_trading_vol_trading_fees_trading_revenue_polygon") }} full outer join {{ ref("fact_curve_tvl_polygon") }} using (date, chain, category, app) diff --git a/models/staging/curve/fact_curve_unique_traders_arbitrum.sql b/models/staging/curve/fact_curve_unique_traders_arbitrum.sql index 49569bab..1d6b4d58 100644 --- a/models/staging/curve/fact_curve_unique_traders_arbitrum.sql +++ b/models/staging/curve/fact_curve_unique_traders_arbitrum.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} diff --git a/models/staging/curve/fact_curve_unique_traders_avalanche.sql b/models/staging/curve/fact_curve_unique_traders_avalanche.sql index a76baff1..45b12249 100644 --- a/models/staging/curve/fact_curve_unique_traders_avalanche.sql +++ b/models/staging/curve/fact_curve_unique_traders_avalanche.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_unique_traders("avalanche") }} diff --git a/models/staging/curve/fact_curve_unique_traders_ethereum.sql b/models/staging/curve/fact_curve_unique_traders_ethereum.sql index 284f94e9..216701f2 100644 --- a/models/staging/curve/fact_curve_unique_traders_ethereum.sql +++ b/models/staging/curve/fact_curve_unique_traders_ethereum.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_unique_traders("ethereum") }} diff --git a/models/staging/curve/fact_curve_unique_traders_optimism.sql b/models/staging/curve/fact_curve_unique_traders_optimism.sql index 4e9f41c9..d611dd2a 100644 --- a/models/staging/curve/fact_curve_unique_traders_optimism.sql +++ b/models/staging/curve/fact_curve_unique_traders_optimism.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }} {{ fact_curve_unique_traders("optimism") }} diff --git a/models/staging/curve/fact_curve_unique_traders_polygon.sql b/models/staging/curve/fact_curve_unique_traders_polygon.sql index 73ce4c6c..076728ff 100644 --- a/models/staging/curve/fact_curve_unique_traders_polygon.sql +++ b/models/staging/curve/fact_curve_unique_traders_polygon.sql @@ -1,6 +1,6 @@ {{ config( - materialized="incremental", unique_key="date", snowflake_warehouse="CURVE_SM" + materialized="incremental", unique_key="date", snowflake_warehouse="CURVE" ) }}