Skip to content

Commit 394a349

Browse files
committed
feat: add base maintenance warning
1 parent 55f4972 commit 394a349

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ChainId } from '@kyberswap/ks-sdk-core'
12
import { t } from '@lingui/macro'
23
import { useCallback, useEffect, useState } from 'react'
34
import { useNavigate, useSearchParams } from 'react-router-dom'
@@ -58,6 +59,10 @@ const PoolExplorer = () => {
5859
const { data: poolData, isError } = usePoolsExplorerQuery(filters, { pollingInterval: POLLING_INTERVAL })
5960

6061
const upToLarge = useMedia(`(max-width: ${MEDIA_WIDTHS.upToLarge}px)`)
62+
// const nowMs = Date.now()
63+
// const MAINTENANCE_END_UTC_MS = Date.UTC(2025, 10, 20, 1, 0, 0) // 1:00 AM UTC, 20 Nov 2025
64+
// const MAINTENANCE_START_UTC_MS = MAINTENANCE_END_UTC_MS - 2 * 60 * 60 * 1000 // 2 hours before
65+
// const isWithinMaintenanceWindow = nowMs >= MAINTENANCE_START_UTC_MS && nowMs <= MAINTENANCE_END_UTC_MS
6166

6267
const onSortChange = (sortBy: string) => {
6368
if (!filters.sortBy || filters.sortBy !== sortBy) {
@@ -180,6 +185,12 @@ const PoolExplorer = () => {
180185
</div>
181186

182187
<Filter filters={filters} updateFilters={updateFilters} search={search} setSearch={setSearch} />
188+
{filters.chainId === ChainId.BASE && (
189+
<Text color={theme.subText} fontSize={12} fontStyle={'italic'}>
190+
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM UTC on
191+
20 Nov 2025 — thank you for your patience.
192+
</Text>
193+
)}
183194

184195
{upToLarge && (
185196
<NavigateButton

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ChainId } from '@kyberswap/ks-sdk-core'
12
import { Trans, t } from '@lingui/macro'
23
import { useEffect, useMemo, useRef, useState } from 'react'
34
import { useNavigate } from 'react-router-dom'
@@ -380,6 +381,13 @@ const UserPositions = () => {
380381
}}
381382
/>
382383

384+
{filters.chainIds?.split(',').includes(ChainId.BASE.toString()) && (
385+
<Text color={theme.subText} fontSize={12} fontStyle={'italic'}>
386+
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM UTC
387+
on 20 Nov 2025 — thank you for your patience.
388+
</Text>
389+
)}
390+
383391
<PositionTableWrapper>
384392
<ContentWrapper>
385393
{!upToCustomLarge && paginatedPositions && paginatedPositions.length > 0 && (

0 commit comments

Comments
 (0)