Skip to content

Commit

Permalink
[Stablecoin Dashboard] Adding ton stablecoin metrics to ez table (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 committed Sep 9, 2024
1 parent 08bebac commit 57c897a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions models/projects/ton/core/ez_ton_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,17 @@ with
dex_volumes
from {{ ref("fact_ton_dex_volumes") }}
),
stablecoin_data as ({{ get_stablecoin_metrics("ton") }}),
github_data as ({{ get_github_metrics("ton") }})
select
ton.date,
'ton' as chain,
transaction_nodes,
stablecoin_total_supply,
stablecoin_txns,
stablecoin_dau,
stablecoin_transfer_volume,
deduped_stablecoin_transfer_volume,
price,
market_cap,
fdmc,
Expand All @@ -59,4 +65,5 @@ left join defillama_data on ton.date = defillama_data.date
left join github_data on ton.date = github_data.date
left join dex_data on ton.date = dex_data.date
left join fundamental_data on ton.date = fundamental_data.date
left join stablecoin_data on ton.date = stablecoin_data.date
where ton.date < to_date(sysdate())

0 comments on commit 57c897a

Please sign in to comment.