Skip to content

Commit

Permalink
Stablecoins: Ton and Artemis Filter (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Sep 9, 2024
1 parent 5cd6f1c commit 3fd090a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
23 changes: 6 additions & 17 deletions macros/stablecoins/stablecoin_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -170,23 +170,12 @@
select
date
, from_address
-- There is currently an issue with ton data
-- In order to fix this in the short term we need to remove all tags.
{% if chain == 'ton' %}
, null as contract_name
, null as contract
, null as application
, null as icon
, null as app
, null as category
{% else %}
, contract_name
, contract
, application
, icon
, app
, category
{% endif %}
, contract_name
, contract
, application
, icon
, app
, category

, is_wallet

Expand Down
2 changes: 1 addition & 1 deletion macros/stablecoins/stablecoin_metrics_artemis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with
from stablecoin_transfers st
left join filtered_contracts dl on lower(st.from_address) = lower(dl.address)
left join filtered_contracts dlt on lower(st.to_address) = lower(dlt.address)
where lower(from_app) != 'mev' or lower(to_app) != 'mev'
where lower(from_app) != 'mev' and lower(to_app) != 'mev'
),
artemis_cex_filters as (
select distinct tx_hash
Expand Down

0 comments on commit 3fd090a

Please sign in to comment.