mirror of
https://github.com/FlipsideCrypto/polygon-models.git
synced 2026-02-06 17:51:57 +00:00
An 1166/improving definitions (#20)
* new borrowing table * improving definitions
This commit is contained in:
parent
2e8e12d10b
commit
59d37183a0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||
5
models/doc_descriptions/Lending/lender_is_a_contract.md
Normal file
5
models/doc_descriptions/Lending/lender_is_a_contract.md
Normal 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 %}
|
||||
5
models/doc_descriptions/Lending/lending_pool.md
Normal file
5
models/doc_descriptions/Lending/lending_pool.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs lending_lending_pool %}
|
||||
|
||||
[BETA TABLE] - The name of the lending pool.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/doc_descriptions/Lending/origin_from_address.md
Normal file
5
models/doc_descriptions/Lending/origin_from_address.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs lending_origin_from_address %}
|
||||
|
||||
[BETA TABLE] - The address of the user who initiates the transaction.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/doc_descriptions/Lending/origin_to_address.md
Normal file
5
models/doc_descriptions/Lending/origin_to_address.md
Normal 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 %}
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user