Skip to content

Commit

Permalink
Use tokens_erc20_legacy for legacy version
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofilipenunes committed Jul 31, 2023
1 parent 9886360 commit 0a7ded0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ INNER JOIN {{ source('ethereum', 'transactions') }} tx
{% if is_incremental() %}
AND tx.block_time >= date_trunc('day', now() - interval '7' day)
{% endif %}
LEFT JOIN {{ ref('tokens_erc20') }} erc20a
LEFT JOIN {{ ref('tokens_erc20_legacy') }} erc20a
ON erc20a.contract_address = dexs.token_bought_address
AND erc20a.blockchain = 'ethereum'
LEFT JOIN {{ ref('tokens_erc20') }} erc20b
LEFT JOIN {{ ref('tokens_erc20_legacy') }} erc20b
ON erc20b.contract_address = dexs.token_sold_address
AND erc20b.blockchain = 'ethereum'
LEFT JOIN {{ source('prices', 'usd') }} p_bought
Expand Down

0 comments on commit 0a7ded0

Please sign in to comment.