From c7d0411fe57d43f55fabe05f5d92acb051448c77 Mon Sep 17 00:00:00 2001 From: Nathan <70660308+notaroomba@users.noreply.github.com> Date: Thu, 19 Feb 2026 14:52:00 -0500 Subject: [PATCH] Update +page.svelte --- frontend/src/routes/admin/+page.svelte | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/admin/+page.svelte b/frontend/src/routes/admin/+page.svelte index 6692378..851cd20 100644 --- a/frontend/src/routes/admin/+page.svelte +++ b/frontend/src/routes/admin/+page.svelte @@ -20,6 +20,11 @@ import { API_URL } from '$lib/config'; import { t } from '$lib/i18n'; + const PHI = (1 + Math.sqrt(5)) / 2; + const SCRAPS_PER_HOUR = PHI * 10; + const DOLLARS_PER_HOUR = 4; + const SCRAPS_PER_DOLLAR = SCRAPS_PER_HOUR / DOLLARS_PER_HOUR; + interface ShopStats { totalScrapsSpent: number; shopPurchases: number; @@ -395,9 +400,9 @@
cost per hour
- {stats.shopStats.costPerHour.toLocaleString()} + ${(stats.shopStats.costPerHour / SCRAPS_PER_DOLLAR).toFixed(2)}
-scraps spent ÷ shipped hours
+scraps spent ÷ shipped hours (in USD)