diff --git a/ultrasound/ui/components/SupplyChangeStats.tsx b/ultrasound/ui/components/SupplyChangeStats.tsx index ab91b7a37..ea292c1c4 100644 --- a/ultrasound/ui/components/SupplyChangeStats.tsx +++ b/ultrasound/ui/components/SupplyChangeStats.tsx @@ -60,7 +60,7 @@ export function SupplyChangeStats() { Burnt - {events?.totalBurned} SNX + {events ? events[selectedTime] : 0} SNX diff --git a/ultrasound/ui/hooks/useBurnEvents.ts b/ultrasound/ui/hooks/useBurnEvents.ts index 74e77baac..362129457 100644 --- a/ultrasound/ui/hooks/useBurnEvents.ts +++ b/ultrasound/ui/hooks/useBurnEvents.ts @@ -35,8 +35,7 @@ export function useBurnEvents() { const supplyChange7Days = events .filter((event) => event.ts > now.getTime()) - .reduce((cur, prev) => cur + prev.snxAmount, 0) - .toLocaleString(); + .reduce((cur, prev) => cur + prev.snxAmount, 0); const SNXPriceResponse = await fetch( 'https://coins.llama.fi/prices/current/ethereum:0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F' @@ -89,8 +88,12 @@ export function useBurnEvents() { }), groupedByMonths, groupedByLast30Days, - supplyChange7Days, + supplyChange7Days: supplyChange7Days.toLocaleString('en-US', { + minimumFractionDigits: 2, + maximumFractionDigits: 2, + }), totalSupply: currentSupply.toLocaleString('en-US', { + minimumFractionDigits: 2, maximumFractionDigits: 2, }), SNXPrice: