|
1 | | -import { ChainId } from '@kyberswap/ks-sdk-core' |
2 | 1 | import { t } from '@lingui/macro' |
3 | 2 | import { useCallback, useEffect, useState } from 'react' |
4 | 3 | import { useNavigate, useSearchParams } from 'react-router-dom' |
@@ -53,8 +52,8 @@ export const BaseWarningWrapper = styled.div` |
53 | 52 |
|
54 | 53 | export const isWithinBaseMaintenanceWindow = () => { |
55 | 54 | 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 |
58 | 57 | return nowMs >= MAINTENANCE_START_UTC_MS && nowMs <= MAINTENANCE_END_UTC_MS |
59 | 58 | } |
60 | 59 |
|
@@ -197,11 +196,11 @@ const PoolExplorer = () => { |
197 | 196 | </div> |
198 | 197 |
|
199 | 198 | <Filter filters={filters} updateFilters={updateFilters} search={search} setSearch={setSearch} /> |
200 | | - {filters.chainId === ChainId.BASE && isWithinBaseMaintenanceWindow() && ( |
| 199 | + {isWithinBaseMaintenanceWindow() && ( |
201 | 200 | <BaseWarningWrapper> |
202 | 201 | <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. |
205 | 204 | </Text> |
206 | 205 | </BaseWarningWrapper> |
207 | 206 | )} |
|
0 commit comments