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}