diff --git a/models/core/core__ez_swaps.yml b/models/core/core__ez_swaps.yml index 3bc25a2..ab34fbb 100644 --- a/models/core/core__ez_swaps.yml +++ b/models/core/core__ez_swaps.yml @@ -89,4 +89,45 @@ models: - float - NUMBER - \ No newline at end of file + - name: from_decimal + description: "{{ doc('from_decimal') }}" + tests: + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - decimal + - float + - NUMBER + + - name: to_amount + description: "{{ doc('to_amount') }}" + tests: + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - NUMBER + - FLOAT + - DECIMAL + + - name: to_currency + description: "{{ doc('to_currency') }}" + tests: + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - STRING + - VARCHAR + + - name: to_decimal + description: "{{ doc('to_decimal') }}" + tests: + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - decimal + - float + - NUMBER + + - name: pool_ids + description: "{{ doc('pool_ids') }}" + tests: + - dbt_expectations.expect_column_values_to_be_in_type_list: + column_type_list: + - STRING + - VARCHAR diff --git a/models/descriptions/pool_ids.md b/models/descriptions/pool_ids.md new file mode 100644 index 0000000..cd34e2b --- /dev/null +++ b/models/descriptions/pool_ids.md @@ -0,0 +1,5 @@ +{% docs pool_ids %} + +Identifier for the pool within the module + +{% enddocs %} \ No newline at end of file diff --git a/models/descriptions/to_amount.md b/models/descriptions/to_amount.md new file mode 100644 index 0000000..03a0192 --- /dev/null +++ b/models/descriptions/to_amount.md @@ -0,0 +1,5 @@ +{% docs to_amount %} + +The amount that the user sent to be swapped for another currency. + +{% enddocs %} diff --git a/models/descriptions/to_currency.md b/models/descriptions/to_currency.md new file mode 100644 index 0000000..0bbe54c --- /dev/null +++ b/models/descriptions/to_currency.md @@ -0,0 +1,5 @@ +{% docs to_currency %} + +The currency that the user sent to be swapped for another currency. + +{% enddocs %} \ No newline at end of file diff --git a/models/descriptions/to_decimal.md b/models/descriptions/to_decimal.md new file mode 100644 index 0000000..5b17cb0 --- /dev/null +++ b/models/descriptions/to_decimal.md @@ -0,0 +1,5 @@ +{% docs to_decimal %} + +Divide the swap_to_amount by POW(10, swap_to_decimal) to get the amount the user received. + +{% enddocs %} \ No newline at end of file diff --git a/models/silver/silver__dex_swaps.yml b/models/silver/silver__dex_swaps.yml index e9a543a..e351346 100644 --- a/models/silver/silver__dex_swaps.yml +++ b/models/silver/silver__dex_swaps.yml @@ -99,13 +99,13 @@ models: - NUMBER - name: to_amount - description: "{{ doc('To_amount') }}" + description: "{{ doc('to_amount') }}" tests: - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER - FLOAT - - DOUBLE + - DECIMAL - name: to_currency description: "{{ doc('to_currency') }}" @@ -132,10 +132,10 @@ models: column_type_list: - timestamp_ntz - - name: pool_ids - description: "{{ doc('pool_ids')}}" + - name: pool_ids + description: "{{ doc('pool_ids') }}" tests: - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - - NUMBER - - FLOAT + - STRING + - VARCHAR