Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: temp block mainnet bridge #180

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading