diff --git a/src/locales/default.json b/src/locales/default.json index a30129f64..bbb9ba2b9 100644 --- a/src/locales/default.json +++ b/src/locales/default.json @@ -649,7 +649,6 @@ "confirmVoteResults": "Click to confirm the proposal passed", "executeTxsUma": "Execute transaction batch", "deleteDisputedProposal": "Delete disputed proposal", - "deleteRejectedProposal": "Delete rejected proposal", "confirmVoteResultsToolTip": "Make sure this proposal was approved by this Snapshot vote before proposing on-chain. If the Snapshot vote rejected the proposal, the on-chain proposal will be rejected as well and you will lose your bond.", "approveBondToolTip": "On-chain proposals require a bond from the proposer. This will approve tokens from your wallet to be posted as a bond. If you make an invalid proposal, it will be disputed and you will lose your bond. If the proposal is valid, your bond will be returned when the transactions are executed.", "requestToolTip": "This will propose the transactions from this Snapshot vote on-chain. After a challenge window, if the proposal is valid, the transactions can be executed and your bond will be returned.", diff --git a/src/plugins/safeSnap/components/HandleOutcomeUma.vue b/src/plugins/safeSnap/components/HandleOutcomeUma.vue index 2ea944400..15be3a10f 100644 --- a/src/plugins/safeSnap/components/HandleOutcomeUma.vue +++ b/src/plugins/safeSnap/components/HandleOutcomeUma.vue @@ -37,11 +37,10 @@ const QuestionStates = { waitingForVoteConfirmation: 2, noTransactions: 3, completelyExecuted: 4, - proposalRejected: 5, - disputedButNotResolved: 6, - waitingForProposal: 7, - waitingForLiveness: 8, - proposalApproved: 9 + disputedButNotResolved: 5, + waitingForProposal: 6, + waitingForLiveness: 7, + proposalApproved: 8 }; Object.freeze(QuestionStates); @@ -249,38 +248,6 @@ const deleteDisputedProposal = async () => { } }; -const deleteRejectedProposal = async () => { - if (!getInstance().isAuthenticated.value) return; - action2InProgress.value = 'delete-rejected-proposal'; - try { - await ensureRightNetwork(props.network); - } catch (e) { - console.error(e); - action2InProgress.value = null; - return; - } - - try { - clearBatchError(); - const deletingRejectedProposal = plugin.deleteRejectedProposal( - getInstance().web3, - props.umaAddress, - questionDetails.value.proposalEvent.proposalHash - ); - await deletingRejectedProposal.next(); - action2InProgress.value = null; - pendingCount.value++; - await deletingRejectedProposal.next(); - notify(t('notify.youDidIt')); - pendingCount.value--; - await sleep(3e3); - await updateDetails(); - } catch (err) { - pendingCount.value--; - action2InProgress.value = null; - } -}; - const usingMetaMask = computed(() => { return window.ethereum && getInstance().provider.value?.isMetaMask; }); @@ -318,8 +285,6 @@ const questionState = computed(() => { if (!activeProposal && voteResultsConfirmed) return QuestionStates.waitingForProposal; - // Proposal can be deleted if it has been rejected. - if (proposalEvent.isRejected) return QuestionStates.proposalRejected; // If disputed, a proposal can be deleted to enable a proposal to be proposed again. if (proposalEvent.isDisputed) return QuestionStates.disputedButNotResolved; @@ -464,15 +429,6 @@ onMounted(async () => { -