Skip to content

Commit

Permalink
disable claim before 8.29
Browse files Browse the repository at this point in the history
  • Loading branch information
MickWang committed Aug 24, 2024
1 parent 83064d0 commit d04b209
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions views/transactions/WithdrawalSubmitted.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</p>
<template v-if="withdrawalManualFinalizationRequired">
<CommonAlert
v-if="withdrawalFinalizationAvailable"
v-if="withdrawalFinalizationAvailable && is829Passed"
variant="warning"
:icon="ExclamationTriangleIcon"
class="mb-4"
Expand Down Expand Up @@ -62,7 +62,7 @@
"
:is-withdraw="true"
>
<template #to-button v-if="withdrawalFinalizationAvailable">
<template #to-button v-if="withdrawalFinalizationAvailable && is829Passed">
<template v-if="!(network.chain?.id === getNetworkInfo().l1Network?.id)">
<CommonButton
size="xs"
Expand Down Expand Up @@ -91,7 +91,7 @@
</CommonButton>
</template>
</TransactionProgress>
<CommonHeightTransition :opened="withdrawalFinalizationAvailable">
<CommonHeightTransition :opened="withdrawalFinalizationAvailable && is829Passed">
<div>
<CommonErrorBlock v-if="feeError" class="mt-2" @try-again="estimate">
Fee estimation error: {{ feeError.message }}
Expand Down Expand Up @@ -227,6 +227,11 @@ const displayEstimateWithdrawTime = computed(() => {
return getEstimateWithdrawalDelayDays(props.transaction.timestamp);
});
const is829Passed = computed(() => {
const time829 = 1724889600000;
return Date.now() > time829;
});
const {
feeToken,
totalFee: fee,
Expand Down

0 comments on commit d04b209

Please sign in to comment.