From 2d3f6ce79a85a786b88497db781e565b83c44563 Mon Sep 17 00:00:00 2001 From: Viki Val Date: Wed, 24 Jan 2024 19:12:52 +0100 Subject: [PATCH 1/2] :ambulance: max on XCM results in loss of funds --- components/teleport/Teleport.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/teleport/Teleport.vue b/components/teleport/Teleport.vue index b125d3df0e..82d93057fc 100644 --- a/components/teleport/Teleport.vue +++ b/components/teleport/Teleport.vue @@ -94,14 +94,14 @@ }) }}{{ currency }} - {{ $t('teleport.max') }} + > --> @@ -438,7 +438,7 @@ const isDisabledButton = computed(() => { ) }) -const handleMaxClick = () => { +const _handleMaxClick = () => { amount.value = myBalance.value } From 25830159acbfdae18a36d5ae877a26498182092e Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 25 Jan 2024 18:05:43 +0100 Subject: [PATCH 2/2] :mute: handleMaxClick is not used --- components/teleport/Teleport.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/teleport/Teleport.vue b/components/teleport/Teleport.vue index 82d93057fc..f97df6d301 100644 --- a/components/teleport/Teleport.vue +++ b/components/teleport/Teleport.vue @@ -438,9 +438,9 @@ const isDisabledButton = computed(() => { ) }) -const _handleMaxClick = () => { - amount.value = myBalance.value -} +// const handleMaxClick = () => { +// amount.value = myBalance.value +// } const checkEDBeforeTeleport = () => { if (showEDWarning.value) {