move to protocol folder, add seed, update rec test

This commit is contained in:
mattromano 2025-08-27 11:40:26 -07:00
parent b5d4ef2aec
commit d06f2feba7
60 changed files with 11 additions and 3 deletions

View File

@ -4,4 +4,5 @@ ethereum,Maker,MKR,0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2,18
ethereum,usdc,USDC,0xcbfb9b444d9735c345df3a0f66cd89bd741692e9,6
ethereum,erc20,ERC20,0x36b6c4dce5465721fbd6a10edd95c4cababd71d2,18
ethereum,FakeToken,FAKE,0x292021b1e047fd0bd87f4d058a23f100d65153ec,18
ethereum,erc20,ERC20,0xf1d2d880c5dde7cc912636c2b4d080b3fe5f7b50,18
ethereum,erc20,ERC20,0xf1d2d880c5dde7cc912636c2b4d080b3fe5f7b50,18
bob,MockERC20,MOCK,0x589f02cfaebf48f835ce43a8686f91857d7929cc,18
1 blockchain underlying_token_name underlying_token_symbol underlying_token_address underlying_token_decimals
4 ethereum usdc USDC 0xcbfb9b444d9735c345df3a0f66cd89bd741692e9 6
5 ethereum erc20 ERC20 0x36b6c4dce5465721fbd6a10edd95c4cababd71d2 18
6 ethereum FakeToken FAKE 0x292021b1e047fd0bd87f4d058a23f100d65153ec 18
7 ethereum erc20 ERC20 0xf1d2d880c5dde7cc912636c2b4d080b3fe5f7b50 18
8 bob MockERC20 MOCK 0x589f02cfaebf48f835ce43a8686f91857d7929cc 18

View File

@ -1,6 +1,7 @@
{% test curated_recency_defi(
model,
threshold_days=30
threshold_days=30,
percent_delta_threshold=10
) %}
{# Get variables #}
@ -47,7 +48,7 @@ WITH source AS (
source
WHERE
(latest_timestamp < threshold_ts
OR (percent_delta < 10 AND percent_delta <> 0))
OR (percent_delta < {{ percent_delta_threshold }} AND percent_delta <> 0))
AND platform NOT IN ('{{ vars.CURATED_DEFI_RECENCY_EXCLUSION_LIST | join("', '") }}')
-- failure to meet threshold requires manual review to determine if
-- the protocol has newly deployed contracts, stale contracts, etc.

View File

@ -7,6 +7,7 @@ models:
- _log_id
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
columns:
- name: TX_HASH
tests:

View File

@ -7,6 +7,7 @@ models:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
columns:
- name: TX_HASH
tests:

View File

@ -7,6 +7,7 @@ models:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
columns:
- name: TX_HASH
tests:

View File

@ -7,6 +7,7 @@ models:
- _LOG_ID
- curated_recency_defi:
threshold_days: 90
percent_delta_threshold: 7.5
columns:
- name: TX_HASH
tests:

View File

@ -7,6 +7,7 @@ models:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
columns:
- name: TX_HASH
tests:

View File

@ -7,6 +7,7 @@ models:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
columns:
- name: TX_HASH
tests: