Skip to content

Commit

Permalink
Merge pull request #72 from Artemis-xyz/sm-update-p2p-models-p2
Browse files Browse the repository at this point in the history
Updaing p2p SOL models and Fixing synapse
  • Loading branch information
SebMelendez01 authored May 10, 2024
2 parents 9b6b1fc + 4bfb816 commit af6f62b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions macros/p2p/p2p_stablecoin_transfers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ with
= lower(fact_coingecko_token_date_adjusted_gold.coingecko_id)
and t1.date = fact_coingecko_token_date_adjusted_gold.date
{% if chain == "solana" %}
where block_timestamp > '2022-12-31' -- Prior to 2023, volumes data not high fidelity enough to report. Continuing to do analysis on this data.
where block_timestamp::date > '2022-12-31' -- Prior to 2023, volumes data not high fidelity enough to report. Continuing to do analysis on this data.
{% endif %}
{% if is_incremental() %}
{% if chain == "solana" %}
Expand Down Expand Up @@ -61,7 +61,7 @@ with
and lower(to_address) not in ('TMerfyf1KwvKeszfVoLH3PEJH52fC2DENq', '1nc1nerator11111111111111111111111111111111', 'system', '0x0000000000000000000000000000000000000000')
and lower(from_address) not in ('TMerfyf1KwvKeszfVoLH3PEJH52fC2DENq', '1nc1nerator11111111111111111111111111111111', 'system', '0x0000000000000000000000000000000000000000')
{% if chain == "solana" %}
and block_timestamp > '2022-12-31' -- Prior to 2023, volumes data not high fidelity enough to report. Continuing to do analysis on this data.
and block_timestamp::date > '2022-12-31' -- Prior to 2023, volumes data not high fidelity enough to report. Continuing to do analysis on this data.
{% endif %}
{% if is_incremental() %}
and block_timestamp >= (
Expand Down
3 changes: 2 additions & 1 deletion models/dimensions/dim_chain_ids.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ from
(1666600000, 'harmony'),
(56, 'bsc'),
(25, 'cronos'),
(81457, 'blast')
(81457, 'blast'),
(534352, 'scroll')
) as t(id, chain)
1 change: 0 additions & 1 deletion models/projects/solana/core/ez_solana_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ select
p2p_token_transfer_volume,
p2p_stablecoin_transfer_volume,
p2p_transfer_volume,
coalesce(deduped_stablecoin_transfer_volume, 0) - coalesce(p2p_stablecoin_transfer_volume, 0) as non_p2p_stablecoin_transfer_volume,
coalesce(dex_volumes, 0) + coalesce(nft_trading_volume, 0) + coalesce(p2p_transfer_volume, 0) as settlement_volume
from fundamental_usage
left join defillama_data on fundamental_usage.date = defillama_data.date
Expand Down

0 comments on commit af6f62b

Please sign in to comment.