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: temporarily disable deposits #157

Merged
merged 1 commit into from
Jan 29, 2024
Merged
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
29 changes: 28 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,38 @@
<template>
<ModalTransactionDepositUnavailable />

<DepositView />
<div v-if="depositDisabled">
<PageTitle>Bridge</PageTitle>
<CommonAlert variant="warning" :icon="ExclamationTriangleIcon" class="mb-block-gap">
<p>
We are updating our systems. To prevent any inconveniences, bridging to
{{ eraNetwork.name }} is temporarily disabled. Please check back in 15-30 minutes.
</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: 'withdraw' }">
Bridge to {{ destinations.ethereum.label }}
</CommonButton>
</div>
</div>
<DepositView v-else />
</template>

<script lang="ts" setup>
import { computed } from "vue";

import { ExclamationTriangleIcon } from "@heroicons/vue/24/outline";
import { storeToRefs } from "pinia";

import { useDestinationsStore } from "@/store/destinations";
import { useZkSyncProviderStore } from "@/store/zksync/provider";
import DepositView from "@/views/transactions/Deposit.vue";

const { destinations } = storeToRefs(useDestinationsStore());
const { eraNetwork } = storeToRefs(useZkSyncProviderStore());
const depositDisabled = computed(() => eraNetwork.value.key === "mainnet");
</script>

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