1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Remove a notification for falling back from STX to regular swaps (#17374)

This commit is contained in:
Daniel 2023-01-25 20:01:10 +01:00 committed by GitHub
parent ed75dabe57
commit a4f968b423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 4 additions and 348 deletions

View File

@ -3589,12 +3589,6 @@
"message": "Plötzliche Marktveränderungen können zu Ausfällen führen. Wenn das Problem weiterhin besteht, wenden Sie sich bitte an $1.", "message": "Plötzliche Marktveränderungen können zu Ausfällen führen. Wenn das Problem weiterhin besteht, wenden Sie sich bitte an $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Intelligente Transaktionen sind vorübergehend nicht verfügbar, weil Sie eine ausstehende Transaktion haben."
},
"stxFallbackUnavailable": {
"message": "Sie können Ihre Token immer noch tauschen, selbst während intelligente Transaktionen nicht verfügbar sind."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Ihr Swap wird privat eingereicht ..." "message": "Ihr Swap wird privat eingereicht ..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Simulieren Sie Transaktionen vor der Übermittlung, um die Transaktionskosten zu senken und Ausfälle zu vermeiden." "message": "Simulieren Sie Transaktionen vor der Übermittlung, um die Transaktionskosten zu senken und Ausfälle zu vermeiden."
}, },
"stxTryRegular": {
"message": "Versuchen Sie einen normalen Swap."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Es wird versucht, Ihre Transaktion abzubrechen ..." "message": "Es wird versucht, Ihre Transaktion abzubrechen ..."
}, },
"stxUnavailable": {
"message": "Intelligente Transaktionen sind deaktiviert"
},
"stxUnknown": { "stxUnknown": {
"message": "Status unbekannt" "message": "Status unbekannt"
}, },
@ -3678,10 +3666,6 @@
"message": "Sie benötigen $1 mehr $2, um diesen Swap abzuschließen", "message": "Sie benötigen $1 mehr $2, um diesen Swap abzuschließen",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Sie benötigen mehr als $1, um diesen Swap mit Hilfe intelligenter Transaktionen durchzuführen.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Die besten $1 Kurse.", "message": "Die besten $1 Kurse.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Οι ξαφνικές μεταβολές της αγοράς ενδέχεται να προκαλέσουν αποτυχίες. Εάν το πρόβλημα επιμένει, παρακαλούμε επικοινωνήστε με το $1.", "message": "Οι ξαφνικές μεταβολές της αγοράς ενδέχεται να προκαλέσουν αποτυχίες. Εάν το πρόβλημα επιμένει, παρακαλούμε επικοινωνήστε με το $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Οι Έξυπνες Συναλλαγές είναι προσωρινά μη διαθέσιμες, επειδή έχετε μια συναλλαγή που εκκρεμεί."
},
"stxFallbackUnavailable": {
"message": "Μπορείτε να ανταλλάξετε ακόμα τα token σας, ακόμα και αν οι Έξυπνες Συναλλαγές δεν είναι διαθέσιμες."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Ιδιωτική υποβολή της Ανταλλαγής σας..." "message": "Ιδιωτική υποβολή της Ανταλλαγής σας..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Προσομοίωση συναλλαγών πριν από την υποβολή για μείωση του κόστους συναλλαγής και των αποτυχιών." "message": "Προσομοίωση συναλλαγών πριν από την υποβολή για μείωση του κόστους συναλλαγής και των αποτυχιών."
}, },
"stxTryRegular": {
"message": "Δοκιμάστε μια κανονική ανταλλαγή."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Γίνεται προσπάθεια ακύρωσης της συναλλαγής σας..." "message": "Γίνεται προσπάθεια ακύρωσης της συναλλαγής σας..."
}, },
"stxUnavailable": {
"message": "Οι Έξυπνες Συναλλαγές είναι απενεργοποιημένες"
},
"stxUnknown": { "stxUnknown": {
"message": "Άγνωστη κατάσταση" "message": "Άγνωστη κατάσταση"
}, },
@ -3678,10 +3666,6 @@
"message": "Χρειάζεστε $1 περισσότερα $2 για να ολοκληρώσετε αυτήν την ανταλλαγή", "message": "Χρειάζεστε $1 περισσότερα $2 για να ολοκληρώσετε αυτήν την ανταλλαγή",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Χρειάζεστε περισσότερα $1 για να ολοκληρώσετε αυτήν την ανταλλαγή χρησιμοποιώντας τη λειτουργία των έξυπνων συναλλαγών.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Το καλύτερο από $1 προσφορές.", "message": "Το καλύτερο από $1 προσφορές.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3627,12 +3627,6 @@
"message": "Sudden market changes can cause failures. If the problem persists, please reach out to $1.", "message": "Sudden market changes can cause failures. If the problem persists, please reach out to $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Smart Transactions are temporarily unavailable because you have a pending transaction."
},
"stxFallbackUnavailable": {
"message": "You can still swap your tokens even while Smart Transactions are unavailable."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Privately submitting your Swap..." "message": "Privately submitting your Swap..."
}, },
@ -3656,15 +3650,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Simulate transactions before submitting to decrease transaction costs and reduce failures." "message": "Simulate transactions before submitting to decrease transaction costs and reduce failures."
}, },
"stxTryRegular": {
"message": "Try a regular swap."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Trying to cancel your transaction..." "message": "Trying to cancel your transaction..."
}, },
"stxUnavailable": {
"message": "Smart Transactions are disabled"
},
"stxUnknown": { "stxUnknown": {
"message": "Status unknown" "message": "Status unknown"
}, },
@ -3716,10 +3704,6 @@
"message": "You need $1 more $2 to complete this swap", "message": "You need $1 more $2 to complete this swap",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "You need more $1 to complete this swap using smart transactions.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Best of $1 quotes.", "message": "Best of $1 quotes.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Los cambios repentinos del mercado pueden causar fallas. Si el problema persiste, comuníquese con $1.", "message": "Los cambios repentinos del mercado pueden causar fallas. Si el problema persiste, comuníquese con $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Las transacciones inteligentes no están disponibles temporalmente porque tiene una transacción pendiente."
},
"stxFallbackUnavailable": {
"message": "Todavía puede intercambiar sus tokens incluso cuando las transacciones inteligentes no están disponibles."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Enviando su swap de forma privada..." "message": "Enviando su swap de forma privada..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Simule transacciones antes de enviarlas para disminuir los costos de transacción y reducir las fallas." "message": "Simule transacciones antes de enviarlas para disminuir los costos de transacción y reducir las fallas."
}, },
"stxTryRegular": {
"message": "Pruebe con un swap regular."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Intentando cancelar su transacción..." "message": "Intentando cancelar su transacción..."
}, },
"stxUnavailable": {
"message": "Las transacciones inteligentes están deshabilitadas"
},
"stxUnknown": { "stxUnknown": {
"message": "Estado desconocido" "message": "Estado desconocido"
}, },
@ -3678,10 +3666,6 @@
"message": "Necesita $1 más $2 para completar este canje", "message": "Necesita $1 más $2 para completar este canje",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Necesita más $1 para finalizar este swap mediante transacciones inteligentes.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Mejor cotización de $1.", "message": "Mejor cotización de $1.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Les fluctuations soudaines du marché peuvent provoquer des échecs. Si le problème persiste, veuillez contacter $1.", "message": "Les fluctuations soudaines du marché peuvent provoquer des échecs. Si le problème persiste, veuillez contacter $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Les transactions intelligentes sont temporairement indisponibles parce que vous avez une transaction en attente."
},
"stxFallbackUnavailable": {
"message": "Vous pouvez toujours faire un swap de tokens, même si les transactions intelligentes ne sont pas disponibles."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Soumission privée de votre Swap..." "message": "Soumission privée de votre Swap..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Simulez les transactions avant de les soumettre pour réduire les coûts et les échecs de transaction." "message": "Simulez les transactions avant de les soumettre pour réduire les coûts et les échecs de transaction."
}, },
"stxTryRegular": {
"message": "Essayez un swap normal."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Tentative dannulation de votre transaction..." "message": "Tentative dannulation de votre transaction..."
}, },
"stxUnavailable": {
"message": "Transactions intelligentes désactivées"
},
"stxUnknown": { "stxUnknown": {
"message": "État inconnu" "message": "État inconnu"
}, },
@ -3678,10 +3666,6 @@
"message": "Vous avez besoin de $1 $2 de plus pour effectuer ce swap", "message": "Vous avez besoin de $1 $2 de plus pour effectuer ce swap",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Vous avez besoin de plus de $1 pour effectuer cet échange en utilisant des transactions intelligentes.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Meilleures cotations de $1.", "message": "Meilleures cotations de $1.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "मार्केट के आकस्मिक बदलावों के कारण विफलताएं हो सकती हैं। अगर समस्या जारी रहती है, तो कृपया $1 से संपर्क करें।", "message": "मार्केट के आकस्मिक बदलावों के कारण विफलताएं हो सकती हैं। अगर समस्या जारी रहती है, तो कृपया $1 से संपर्क करें।",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "स्मार्ट लेनदेन अस्थायी रूप से अनुपलब्ध हैं क्योंकि आपके पास एक लंबित लेनदेन है।"
},
"stxFallbackUnavailable": {
"message": "स्मार्ट लेनदेन अनुपलब्ध होने पर भी आप अपने टोकनों को स्वैप कर सकते हैं।"
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "आपका स्वैप निजी रूप से सबमिट किया जा रहा है..." "message": "आपका स्वैप निजी रूप से सबमिट किया जा रहा है..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "लेनदेन की लागतें घटाने और विफलताओं को कम करने के लिए सबमिट करने से पहले लेनदेन को सिम्युलेट करें।" "message": "लेनदेन की लागतें घटाने और विफलताओं को कम करने के लिए सबमिट करने से पहले लेनदेन को सिम्युलेट करें।"
}, },
"stxTryRegular": {
"message": "नियमित स्वैप का प्रयास करें।"
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "अपके लेनदेन को रद्द करने का प्रयास कर रहा है..." "message": "अपके लेनदेन को रद्द करने का प्रयास कर रहा है..."
}, },
"stxUnavailable": {
"message": "स्मार्ट लेनदेन अक्षम किए गए हैं"
},
"stxUnknown": { "stxUnknown": {
"message": "स्टेटस अज्ञात" "message": "स्टेटस अज्ञात"
}, },
@ -3678,10 +3666,6 @@
"message": "इस स्वैप को पूरा करने के लिए आपको अधिक $1 और $2 की आवश्यकता होगी", "message": "इस स्वैप को पूरा करने के लिए आपको अधिक $1 और $2 की आवश्यकता होगी",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "आपको और $1 चाहिए होगा ताकि इस स्वैप को स्मार्ट लेनदेन का इस्तेमाल करते हुए पूरा कर सके।",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "$1 उद्धरणों में से सर्वश्रेष्ठ।", "message": "$1 उद्धरणों में से सर्वश्रेष्ठ।",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Perubahan pasar yang terjadi secara tiba-tiba dapat menyebabkan kegagalan. Jika masalah berlanjut, hubungi $1.", "message": "Perubahan pasar yang terjadi secara tiba-tiba dapat menyebabkan kegagalan. Jika masalah berlanjut, hubungi $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Transaksi Pintar tidak tersedia untuk sementara waktu karena Anda memiliki transaksi yang tertunda."
},
"stxFallbackUnavailable": {
"message": "Anda masih bisa menukar token meskipun Transaksi Pintar tidak tersedia."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Kirimkan Swap Anda secara pribadi..." "message": "Kirimkan Swap Anda secara pribadi..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Simulasikan transaksi sebelum dikirim untuk mengurangi biaya transaksi dan mengurangi kegagalan." "message": "Simulasikan transaksi sebelum dikirim untuk mengurangi biaya transaksi dan mengurangi kegagalan."
}, },
"stxTryRegular": {
"message": "Coba pertukaran biasa."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Mencoba membatalkan transaksi Anda..." "message": "Mencoba membatalkan transaksi Anda..."
}, },
"stxUnavailable": {
"message": "Transaksi Pintar dinonaktifkan"
},
"stxUnknown": { "stxUnknown": {
"message": "Status tidak diketahui" "message": "Status tidak diketahui"
}, },
@ -3678,10 +3666,6 @@
"message": "Anda memerlukan $1 $2 lagi untuk menyelesaikan swap", "message": "Anda memerlukan $1 $2 lagi untuk menyelesaikan swap",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Anda memerlukan lebih banyak $1 untuk menyelesaikan pertukaran ini menggunakan transaksi pintar.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Kuotasi terbaik dari $1.", "message": "Kuotasi terbaik dari $1.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "突然の市場変動が失敗の原因になります。問題が解決されないようでしたら、$1 にお問い合わせください。", "message": "突然の市場変動が失敗の原因になります。問題が解決されないようでしたら、$1 にお問い合わせください。",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "保留中のトランザクションがあるため、スマートトランザクションは一時的に利用できません。"
},
"stxFallbackUnavailable": {
"message": "スマートトランザクションが利用できなくても、トークンのスワップは可能です。"
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "スワップを非公開で送信中..." "message": "スワップを非公開で送信中..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "送信前にトランザクションのシミュレーションを行い、トランザクションのコストと失敗率を減らします。" "message": "送信前にトランザクションのシミュレーションを行い、トランザクションのコストと失敗率を減らします。"
}, },
"stxTryRegular": {
"message": "通常のスワップをお試しください。"
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "トランザクションのキャンセルを試みています..." "message": "トランザクションのキャンセルを試みています..."
}, },
"stxUnavailable": {
"message": "スマートトランザクションが無効になっています"
},
"stxUnknown": { "stxUnknown": {
"message": "ステータス不明" "message": "ステータス不明"
}, },
@ -3678,10 +3666,6 @@
"message": "このスワップを完了させるには、さらに$1の$2が必要です。", "message": "このスワップを完了させるには、さらに$1の$2が必要です。",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "スマートトランザクションを使用してこのスワップを完了させるには、もっと $1 が必要です。",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "最善の$1の見積もり。", "message": "最善の$1の見積もり。",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "시장 상황이 갑자기 변하면 실패할 수 있습니다. 문제가 지속되면 $1(으)로 문의하세요.", "message": "시장 상황이 갑자기 변하면 실패할 수 있습니다. 문제가 지속되면 $1(으)로 문의하세요.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "대기 중인 거래가 있어 스마트 거래를 잠시 사용할 수 없습니다."
},
"stxFallbackUnavailable": {
"message": "스마트 거래를 사용할 수 없을 때도 토큰 스왑은 가능합니다."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "스왑을 비공개로 제출하는 중..." "message": "스왑을 비공개로 제출하는 중..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "제출하기 전에 거래를 시뮬레이션하면 거래 비용을 줄이고 실패율을 낮출 수 있습니다." "message": "제출하기 전에 거래를 시뮬레이션하면 거래 비용을 줄이고 실패율을 낮출 수 있습니다."
}, },
"stxTryRegular": {
"message": "일반 스왑을 시도하세요."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "거래를 취소하려고 합니다..." "message": "거래를 취소하려고 합니다..."
}, },
"stxUnavailable": {
"message": "스마트 거래가 비활성화되었습니다."
},
"stxUnknown": { "stxUnknown": {
"message": "알 수 없는 상태" "message": "알 수 없는 상태"
}, },
@ -3678,10 +3666,6 @@
"message": "이 스왑을 완료하려면 $1개의 추가 $2이(가) 필요합니다.", "message": "이 스왑을 완료하려면 $1개의 추가 $2이(가) 필요합니다.",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "스마트 거래로 이 스왑을 완료하려면 $1(이)가 더 많이 필요합니다.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "$1의 최고 견적", "message": "$1의 최고 견적",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Mudanças repentinas no mercado podem causar falhas. Se o problema persistir, entre em contato com $1.", "message": "Mudanças repentinas no mercado podem causar falhas. Se o problema persistir, entre em contato com $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "As Transações Inteligentes estão temporariamente indisponíveis porque você tem uma transação pendente."
},
"stxFallbackUnavailable": {
"message": "Você ainda pode fazer swap com seus tokens mesmo quando as Transações Inteligentes estiverem indisponíveis."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Enviando seu swap de forma privada..." "message": "Enviando seu swap de forma privada..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Simule as transações antes de finalizar para diminuir os custos de transação e reduzir a possibilidade de falhas." "message": "Simule as transações antes de finalizar para diminuir os custos de transação e reduzir a possibilidade de falhas."
}, },
"stxTryRegular": {
"message": "Tente fazer uma swap comum."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Tentando cancelar sua transação..." "message": "Tentando cancelar sua transação..."
}, },
"stxUnavailable": {
"message": "As Transações Inteligentes estão desativadas"
},
"stxUnknown": { "stxUnknown": {
"message": "Status desconhecido" "message": "Status desconhecido"
}, },
@ -3678,10 +3666,6 @@
"message": "Você precisa de mais $1 $2 para concluir essa troca", "message": "Você precisa de mais $1 $2 para concluir essa troca",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Você precisa de mais $1 para completar esse swap usando transações inteligentes.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Melhores cotações de $1.", "message": "Melhores cotações de $1.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Внезапные изменения на рынке могут привести к отказам. Если проблема не устранена, обратитесь по адресу $1.", "message": "Внезапные изменения на рынке могут привести к отказам. Если проблема не устранена, обратитесь по адресу $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Смарт-транзакции временно недоступны, так как у вас есть ожидающая транзакция."
},
"stxFallbackUnavailable": {
"message": "Вы по-прежнему можете обменивать свои токены, даже если смарт-транзакции недоступны."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Приватная отправка вашей операции обмена..." "message": "Приватная отправка вашей операции обмена..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Моделируйте транзакции перед отправкой, чтобы снизить транзакционные издержки и сократить число отказов." "message": "Моделируйте транзакции перед отправкой, чтобы снизить транзакционные издержки и сократить число отказов."
}, },
"stxTryRegular": {
"message": "Попробуйте обычный обмен."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Попытка отменить транзакцию..." "message": "Попытка отменить транзакцию..."
}, },
"stxUnavailable": {
"message": "Смарт-транзакции отключены"
},
"stxUnknown": { "stxUnknown": {
"message": "Статус неизвестен" "message": "Статус неизвестен"
}, },
@ -3678,10 +3666,6 @@
"message": "Вам нужно еще $1 $2 для завершения этого обмена", "message": "Вам нужно еще $1 $2 для завершения этого обмена",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Вам нужно больше $1, чтобы завершить этот обмен с использованием смарт-транзакций.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Лучшие котировки $1.", "message": "Лучшие котировки $1.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Ang biglaang pagbabago sa merkado ay maaaring maging sanhi ng pagkabigo. Kung magpatuloy ang problema, makipag-ugnyan sa $1.", "message": "Ang biglaang pagbabago sa merkado ay maaaring maging sanhi ng pagkabigo. Kung magpatuloy ang problema, makipag-ugnyan sa $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Pansamantalang hindi available ang mga Smart Transaction dahil mayroon kang nakabinbin na transaksyon."
},
"stxFallbackUnavailable": {
"message": "Maaari mo parin papalitan ang iyong mga token kahit na hindi available ang mga Smart Transaction."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Pribadong isinusumite ang iyong Swap..." "message": "Pribadong isinusumite ang iyong Swap..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Gayahin ang mga transaksyon bago isumite upang bumaba ang gastos sa transaksyon at mabawasan ang mga pagkabigo." "message": "Gayahin ang mga transaksyon bago isumite upang bumaba ang gastos sa transaksyon at mabawasan ang mga pagkabigo."
}, },
"stxTryRegular": {
"message": "Subukan ang regular na pagpapalit."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Sinusubukang kanselahin ang iyong transaksyon..." "message": "Sinusubukang kanselahin ang iyong transaksyon..."
}, },
"stxUnavailable": {
"message": "Hindi pinapagana ang mga Smart Transaction"
},
"stxUnknown": { "stxUnknown": {
"message": "Hindi alam ang lagay" "message": "Hindi alam ang lagay"
}, },
@ -3678,10 +3666,6 @@
"message": "Kailangan mo ng $1 pa $2 para makumpleto ang pag-swap na ito", "message": "Kailangan mo ng $1 pa $2 para makumpleto ang pag-swap na ito",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Kailangan mo pa ng $1 para makumpleto ang pagpapalit na ito gamit ang mga smart transaction.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Pinakamaganda ng $1 na quote.", "message": "Pinakamaganda ng $1 na quote.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Ani piyasa değişiklikleri başarısızlıklara neden olabilir. Sorun devam ederse lütfen $1 ile iletişime geç.", "message": "Ani piyasa değişiklikleri başarısızlıklara neden olabilir. Sorun devam ederse lütfen $1 ile iletişime geç.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Bekleyen bir işlemin olduğundan Akıllı İşlemler geçici olarak kullanılamıyor."
},
"stxFallbackUnavailable": {
"message": "Akıllı İşlemler kullanılamazken bile token'larını değiştirebilirsin."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Swap işlemin özel olarak gönderiliyor..." "message": "Swap işlemin özel olarak gönderiliyor..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "İşlem maliyetlerini azaltmak ve arızaları azaltmak için göndermeden önce işlemleri simüle et." "message": "İşlem maliyetlerini azaltmak ve arızaları azaltmak için göndermeden önce işlemleri simüle et."
}, },
"stxTryRegular": {
"message": "Normal bir takas dene."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "İşlemin iptal edilmeye çalışılıyor..." "message": "İşlemin iptal edilmeye çalışılıyor..."
}, },
"stxUnavailable": {
"message": "Akıllı İşlemler devre dışı bırakıldı"
},
"stxUnknown": { "stxUnknown": {
"message": "Durum bilinmiyor" "message": "Durum bilinmiyor"
}, },
@ -3678,10 +3666,6 @@
"message": "Bu takası tamamlamak için $1 tane daha $2 gerekli", "message": "Bu takası tamamlamak için $1 tane daha $2 gerekli",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Akıllı işlemleri kullanarak bu takası tamamlamak için daha fazla $1 lazım.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "En iyi $1 teklifleri.", "message": "En iyi $1 teklifleri.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "Thị trường thay đổi đột ngột có thể gây thất bại. Nếu sự cố vẫn tiếp diễn, vui lòng liên hệ $1.", "message": "Thị trường thay đổi đột ngột có thể gây thất bại. Nếu sự cố vẫn tiếp diễn, vui lòng liên hệ $1.",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "Giao dịch thông minh tạm thời không khả dụng vì bạn có một giao dịch đang chờ xử lý."
},
"stxFallbackUnavailable": {
"message": "Bạn vẫn có thể hoán đổi token ngay cả khi Giao dịch thông minh không khả dụng."
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "Đang bí mật gửi yêu cầu Hoán đổi của bạn..." "message": "Đang bí mật gửi yêu cầu Hoán đổi của bạn..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "Mô phỏng giao dịch trước khi gửi để giảm chi phí giao dịch và tỷ lệ thất bại." "message": "Mô phỏng giao dịch trước khi gửi để giảm chi phí giao dịch và tỷ lệ thất bại."
}, },
"stxTryRegular": {
"message": "Hãy thử hoán đổi thông thường."
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "Đang cố gắng hủy giao dịch của bạn..." "message": "Đang cố gắng hủy giao dịch của bạn..."
}, },
"stxUnavailable": {
"message": "Đã tắt Giao dịch thông minh"
},
"stxUnknown": { "stxUnknown": {
"message": "Trạng thái không xác định" "message": "Trạng thái không xác định"
}, },
@ -3678,10 +3666,6 @@
"message": "Bạn cần $1 $2 nữa để hoàn tất giao dịch hoán đổi này", "message": "Bạn cần $1 $2 nữa để hoàn tất giao dịch hoán đổi này",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "Bạn cần thêm $1 để hoàn thành hoán đổi này bằng các giao dịch thông minh.",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "Tốt nhất trong $1 báo giá.", "message": "Tốt nhất trong $1 báo giá.",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -3589,12 +3589,6 @@
"message": "突然的市场变化可能导致失败。如果问题仍然存在,请联系$1。", "message": "突然的市场变化可能导致失败。如果问题仍然存在,请联系$1。",
"description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io" "description": "This message is shown to a user if their swap fails. The $1 will be replaced by support.metamask.io"
}, },
"stxFallbackPendingTx": {
"message": "智能交易暂时不可用,因为您有一笔待处理的交易。"
},
"stxFallbackUnavailable": {
"message": "即使智能交易不可用,您仍然可以交换代币。"
},
"stxPendingPrivatelySubmittingSwap": { "stxPendingPrivatelySubmittingSwap": {
"message": "正在秘密提交您的Swap..." "message": "正在秘密提交您的Swap..."
}, },
@ -3618,15 +3612,9 @@
"stxTooltip": { "stxTooltip": {
"message": "在提交前模拟交易,以降低交易成本并减少失败。" "message": "在提交前模拟交易,以降低交易成本并减少失败。"
}, },
"stxTryRegular": {
"message": "尝试定期交换。"
},
"stxTryingToCancel": { "stxTryingToCancel": {
"message": "正在尝试取消您的交易......" "message": "正在尝试取消您的交易......"
}, },
"stxUnavailable": {
"message": "智能交易被禁用"
},
"stxUnknown": { "stxUnknown": {
"message": "状态未知" "message": "状态未知"
}, },
@ -3678,10 +3666,6 @@
"message": "您还需要 $1 的 $2 来完成这笔交换", "message": "您还需要 $1 的 $2 来完成这笔交换",
"description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol."
}, },
"swapApproveNeedMoreTokensSmartTransactions": {
"message": "您还需要更多$1才能使用智能交易完成此交换。",
"description": "Tells the user that they need more of a certain token ($1) before they can complete the swap via smart transactions."
},
"swapBestOfNQuotes": { "swapBestOfNQuotes": {
"message": "$1 报价中最棒的。", "message": "$1 报价中最棒的。",
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"

View File

@ -129,7 +129,6 @@ export const createSwapsMockStore = () => {
address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
occurances: 4, occurances: 4,
}, },
currentSmartTransactionsErrorMessageDismissed: false,
swapsSTXLoading: false, swapsSTXLoading: false,
}, },
metamask: { metamask: {

View File

@ -125,7 +125,6 @@ const initialState = {
fallBackPrice: null, fallBackPrice: null,
}, },
currentSmartTransactionsError: '', currentSmartTransactionsError: '',
currentSmartTransactionsErrorMessageDismissed: false,
swapsSTXLoading: false, swapsSTXLoading: false,
}; };
@ -212,9 +211,6 @@ const slice = createSlice({
: stxErrorTypes.UNAVAILABLE; : stxErrorTypes.UNAVAILABLE;
state.currentSmartTransactionsError = errorType; state.currentSmartTransactionsError = errorType;
}, },
dismissCurrentSmartTransactionsErrorMessage: (state) => {
state.currentSmartTransactionsErrorMessageDismissed = true;
},
setSwapsSTXSubmitLoading: (state, action) => { setSwapsSTXSubmitLoading: (state, action) => {
state.swapsSTXLoading = action.payload || false; state.swapsSTXLoading = action.payload || false;
}, },
@ -278,9 +274,6 @@ export const getSwapsFallbackGasPrice = (state) =>
export const getCurrentSmartTransactionsError = (state) => export const getCurrentSmartTransactionsError = (state) =>
state.swaps.currentSmartTransactionsError; state.swaps.currentSmartTransactionsError;
export const getCurrentSmartTransactionsErrorMessageDismissed = (state) =>
state.swaps.currentSmartTransactionsErrorMessageDismissed;
export function shouldShowCustomPriceTooLowWarning(state) { export function shouldShowCustomPriceTooLowWarning(state) {
const { average } = getSwapGasPriceEstimateData(state); const { average } = getSwapGasPriceEstimateData(state);
@ -490,13 +483,11 @@ const {
retrievedFallbackSwapsGasPrice, retrievedFallbackSwapsGasPrice,
swapCustomGasModalClosed, swapCustomGasModalClosed,
setCurrentSmartTransactionsError, setCurrentSmartTransactionsError,
dismissCurrentSmartTransactionsErrorMessage,
setSwapsSTXSubmitLoading, setSwapsSTXSubmitLoading,
} = actions; } = actions;
export { export {
clearSwapsState, clearSwapsState,
dismissCurrentSmartTransactionsErrorMessage,
setAggregatorMetadata, setAggregatorMetadata,
setBalanceError, setBalanceError,
setFetchingQuotes, setFetchingQuotes,

View File

@ -358,15 +358,6 @@ describe('Ducks - Swaps', () => {
}); });
}); });
describe('getCurrentSmartTransactionsErrorMessageDismissed', () => {
it('returns currentSmartTransactionsErrorMessageDismissed', () => {
const state = createSwapsMockStore();
expect(
swaps.getCurrentSmartTransactionsErrorMessageDismissed(state),
).toBe(state.swaps.currentSmartTransactionsErrorMessageDismissed);
});
});
describe('shouldShowCustomPriceTooLowWarning', () => { describe('shouldShowCustomPriceTooLowWarning', () => {
it('returns false for showCustomPriceTooLowWarning', () => { it('returns false for showCustomPriceTooLowWarning', () => {
const state = createSwapsMockStore(); const state = createSwapsMockStore();
@ -774,21 +765,6 @@ describe('Ducks - Swaps', () => {
}); });
}); });
describe('dismissCurrentSmartTransactionsErrorMessage', () => {
it('calls the "swaps/dismissCurrentSmartTransactionsErrorMessage" action', () => {
const state = store.getState().swaps;
store.dispatch(swaps.dismissCurrentSmartTransactionsErrorMessage());
const actions = store.getActions();
expect(actions[0].type).toBe(
'swaps/dismissCurrentSmartTransactionsErrorMessage',
);
const newState = swapsReducer(state, actions[0]);
expect(newState.currentSmartTransactionsErrorMessageDismissed).toBe(
true,
);
});
});
describe('setAggregatorMetadata', () => { describe('setAggregatorMetadata', () => {
it('calls the "swaps/setAggregatorMetadata" action', () => { it('calls the "swaps/setAggregatorMetadata" action', () => {
const state = store.getState().swaps; const state = store.getState().swaps;

View File

@ -45,14 +45,11 @@ import {
getSmartTransactionsEnabled, getSmartTransactionsEnabled,
getCurrentSmartTransactionsEnabled, getCurrentSmartTransactionsEnabled,
getCurrentSmartTransactionsError, getCurrentSmartTransactionsError,
dismissCurrentSmartTransactionsErrorMessage,
getCurrentSmartTransactionsErrorMessageDismissed,
navigateBackToBuildQuote, navigateBackToBuildQuote,
} from '../../ducks/swaps/swaps'; } from '../../ducks/swaps/swaps';
import { import {
checkNetworkAndAccountSupports1559, checkNetworkAndAccountSupports1559,
currentNetworkTxListSelector, currentNetworkTxListSelector,
getSwapsDefaultToken,
} from '../../selectors'; } from '../../selectors';
import { import {
AWAITING_SIGNATURES_ROUTE, AWAITING_SIGNATURES_ROUTE,
@ -85,14 +82,12 @@ import { useGasFeeEstimates } from '../../hooks/useGasFeeEstimates';
import FeatureToggledRoute from '../../helpers/higher-order-components/feature-toggled-route'; import FeatureToggledRoute from '../../helpers/higher-order-components/feature-toggled-route';
import { EVENT } from '../../../shared/constants/metametrics'; import { EVENT } from '../../../shared/constants/metametrics';
import { TransactionStatus } from '../../../shared/constants/transaction'; import { TransactionStatus } from '../../../shared/constants/transaction';
import ActionableMessage from '../../components/ui/actionable-message';
import { MetaMetricsContext } from '../../contexts/metametrics'; import { MetaMetricsContext } from '../../contexts/metametrics';
import { getSwapsTokensReceivedFromTxMeta } from '../../../shared/lib/transactions-controller-utils'; import { getSwapsTokensReceivedFromTxMeta } from '../../../shared/lib/transactions-controller-utils';
import { import {
fetchTokens, fetchTokens,
fetchTopAssets, fetchTopAssets,
fetchAggregatorMetadata, fetchAggregatorMetadata,
stxErrorTypes,
} from './swaps.util'; } from './swaps.util';
import AwaitingSignatures from './awaiting-signatures'; import AwaitingSignatures from './awaiting-signatures';
import SmartTransactionStatus from './smart-transaction-status'; import SmartTransactionStatus from './smart-transaction-status';
@ -135,7 +130,6 @@ export default function Swap() {
const networkAndAccountSupports1559 = useSelector( const networkAndAccountSupports1559 = useSelector(
checkNetworkAndAccountSupports1559, checkNetworkAndAccountSupports1559,
); );
const defaultSwapsToken = useSelector(getSwapsDefaultToken, isEqual);
const tokenList = useSelector(getTokenList, isEqual); const tokenList = useSelector(getTokenList, isEqual);
const shuffledTokensList = shuffle(Object.values(tokenList)); const shuffledTokensList = shuffle(Object.values(tokenList));
const reviewSwapClickedTimestamp = useSelector(getReviewSwapClickedTimestamp); const reviewSwapClickedTimestamp = useSelector(getReviewSwapClickedTimestamp);
@ -151,11 +145,6 @@ export default function Swap() {
const currentSmartTransactionsError = useSelector( const currentSmartTransactionsError = useSelector(
getCurrentSmartTransactionsError, getCurrentSmartTransactionsError,
); );
const smartTransactionsErrorMessageDismissed = useSelector(
getCurrentSmartTransactionsErrorMessageDismissed,
);
const showSmartTransactionsErrorMessage =
currentSmartTransactionsError && !smartTransactionsErrorMessageDismissed;
useEffect(() => { useEffect(() => {
const leaveSwaps = async () => { const leaveSwaps = async () => {
@ -374,11 +363,6 @@ export default function Swap() {
return <></>; return <></>;
} }
const isStxNotEnoughFundsError =
currentSmartTransactionsError === stxErrorTypes.NOT_ENOUGH_FUNDS;
const isRegularTxInProgressError =
currentSmartTransactionsError === stxErrorTypes.REGULAR_TX_IN_PROGRESS;
return ( return (
<div className="swaps"> <div className="swaps">
<div className="swaps__container"> <div className="swaps__container">
@ -408,53 +392,6 @@ export default function Swap() {
</div> </div>
</div> </div>
<div className="swaps__content"> <div className="swaps__content">
{showSmartTransactionsErrorMessage && (
<ActionableMessage
type={isStxNotEnoughFundsError ? 'default' : 'warning'}
message={
isStxNotEnoughFundsError ? (
<div>
{t('swapApproveNeedMoreTokensSmartTransactions', [
defaultSwapsToken.symbol,
])}{' '}
<span
onClick={() =>
dispatch(dismissCurrentSmartTransactionsErrorMessage())
}
style={{
textDecoration: 'underline',
cursor: 'pointer',
}}
>
{t('stxTryRegular')}
</span>
</div>
) : (
<div className="build-quote__token-verification-warning-message">
<button
onClick={() => {
dispatch(dismissCurrentSmartTransactionsErrorMessage());
}}
className="swaps__notification-close-button"
/>
<div className="swaps__notification-title">
{t('stxUnavailable')}
</div>
<div>
{isRegularTxInProgressError
? t('stxFallbackPendingTx')
: t('stxFallbackUnavailable')}
</div>
</div>
)
}
className={
isStxNotEnoughFundsError
? 'swaps__error-message'
: 'actionable-message--left-aligned actionable-message--warning swaps__error-message'
}
/>
)}
<Switch> <Switch>
<FeatureToggledRoute <FeatureToggledRoute
redirectRoute={SWAPS_MAINTENANCE_ROUTE} redirectRoute={SWAPS_MAINTENANCE_ROUTE}

View File

@ -48,10 +48,10 @@ import {
getSmartTransactionsEnabled, getSmartTransactionsEnabled,
getSmartTransactionsError, getSmartTransactionsError,
getCurrentSmartTransactionsError, getCurrentSmartTransactionsError,
getCurrentSmartTransactionsErrorMessageDismissed,
getSwapsSTXLoading, getSwapsSTXLoading,
fetchSwapsSmartTransactionFees, fetchSwapsSmartTransactionFees,
getSmartTransactionFees, getSmartTransactionFees,
getCurrentSmartTransactionsEnabled,
} from '../../../ducks/swaps/swaps'; } from '../../../ducks/swaps/swaps';
import { import {
conversionRateSelector, conversionRateSelector,
@ -195,17 +195,10 @@ export default function ViewQuote() {
getCurrentSmartTransactionsError, getCurrentSmartTransactionsError,
); );
const smartTransactionsError = useSelector(getSmartTransactionsError); const smartTransactionsError = useSelector(getSmartTransactionsError);
const currentSmartTransactionsErrorMessageDismissed = useSelector(
getCurrentSmartTransactionsErrorMessageDismissed,
);
const currentSmartTransactionsEnabled =
smartTransactionsEnabled &&
!(
currentSmartTransactionsError &&
(currentSmartTransactionsError !== 'not_enough_funds' ||
currentSmartTransactionsErrorMessageDismissed)
);
const smartTransactionFees = useSelector(getSmartTransactionFees, isEqual); const smartTransactionFees = useSelector(getSmartTransactionFees, isEqual);
const currentSmartTransactionsEnabled = useSelector(
getCurrentSmartTransactionsEnabled,
);
const swapsNetworkConfig = useSelector(getSwapsNetworkConfig, shallowEqual); const swapsNetworkConfig = useSelector(getSwapsNetworkConfig, shallowEqual);
const unsignedTransaction = usedQuote.trade; const unsignedTransaction = usedQuote.trade;