mirror of
https://github.com/FlipsideCrypto/fsc-evm.git
synced 2026-02-06 17:36:56 +00:00
move to protocol folder, add seed, update rec test
This commit is contained in:
parent
b5d4ef2aec
commit
d06f2feba7
@ -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,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.
|
||||
|
||||
@ -7,6 +7,7 @@ models:
|
||||
- _log_id
|
||||
- curated_recency_defi:
|
||||
threshold_days: 60
|
||||
percent_delta_threshold: 7.5
|
||||
columns:
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
|
||||
@ -7,6 +7,7 @@ models:
|
||||
- _LOG_ID
|
||||
- curated_recency_defi:
|
||||
threshold_days: 60
|
||||
percent_delta_threshold: 7.5
|
||||
columns:
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
|
||||
@ -7,6 +7,7 @@ models:
|
||||
- _LOG_ID
|
||||
- curated_recency_defi:
|
||||
threshold_days: 60
|
||||
percent_delta_threshold: 7.5
|
||||
columns:
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
|
||||
@ -7,6 +7,7 @@ models:
|
||||
- _LOG_ID
|
||||
- curated_recency_defi:
|
||||
threshold_days: 90
|
||||
percent_delta_threshold: 7.5
|
||||
columns:
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
|
||||
@ -7,6 +7,7 @@ models:
|
||||
- _LOG_ID
|
||||
- curated_recency_defi:
|
||||
threshold_days: 60
|
||||
percent_delta_threshold: 7.5
|
||||
columns:
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
|
||||
@ -7,6 +7,7 @@ models:
|
||||
- _LOG_ID
|
||||
- curated_recency_defi:
|
||||
threshold_days: 60
|
||||
percent_delta_threshold: 7.5
|
||||
columns:
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user