Skip to content

Commit 5cfb941

Browse files
committed
feat: extend time for base maintenance
1 parent 583d47f commit 5cfb941

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

apps/kyberswap-interface/src/pages/Earns/PoolExplorer/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ChainId } from '@kyberswap/ks-sdk-core'
21
import { t } from '@lingui/macro'
32
import { useCallback, useEffect, useState } from 'react'
43
import { useNavigate, useSearchParams } from 'react-router-dom'
@@ -53,8 +52,8 @@ export const BaseWarningWrapper = styled.div`
5352

5453
export const isWithinBaseMaintenanceWindow = () => {
5554
const nowMs = Date.now()
56-
const MAINTENANCE_END_UTC_MS = Date.UTC(2025, 10, 20, 1, 0, 0) // 1:00 AM UTC, 20 Nov 2025
57-
const MAINTENANCE_START_UTC_MS = MAINTENANCE_END_UTC_MS - 2 * 60 * 60 * 1000 // 2 hours before
55+
const MAINTENANCE_END_UTC_MS = new Date('2025-11-20T04:00:00Z').getTime() // 4:00 AM UTC, 20 Nov 2025
56+
const MAINTENANCE_START_UTC_MS = MAINTENANCE_END_UTC_MS - 5 * 60 * 60 * 1000 // 5 hours before
5857
return nowMs >= MAINTENANCE_START_UTC_MS && nowMs <= MAINTENANCE_END_UTC_MS
5958
}
6059

@@ -197,11 +196,11 @@ const PoolExplorer = () => {
197196
</div>
198197

199198
<Filter filters={filters} updateFilters={updateFilters} search={search} setSearch={setSearch} />
200-
{filters.chainId === ChainId.BASE && isWithinBaseMaintenanceWindow() && (
199+
{isWithinBaseMaintenanceWindow() && (
201200
<BaseWarningWrapper>
202201
<Text color={theme.subText} fontSize={12} fontWeight={500} fontStyle={'italic'}>
203-
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM UTC
204-
on 20 Nov 2025 — thank you for your patience.
202+
Kyber Earn data on <b>Base</b> is being updated. This may take a moment and will be available again at 4:00
203+
AM UTC on 20 Nov 2025 — thank you for your patience.
205204
</Text>
206205
</BaseWarningWrapper>
207206
)}

apps/kyberswap-interface/src/pages/Earns/UserPositions/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ChainId } from '@kyberswap/ks-sdk-core'
21
import { Trans, t } from '@lingui/macro'
32
import { useEffect, useMemo, useRef, useState } from 'react'
43
import { useNavigate } from 'react-router-dom'
@@ -382,11 +381,11 @@ const UserPositions = () => {
382381
}}
383382
/>
384383

385-
{filters.chainIds?.split(',').includes(ChainId.BASE.toString()) && isWithinBaseMaintenanceWindow() && (
384+
{isWithinBaseMaintenanceWindow() && (
386385
<BaseWarningWrapper>
387386
<Text color={theme.subText} fontSize={12} fontWeight={500} fontStyle={'italic'}>
388-
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM
389-
UTC on 20 Nov 2025 — thank you for your patience.
387+
Kyber Earn data on <b>Base</b> is being updated. This may take a moment and will be available again at
388+
4:00 AM UTC on 20 Nov 2025 — thank you for your patience.
390389
</Text>
391390
</BaseWarningWrapper>
392391
)}

0 commit comments

Comments
 (0)