Skip to content

Commit

Permalink
pause op (#2498)
Browse files Browse the repository at this point in the history
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
  • Loading branch information
trajan0x and trajan0x authored Apr 15, 2024
1 parent 4b39ac2 commit 11d34d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import { WarningMessage } from '../../../Warning'
*/

/** Banner start time */
const MAINTENANCE_BANNERS_START = new Date(Date.UTC(2024, 3, 11, 0, 0, 0))
const MAINTENANCE_BANNERS_START = new Date(Date.UTC(2024, 3, 15, 0, 0, 0))
/** Countdown Progress Bar, Bridge Warning Message + Bridge Pause start time */
const MAINTENANCE_START_DATE = new Date(Date.UTC(2024, 3, 11, 0, 0, 0))
const MAINTENANCE_START_DATE = new Date(Date.UTC(2024, 3, 15, 0, 0, 0))
/** Ends Banner, Countdown Progress Bar, Bridge Warning Message, Bridge Pause */
const MAINTENANCE_END_DATE = new Date(Date.UTC(2024, 3, 11, 20, 20, 0))
const MAINTENANCE_END_DATE = new Date(Date.UTC(2024, 3, 16, 20, 20, 0))

export const MaintenanceBanner = () => {
const { isComplete } = getCountdownTimeStatus(
Expand All @@ -35,7 +35,7 @@ export const MaintenanceBanner = () => {
bannerId="03262024-pause-blast-banner"
bannerContents={
<>
<p className="m-auto">Bridging on Metis is temporarily paused.</p>
<p className="m-auto">Bridging on Optimism is temporarily paused.</p>
</>
}
startDate={MAINTENANCE_BANNERS_START}
Expand All @@ -49,7 +49,7 @@ export const MaintenanceWarningMessage = () => {

const isWarningChain = isChainIncluded(
[fromChainId, toChainId],
[METIS.id] // Update for Chains to show warning on
[OPTIMISM.id] // Update for Chains to show warning on
)

const { isComplete } = getCountdownTimeStatus(
Expand All @@ -64,7 +64,7 @@ export const MaintenanceWarningMessage = () => {
<WarningMessage
message={
<>
<p>Bridging on Metis is temporarily paused.</p>
<p>Bridging on Optimism is temporarily paused.</p>
</>
}
/>
Expand All @@ -79,14 +79,14 @@ export const useMaintenanceCountdownProgress = () => {

const isCurrentChain = isChainIncluded(
[fromChainId, toChainId],
[METIS.id] // Update for Chains to show maintenance on
[OPTIMISM.id] // Update for Chains to show maintenance on
)

const {
isPending: isMaintenancePending,
EventCountdownProgressBar: MaintenanceCountdownProgressBar,
} = useEventCountdownProgressBar(
'Bridging on METIS paused.',
'Bridging on Optimism paused.',
MAINTENANCE_START_DATE, // Countdown Bar will automatically appear after start time
MAINTENANCE_END_DATE // Countdown Bar will automatically disappear when end time is reached
)
Expand Down
2 changes: 1 addition & 1 deletion services/cctp-relayer/external/synapse-contracts
Submodule synapse-contracts updated 353 files

0 comments on commit 11d34d7

Please sign in to comment.