mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 09:41:44 +00:00
fix borrow amount
This commit is contained in:
parent
97dfed3670
commit
d49b7249c2
10
.github/workflows/dbt_docs_update.yml
vendored
10
.github/workflows/dbt_docs_update.yml
vendored
@ -72,11 +72,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git push -f --set-upstream origin docs
|
git push -f --set-upstream origin docs
|
||||||
|
|
||||||
- name: refresh endpoint
|
# - name: refresh endpoint
|
||||||
run: |
|
# run: |
|
||||||
curl -X POST ${{ secrets.DDM_REFRESH_CACHE_SBX }} \
|
# curl -X POST ${{ secrets.DDM_REFRESH_CACHE_SBX }} \
|
||||||
-H "Content-Type: application/json" \
|
# -H "Content-Type: application/json" \
|
||||||
-d '{"force": true, "resource_ids": ["near-models"]}'
|
# -d '{"force": true, "resource_ids": ["near-models"]}'
|
||||||
|
|
||||||
notify-failure:
|
notify-failure:
|
||||||
needs: [run_dbt_jobs]
|
needs: [run_dbt_jobs]
|
||||||
|
|||||||
@ -68,7 +68,10 @@ SELECT
|
|||||||
NULL
|
NULL
|
||||||
END AS segmented_data,
|
END AS segmented_data,
|
||||||
segmented_data :token_id AS token_contract_address,
|
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
|
'borrow' :: STRING AS actions
|
||||||
FROM
|
FROM
|
||||||
borrows
|
borrows
|
||||||
|
|||||||
@ -56,7 +56,8 @@ ft_mints_final AS (
|
|||||||
COALESCE(
|
COALESCE(
|
||||||
f.value :new_owner_id,
|
f.value :new_owner_id,
|
||||||
f.value :owner_id,
|
f.value :owner_id,
|
||||||
f.value :user_id
|
f.value :user_id,
|
||||||
|
f.value :accountId
|
||||||
) :: STRING AS to_address,
|
) :: STRING AS to_address,
|
||||||
f.value :amount :: STRING AS amount_unadj,
|
f.value :amount :: STRING AS amount_unadj,
|
||||||
f.value :memo :: STRING AS memo,
|
f.value :memo :: STRING AS memo,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user