Skip to content

Commit

Permalink
fix: temp block mainnet bridge (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 authored Jun 6, 2024
1 parent f6313b0 commit db633bf
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
26 changes: 25 additions & 1 deletion pages/bridge/index.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
<template>
<ModalTransactionDepositUnavailable />

<DepositView />
<div v-if="depositsDisabled">
<PageTitle>Bridge</PageTitle>
<CommonAlert variant="warning" :icon="ExclamationTriangleIcon" class="mb-block-gap">
<p>
Bridging to {{ eraNetwork.name }} is temporarily disabled because of undergoing upgrade, expected to be
completed by June 6th, 22:00 UTC. Please check back later. For more details, visit the
<a
href="https://github.com/zkSync-Community-Hub/zksync-developers/discussions/519"
target="_blank"
class="underline underline-offset-2"
>upgrade information page</a
>.
</p>
</CommonAlert>

<div class="mt-5 flex flex-wrap items-center justify-center gap-block-gap">
<CommonButton as="RouterLink" :to="{ name: 'assets' }" size="xs">Go to Assets page</CommonButton>
</div>
</div>
<DepositView v-else />
</template>

<script lang="ts" setup>
import { ExclamationTriangleIcon } from "@heroicons/vue/24/outline";
import { bridge as bridgeMeta } from "@/data/meta";
import DepositView from "@/views/transactions/Deposit.vue";
Expand All @@ -19,6 +40,9 @@ useSeoMeta({
twitterImageAlt: bridgeMeta.previewImg.alt,
twitterCard: "summary_large_image",
});
const { eraNetwork } = storeToRefs(useZkSyncProviderStore());
const depositsDisabled = computed(() => eraNetwork.value.key === "mainnet");
</script>

<style lang="scss" scoped></style>
13 changes: 9 additions & 4 deletions pages/bridge/withdraw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
<PageTitle>Bridge</PageTitle>
<CommonAlert variant="warning" :icon="ExclamationTriangleIcon" class="mb-block-gap">
<p>
{{ eraNetwork.name }} is going through an upgrade and withdrawals are disabled until it is finished (expected
May 7th 18h00 UTC). Please come back later.
Bridging from {{ eraNetwork.name }} is temporarily disabled because of undergoing upgrade, expected to be
completed by June 7th, 15:00 UTC. Please check back later. For more details, visit the
<a
href="https://github.com/zkSync-Community-Hub/zksync-developers/discussions/519"
target="_blank"
class="underline underline-offset-2"
>upgrade information page</a
>.
</p>
</CommonAlert>

<div class="mt-5 flex flex-wrap items-center justify-center gap-block-gap">
<CommonButton as="RouterLink" :to="{ name: 'assets' }" size="xs">Go to Assets page</CommonButton>
<CommonButton size="xs" as="RouterLink" :to="{ name: 'bridge' }">Bridge to {{ eraNetwork.name }}</CommonButton>
</div>
</div>
<TransferView v-else type="withdrawal" />
Expand All @@ -38,7 +43,7 @@ useSeoMeta({
});
const { eraNetwork } = storeToRefs(useZkSyncProviderStore());
const withdrawalsDisabled = computed(() => false);
const withdrawalsDisabled = computed(() => eraNetwork.value.key === "mainnet");
</script>

<style lang="scss" scoped></style>

0 comments on commit db633bf

Please sign in to comment.