Skip to content

Commit

Permalink
fix: temporarily disable withdrawals on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed May 6, 2024
1 parent 3ead65f commit e4adadb
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions pages/bridge/withdraw.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
<template>
<ModalTransactionWithdrawalUnavailable />

<TransferView type="withdrawal">
<template #title>
<PageTitle>Bridge</PageTitle>
</template>
</TransferView>
<div v-if="withdrawalsDisabled">
<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 6th 18h00 UTC). Please come back later.
</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" />
</template>

<script lang="ts" setup>
import { ExclamationTriangleIcon } from "@heroicons/vue/24/outline";
import { bridge as bridgeMeta } from "@/data/meta";
import { useZkSyncProviderStore } from "@/store/zksync/provider";
import TransferView from "@/views/transactions/Transfer.vue";
useSeoMeta({
Expand All @@ -23,6 +36,9 @@ useSeoMeta({
twitterImage: bridgeMeta.previewImg.src,
twitterImageAlt: bridgeMeta.previewImg.alt,
});
const { eraNetwork } = storeToRefs(useZkSyncProviderStore());
const withdrawalsDisabled = computed(() => eraNetwork.value.key === "sepolia");
</script>

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

0 comments on commit e4adadb

Please sign in to comment.