Merge pull request #498 from FlipsideCrypto/upd-tests

quickfix/lending column nulls
This commit is contained in:
Jack Forgash 2025-08-11 14:54:15 -04:00 committed by GitHub
commit a0bc2946da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 7 deletions

View File

@ -72,11 +72,11 @@ jobs:
run: |
git push -f --set-upstream origin docs
- name: refresh endpoint
run: |
curl -X POST ${{ secrets.DDM_REFRESH_CACHE_SBX }} \
-H "Content-Type: application/json" \
-d '{"force": true, "resource_ids": ["near-models"]}'
# - name: refresh endpoint
# run: |
# curl -X POST ${{ secrets.DDM_REFRESH_CACHE_SBX }} \
# -H "Content-Type: application/json" \
# -d '{"force": true, "resource_ids": ["near-models"]}'
notify-failure:
needs: [run_dbt_jobs]

View File

@ -68,7 +68,10 @@ SELECT
NULL
END AS segmented_data,
segmented_data :token_id AS token_contract_address,
COALESCE( segmented_data :amount,segmented_data :max_amount) AS amount_raw,
COALESCE(
segmented_data :amount :: VARCHAR,
segmented_data :max_amount :: VARCHAR
) AS amount_raw,
'borrow' :: STRING AS actions
FROM
borrows

View File

@ -85,6 +85,7 @@ FINAL AS (
CASE
WHEN method_name = 'ft_on_transfer' THEN args :sender_id :: STRING
WHEN method_name = 'callback_execute_with_pyth' THEN args :account_id :: STRING
WHEN method_name = 'oracle_on_call' THEN args :sender_id :: STRING
END AS sender_id,
method_name,
args,

View File

@ -56,7 +56,8 @@ ft_mints_final AS (
COALESCE(
f.value :new_owner_id,
f.value :owner_id,
f.value :user_id
f.value :user_id,
f.value :accountId
) :: STRING AS to_address,
f.value :amount :: STRING AS amount_unadj,
f.value :memo :: STRING AS memo,