From b339c72da56a6a43d6448186ae6d33f44f5f759c Mon Sep 17 00:00:00 2001 From: Matt Romano <42412983+mattromano@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:43:18 -0700 Subject: [PATCH] AN-5126/morpho-missing-token-details (#202) * inner join on contracts deposit morpho * update to trace filter * undo deposit changes, filter morpho from tests * add borrows and repayments * update amount test * indent --- .../complete_lending/silver__complete_lending_borrows.yml | 7 ++++--- .../complete_lending/silver__complete_lending_deposits.yml | 7 ++++--- .../silver__complete_lending_liquidations.yml | 5 ++++- .../silver__complete_lending_repayments.yml | 7 ++++--- .../silver__complete_lending_withdraws.yml | 7 ++++--- 5 files changed, 20 insertions(+), 13 deletions(-) diff --git a/models/silver/defi/lending/complete_lending/silver__complete_lending_borrows.yml b/models/silver/defi/lending/complete_lending/silver__complete_lending_borrows.yml index 1ed2cd15..191d93a1 100644 --- a/models/silver/defi/lending/complete_lending/silver__complete_lending_borrows.yml +++ b/models/silver/defi/lending/complete_lending/silver__complete_lending_borrows.yml @@ -32,14 +32,15 @@ models: tests: - not_null - name: TOKEN_SYMBOL - tests: - - not_null - name: AMOUNT_UNADJ tests: - not_null - name: AMOUNT tests: - - not_null + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - decimal + - float - name: AMOUNT_USD tests: - dbt_expectations.expect_column_values_to_be_in_type_list: diff --git a/models/silver/defi/lending/complete_lending/silver__complete_lending_deposits.yml b/models/silver/defi/lending/complete_lending/silver__complete_lending_deposits.yml index 0441b8d4..d6de8174 100644 --- a/models/silver/defi/lending/complete_lending/silver__complete_lending_deposits.yml +++ b/models/silver/defi/lending/complete_lending/silver__complete_lending_deposits.yml @@ -32,14 +32,15 @@ models: tests: - not_null - name: TOKEN_SYMBOL - tests: - - not_null - name: AMOUNT_UNADJ tests: - not_null - name: AMOUNT tests: - - not_null + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - decimal + - float - name: AMOUNT_USD tests: - dbt_expectations.expect_column_values_to_be_in_type_list: diff --git a/models/silver/defi/lending/complete_lending/silver__complete_lending_liquidations.yml b/models/silver/defi/lending/complete_lending/silver__complete_lending_liquidations.yml index 17f933b1..e13599d1 100644 --- a/models/silver/defi/lending/complete_lending/silver__complete_lending_liquidations.yml +++ b/models/silver/defi/lending/complete_lending/silver__complete_lending_liquidations.yml @@ -41,7 +41,10 @@ models: - not_null - name: AMOUNT tests: - - not_null + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - decimal + - float - name: AMOUNT_USD tests: - dbt_expectations.expect_column_values_to_be_in_type_list: diff --git a/models/silver/defi/lending/complete_lending/silver__complete_lending_repayments.yml b/models/silver/defi/lending/complete_lending/silver__complete_lending_repayments.yml index 6c038852..31c41d93 100644 --- a/models/silver/defi/lending/complete_lending/silver__complete_lending_repayments.yml +++ b/models/silver/defi/lending/complete_lending/silver__complete_lending_repayments.yml @@ -36,14 +36,15 @@ models: tests: - not_null - name: TOKEN_SYMBOL - tests: - - not_null - name: AMOUNT_UNADJ tests: - not_null - name: AMOUNT tests: - - not_null + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - decimal + - float - name: AMOUNT_USD tests: - dbt_expectations.expect_column_values_to_be_in_type_list: diff --git a/models/silver/defi/lending/complete_lending/silver__complete_lending_withdraws.yml b/models/silver/defi/lending/complete_lending/silver__complete_lending_withdraws.yml index 11d5d21e..1528946c 100644 --- a/models/silver/defi/lending/complete_lending/silver__complete_lending_withdraws.yml +++ b/models/silver/defi/lending/complete_lending/silver__complete_lending_withdraws.yml @@ -32,14 +32,15 @@ models: tests: - not_null - name: TOKEN_SYMBOL - tests: - - not_null - name: AMOUNT_UNADJ tests: - not_null - name: AMOUNT tests: - - not_null + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - decimal + - float - name: AMOUNT_USD tests: - dbt_expectations.expect_column_values_to_be_in_type_list: