Skip to content

Commit

Permalink
fix CI build: declare and employ source for prices.usd
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshchur committed Dec 22, 2024
1 parent 6983e40 commit af37a27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ SELECT
d.price * CAST (w.dest_amount AS uint256) / POWER(10, d.decimals) AS dest_token_order_usd

FROM safe_settle_batch_swap_withUSDs w
LEFT JOIN prices.usd d
LEFT JOIN {{ source('prices', 'usd') }} d
ON d.blockchain = '{{blockchain}}'
AND d.minute > TIMESTAMP '2024-06-01'
{% if is_incremental() %}
AND {{ incremental_predicate('d.minute') }}
{% endif %}
AND d.contract_address = w.dest_token_for_joining
AND d.minute = DATE_TRUNC('minute', w.call_block_time)
LEFT JOIN prices.usd s
LEFT JOIN {{ source('prices', 'usd') }} s
ON s.blockchain = '{{blockchain}}'
AND s.minute > TIMESTAMP '2024-06-01'
{% if is_incremental() %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ SELECT
d.price * CAST (w.dest_amount AS uint256) / POWER(10, d.decimals) AS dest_token_order_usd

FROM settle_swap_withUSDs w
LEFT JOIN prices.usd d
LEFT JOIN {{ source('prices', 'usd') }} d
ON d.blockchain = '{{blockchain}}'
AND d.minute > TIMESTAMP '2024-06-01'
{% if is_incremental() %}
AND {{ incremental_predicate('d.minute') }}
{% endif %}
AND d.contract_address = w.dest_token_for_joining
AND d.minute = DATE_TRUNC('minute', w.call_block_time)
LEFT JOIN prices.usd s
LEFT JOIN {{ source('prices', 'usd') }} s
ON s.blockchain = '{{blockchain}}'
AND s.minute > TIMESTAMP '2024-06-01'
{% if is_incremental() %}
Expand Down

0 comments on commit af37a27

Please sign in to comment.