Skip to content

Commit 02a43c1

Browse files
authored
update: remove base maintenance (#2900)
1 parent 2aef486 commit 02a43c1

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useNavigate, useSearchParams } from 'react-router-dom'
44
import { useMedia } from 'react-use'
55
import { Flex, Text } from 'rebass'
66
import { usePoolsExplorerQuery } from 'services/zapEarn'
7-
import styled from 'styled-components'
87

98
import { ReactComponent as IconUserEarnPosition } from 'assets/svg/earn/ic_user_earn_position.svg'
109
import { NotificationType } from 'components/Announcement/type'
@@ -42,21 +41,6 @@ export enum SortBy {
4241
const POLLING_INTERVAL = 5 * 60_000
4342
const DEBOUNCE_DELAY = 300
4443

45-
export const BaseWarningWrapper = styled.div`
46-
border-radius: 40px;
47-
padding: 6px 12px;
48-
background-color: ${({ theme }) => theme.background};
49-
width: fit-content;
50-
margin: 0 auto;
51-
`
52-
53-
export const isWithinBaseMaintenanceWindow = () => {
54-
const nowMs = Date.now()
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
57-
return nowMs >= MAINTENANCE_START_UTC_MS && nowMs <= MAINTENANCE_END_UTC_MS
58-
}
59-
6044
const PoolExplorer = () => {
6145
const [search, setSearch] = useState('')
6246
const deboundedSearch = useDebounce(search, DEBOUNCE_DELAY)
@@ -196,14 +180,6 @@ const PoolExplorer = () => {
196180
</div>
197181

198182
<Filter filters={filters} updateFilters={updateFilters} search={search} setSearch={setSearch} />
199-
{isWithinBaseMaintenanceWindow() && (
200-
<BaseWarningWrapper>
201-
<Text color={theme.subText} fontSize={12} fontWeight={500} fontStyle={'italic'}>
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.
204-
</Text>
205-
</BaseWarningWrapper>
206-
)}
207183

208184
{upToLarge && (
209185
<NavigateButton

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import Pagination from 'components/Pagination'
1313
import { APP_PATHS } from 'constants/index'
1414
import { useActiveWeb3React } from 'hooks'
1515
import useTheme from 'hooks/useTheme'
16-
import { BaseWarningWrapper, isWithinBaseMaintenanceWindow } from 'pages/Earns/PoolExplorer'
1716
import { ContentWrapper, Disclaimer, NavigateButton } from 'pages/Earns/PoolExplorer/styles'
1817
import { IconArrowLeft } from 'pages/Earns/PositionDetail/styles'
1918
import Filter from 'pages/Earns/UserPositions/Filter'
@@ -381,15 +380,6 @@ const UserPositions = () => {
381380
}}
382381
/>
383382

384-
{isWithinBaseMaintenanceWindow() && (
385-
<BaseWarningWrapper>
386-
<Text color={theme.subText} fontSize={12} fontWeight={500} fontStyle={'italic'}>
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.
389-
</Text>
390-
</BaseWarningWrapper>
391-
)}
392-
393383
<PositionTableWrapper>
394384
<ContentWrapper>
395385
{!upToCustomLarge && paginatedPositions && paginatedPositions.length > 0 && (

0 commit comments

Comments
 (0)