@@ -18,6 +18,7 @@ import {
1818import { useTranslations } from '@/lib/i18n'
1919import { useStats } from '@/hooks/use-stats'
2020import { useStatsHistory } from '@/hooks/use-stats-history'
21+ import { useNetwork } from '@/contexts/network-context'
2122import { computeSupplyInfo } from '@/lib/supply'
2223import { formatBytes , formatCompactNumber , formatNumber } from '@/lib/format'
2324import { DetailHeader } from '@/components/detail/detail-header'
@@ -41,10 +42,11 @@ const SUPPLY_BAR_GRADIENT = 'linear-gradient(90deg, hsl(var(--primary)), hsl(var
4142export function StatsContent ( ) {
4243 const t = useTranslations ( 'stats' )
4344 const common = useTranslations ( 'common' )
45+ const { currentNetwork } = useNetwork ( )
4446 const { data : stats , isLoading, isError, error, refetch, isFetching } = useStats ( )
45- const { data : statsHistory } = useStatsHistory ( )
47+ const { data : statsHistory } = useStatsHistory ( { network : currentNetwork } )
4648
47- // Per-metric background series from the sampled history. Series shorter than
49+ // Per-metric background series from the mainnet-only sampled history. Series shorter than
4850 // MIN_SPARK_POINTS are dropped so the tile renders clean (never a placeholder).
4951 const sparks = useMemo ( ( ) => {
5052 const points = statsHistory ?? [ ]
0 commit comments