defi__joshTotal Active Trading Pairs and Total Liquidity
    Updated 2025-04-28
    with pair_metrics as (
    select
    count(distinct p.pool) as total_pairs,
    sum(p.tvl_usd) as total_liquidity_usd
    from ton.defi.fact_dex_pools p
    where exists (
    select 1
    from ton.defi.fact_dex_trades t
    where t.pool_address = p.pool
    and t.project = 'ston.fi'
    )
    )

    select
    total_pairs as "Total Trading Pairs",
    round(total_liquidity_usd, 2) as "Total Liquidity (USD)"
    from pair_metrics;
    Last run: about 2 months ago
    Total Trading Pairs
    Total Liquidity (USD)
    1
    2190354570836459973
    1
    24B
    1s