From fc3e030e2e6e5409fcd3e258377601cf6f14afd2 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 6 Nov 2026 17:29:28 -0700 Subject: [PATCH] Count protocol upgrades and completed years since launch --- src/components/landing/ProjectStats.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/landing/ProjectStats.tsx b/src/components/landing/ProjectStats.tsx index 068e3b6ae..060d2e842 100644 --- a/src/components/landing/ProjectStats.tsx +++ b/src/components/landing/ProjectStats.tsx @@ -21,6 +21,12 @@ interface StatContentProps { isMobile: boolean; } +function yearsSinceBeanstalkLaunch(today = new Date()) { + const year = today.getUTCFullYear(); + const anniversary = Date.UTC(year, 7, 6); + return year - 2021 - Number(today.getTime() < anniversary); +} + function StatContent({ activeButton, isMobile }: StatContentProps) { const contentRef = useRef(null); @@ -172,8 +178,7 @@ export default function ProjectStats() { - {/* Protocol Upgrades + Pinto Launch (+1)*/} - {PROTOCOL_UPGRADES.length + 1} + {PROTOCOL_UPGRADES.length}