Skip to content

Commit

Permalink
Updated trades file according to token-subproject changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ARDev097 committed Jan 31, 2024
1 parent 652cd83 commit 977a1ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions models/odos/optimism/odos_v1_optimism_trades.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ INNER JOIN {{ source('optimism', 'transactions') }} tx
{% else %}
AND {{ incremental_predicate('tx.block_time') }}
{% endif %}
LEFT JOIN {{ ref('tokens_erc20') }} erc20a
LEFT JOIN {{ source('tokens', 'erc20') }} erc20a
ON CAST(erc20a.contract_address AS varchar) = dexs.token_bought_address
AND erc20a.blockchain = 'optimism'
LEFT JOIN {{ ref('tokens_erc20') }} erc20b
LEFT JOIN {{ source('tokens', 'erc20') }} erc20b
ON erc20b.contract_address = dexs.token_sold_address
AND erc20b.blockchain = 'optimism'
LEFT JOIN {{ source('prices', 'usd') }} p_bought
Expand Down
4 changes: 2 additions & 2 deletions models/odos/optimism/odos_v2_optimism_trades.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ INNER JOIN {{ source('optimism', 'transactions') }} tx
{% else %}
AND {{ incremental_predicate('tx.block_time') }}
{% endif %}
LEFT JOIN {{ ref('tokens_erc20') }} erc20a
LEFT JOIN {{ source('tokens', 'erc20') }} erc20a
ON erc20a.contract_address = dexs.token_bought_address
AND erc20a.blockchain = 'optimism'
LEFT JOIN {{ ref('tokens_erc20') }} erc20b
LEFT JOIN {{ source('tokens', 'erc20') }} erc20b
ON erc20b.contract_address = dexs.token_sold_address
AND erc20b.blockchain = 'optimism'
LEFT JOIN {{ source('prices', 'usd') }} p_bought
Expand Down

0 comments on commit 977a1ad

Please sign in to comment.