An 1166/improving definitions (#20)

* new borrowing table

* improving definitions
This commit is contained in:
Vahid-flipside 2022-07-07 11:47:19 -04:00 committed by GitHub
parent 2e8e12d10b
commit 59d37183a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 68 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,5 @@
{% docs lending_borrower_is_a_contract %}
[BETA TABLE] - If the depositor of collateral is a contract then its a Yes, if the depositor of collateral is a normal address it is a No.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs lending_lender_is_a_contract %}
[BETA TABLE] - If the depositor is a contract then its a Yes, if the depositor is a normal address it is a No.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs lending_lending_pool %}
[BETA TABLE] - The name of the lending pool.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs lending_origin_from_address %}
[BETA TABLE] - The address of the user who initiates the transaction.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs lending_origin_to_address %}
[BETA TABLE] - The person who initiates the depositing transaction has to interact with this address. This address belongs to the lending platform or directs the transactio there.
{% enddocs %}

View File

@ -96,4 +96,24 @@ models:
tests:
- not_null
- name: ORIGIN_FROM_ADDRESS
description: '{{ doc("lending_origin_from_address") }}'
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
description: '{{ doc("lending_origin_to_address") }}'
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: LENDING_POOL
description: '{{ doc("lending_lending_pool") }}'
tests:
- not_null
- name: BORROWER_IS_A_CONTRACT
description: '{{ doc("lending_borrower_is_a_contract") }}'
tests:
- not_null

View File

@ -97,4 +97,23 @@ models:
tests:
- not_null
- name: ORIGIN_FROM_ADDRESS
description: '{{ doc("lending_origin_from_address") }}'
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
description: '{{ doc("lending_origin_to_address") }}'
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: LENDING_POOL
description: '{{ doc("lending_lending_pool") }}'
tests:
- not_null
- name: LENDER_IS_A_CONTRACT
description: '{{ doc("lending_lender_is_a_contract") }}'
tests:
- not_null