mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Swaps UI redesign for the View Quote page (#12950)
* Update EIP-1559 UI on the View Quote page (WIP) * UI redesign for the View Quote page in Swaps, update tests, refactoring * Update styles for the View Quote page * Improve scrolling and styling for the View Quote page * Update snapshots * Fix a scrolling issue * Use Ethereum mainnet for swaps API calls if it's Rinkeby * UI / content updates on the View Quote page * Remove unused content in Swaps * Fix an ESLint issue * Update UTs with the latest content * Renaming * Remove 2 more unused content strings
This commit is contained in:
parent
4cc5cc2f59
commit
1ca59ccc78
@ -881,6 +881,10 @@
|
||||
"enableOpenSeaAPIDescription": {
|
||||
"message": "Use OpenSea's API to fetch NFT data. NFT auto-detection relies on OpenSea's API, and will not be available when this is turned off."
|
||||
},
|
||||
"enableToken": {
|
||||
"message": "enable $1",
|
||||
"description": "$1 is a token symbol, e.g. ETH"
|
||||
},
|
||||
"encryptionPublicKeyNotice": {
|
||||
"message": "$1 would like your public encryption key. By consenting, this site will be able to compose encrypted messages to you.",
|
||||
"description": "$1 is the web3 site name"
|
||||
@ -2605,8 +2609,9 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "A better quote is available"
|
||||
"swapBestOfNQuotes": {
|
||||
"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"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "No tokens available matching $1",
|
||||
@ -2637,12 +2642,9 @@
|
||||
"message": "This is required and gives MetaMask permission to swap your $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Estimated network fee"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "The “$1” is what we expect the actual fee to be. The exact amount depends on network conditions.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
"swapEnableTokenForSwapping": {
|
||||
"message": "This will $1 for swapping",
|
||||
"description": "$1 is for the 'enableToken' key, e.g. 'enable ETH'"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Estimated network fees"
|
||||
@ -2689,16 +2691,13 @@
|
||||
"swapHighSlippageWarning": {
|
||||
"message": "Slippage amount is very high."
|
||||
},
|
||||
"swapIncludesMMFee": {
|
||||
"message": "Includes a $1% MetaMask fee.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapLowSlippageError": {
|
||||
"message": "Transaction may fail, max slippage too low."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” is the most you’ll spend. When the network is volatile this can be a large amount.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Max network fee"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Max slippage"
|
||||
},
|
||||
@ -2709,13 +2708,10 @@
|
||||
"message": "We find the best price from the top liquidity sources, every time. A fee of $1% is automatically factored into this quote.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$1 quotes",
|
||||
"swapNQuotesWithDot": {
|
||||
"message": "$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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "The network fee covers the cost of processing your swap and storing it on the $1 network. MetaMask does not profit from this fee."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "New quotes in $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -2750,10 +2746,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "If the price changes between the time your order is placed and confirmed it’s called \"slippage\". Your Swap will automatically cancel if slippage exceeds your \"slippage tolerance\" setting."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "Quote includes a $1% MetaMask fee",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Quote $1 of $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -2761,9 +2753,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Quote source"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Quotes are refreshed often to reflect current market conditions."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Please request new quotes to get the latest rates."
|
||||
},
|
||||
@ -2824,9 +2813,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Swap to"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "This will allow $1 to be swapped."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "to confirm with your hardware wallet"
|
||||
},
|
||||
@ -2869,9 +2855,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Unknown"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Using the best quote"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Multiple tokens can use the same name and symbol. Check $1 to verify this is the token you're looking for.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "Hay una mejor cotización disponible"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "No hay tokens disponibles que coincidan con $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "Esta acción es obligatoria y le da permiso a MetaMask para canjear su $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Cuota de red estimada"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "“$1” es la cuota real que esperamos que sea. El monto exacto depende de las condiciones de la red.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Cuotas de red estimadas"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "Es posible que la transacción tenga errores, el desfase máximo es demasiado bajo."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” es el máximo que gastará. Cuando la red es volátil, puede ser un monto grande.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Cuota máxima de red"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Desfase máximo"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "Buscamos el mejor precio en las fuentes de liquidez más importantes, todo el tiempo. Se incorpora de manera automática a esta cotización una cuota del $1 %.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$1 cotizaciones",
|
||||
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "La cuota de red cubre el costo de procesamiento del canje y su almacenamiento en la red de $1. MetaMask no se beneficia de esta cuota."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Cotizaciones nuevas en $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Si el precio cambia entre el momento en que hace el pedido y cuando se confirma, se denomina \"desfase\". El canje se cancelará automáticamente si el desfase supera lo establecido en la configuración \"tolerancia de desfase\"."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "La cotización incluye una cuota de MetaMask de $1 %",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Cotización $1 de $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Fuente de la cotización"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Las cotizaciones se actualizan con frecuencia para reflejar las condiciones actuales del mercado."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Solicite cotizaciones nuevas para tener los costos más recientes."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Canjear a"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Esto permitirá canjear $1."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "confirmar con la cartera de hardware"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Desconocido"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Uso de la mejor cotización"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Varios tokens pueden usar el mismo nombre y símbolo. Revise $1 para comprobar que este es el token que busca.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "Hay una mejor cotización disponible"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "No hay tokens disponibles que coincidan con $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "Esta acción es obligatoria y le da permiso a MetaMask para canjear su $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Cuota de red estimada"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "“$1” es la cuota real que esperamos que sea. El monto exacto depende de las condiciones de la red.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Cuotas de red estimadas"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "Es posible que la transacción tenga errores, el desfase máximo es demasiado bajo."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” es el máximo que gastará. Cuando la red es volátil, puede ser un monto grande.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Cuota máxima de red"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Desfase máximo"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "Buscamos el mejor precio en las fuentes de liquidez más importantes, todo el tiempo. Se incorpora de manera automática a esta cotización una cuota del $1 %.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$1 cotizaciones",
|
||||
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "La cuota de red cubre el costo de procesamiento del canje y su almacenamiento en la red de $1. MetaMask no se beneficia de esta cuota."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Cotizaciones nuevas en $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Si el precio cambia entre el momento en que hace el pedido y cuando se confirma, se denomina \"desfase\". El canje se cancelará automáticamente si el desfase supera lo establecido en la configuración \"tolerancia de desfase\"."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "La cotización incluye una cuota de MetaMask de $1 %",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Cotización $1 de $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Fuente de la cotización"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Las cotizaciones se actualizan con frecuencia para reflejar las condiciones actuales del mercado."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Solicite cotizaciones nuevas para tener los costos más recientes."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Canjear a"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Esto permitirá canjear $1."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "confirmar con la cartera de hardware"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Desconocido"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Uso de la mejor cotización"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Varios tokens pueden usar el mismo nombre y símbolo. Revise $1 para comprobar que este es el token que busca.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "एक बेहतर उद्धरण उपलब्ध है"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "$1 के मिलान वाले कोई भी टोकन उपलब्ध नहीं हैं",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "यह आवश्यक है और MetaMask को आपके $1 को स्वैप करने की अनुमति देता है।",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "अनुमानित नेटवर्क शुल्क"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "“$1” वह शुल्क है, जिसकी हम वास्तविक रूप से उम्मीद करते हैं। सटीक राशि नेटवर्क की स्थितियों पर निर्भर करती है।",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "अनुमानित नेटवर्क शुल्क"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "लेनदेन विफल हो सकता है, अधिकतम स्लिपेज बहुत कम हो सकता है।"
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "आप सबसे अधिक “$1” खर्च करते हैं। जब नेटवर्क अस्थिर होता है, तो यह एक बड़ी राशि हो सकती है।",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "अधिकतम नेटवर्क शुल्क"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "अधिकतम स्लिपेज"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "हम हर बार शीर्ष चलनिधि स्रोतों से सबसे अच्छे मूल्य पाते हैं। इस उद्धरण में $1% का शुल्क स्वतः ही शामिल हो जाता है।",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "नेटवर्क शुल्क आपके स्वैप को संसाधित करने के शुल्क और उसे $1 नेटवर्क पर संग्रह करने को कवर करता है। MetaMask इस शुल्क से लाभ नहीं कमाता है।"
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "$1 में नए उद्धरण",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "यदि आपके ऑर्डर किए जाने और पुष्टि किए जाने के समय के बीच मूल्य में परिवर्तन होता है, तो इसे \"स्लिपेज\" कहा जाता है। यदि स्लिपेज आपकी \"स्लिपेज टॉलरेंस\" सेटिंग से अधिक हो जाता है, तो आपका स्वैप स्वतः रद्द हो जाएगा।"
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "उद्धरण में $1% का MetaMask शुल्क शामिल है",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "$2 में से $1 उद्धरण",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "उद्धरण का स्रोत"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "वर्तमान बाजार की स्थितियों को प्रतिबिंबित करने के लिए उद्धरण अक्सर ताज़ा होते रहते हैं।"
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "कृपया नवीनतम दरों को प्राप्त करने के लिए नए उद्धरणों का अनुरोध करें।"
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "इसमें स्वैप करें"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "यह $1 को स्वैप करने की अनुमति देगा।"
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "अपने हार्डवेयर वॉलेट से पुष्टि करने के लिए"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "अज्ञात"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "सर्वोत्तम उद्धरण का उपयोग करना"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "एकाधिक टोकन एक ही नाम और प्रतीक का उपयोग कर सकते हैं। यह सत्यापित करने के लिए $1 की जाँच करें कि यह वही टोकन है, जिसकी आप तलाश कर रहे हैं।",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"message": "Anda memerlukan $1 lagi $2 untuk menyelesaikan penukaran ini",
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "Kuota yang lebih baik tersedia"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "Tidak ada token yang cocok yang tersedia $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "Ini wajib dan memberikan MetaMask izin untuk menukar $1 Anda.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Biaya jaringan yang diperkirakan"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "“$1” adalah yang kami harapkan untuk biaya yang seharusnya. Jumlah yang tepat tergantung pada kondisi jaringan.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Biaya jaringan yang diperkirakan"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "Transaksi bisa gagal, slippage maks. terlalu rendah."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” adalah yang paling banyak yang akan Anda gunakan. Bila jaringan tidak stabil ini bisa menjadi jumlah yang besar.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Biaya jaringan maks."
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Maks. slippage"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "Kami menemukan harga terbaik dari sumber likuiditas teratas, setiap waktu. Biaya sebesar $1% otomatis diperhitungkan ke kuota ini.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$1 kuota",
|
||||
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "Biaya jaringan mencakup biaya pemrosesan penukaran Anda dan menyimpannya di jaringan $1. MetaMask tidak mendapatkan keuntungan dari biaya ini."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Kuota baru di $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Jika harga berubah antara waktu pesanan Anda ditempatkan dan dikonfirmasi, ini disebut \"slippage\". Penukaran Anda akan otomatis dibatalkan jika slippage melebihi pengaturan \"toleransi slippage\"."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "Kuota mencakup biaya MetaMask $1%",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Kuota $1 dari $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Sumber kuota"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Kuota disegarkan sering kali untuk menerapkan kondisi pasar terkini."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Silakan minta kuota baru untuk mendapatkan tarif terbaru."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Tukar untuk"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Ini akan memungkinkan $1 untuk ditukar."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "untuk mengonfirmasikan dengan dompet perangkat keras Anda"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Tidak diketahui"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Menggunakan kuota terbaik"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Beberapa token dapat menggunakan simbol dan nama yang sama. Periksa $1 untuk memverifikasi inilah token yang Anda cari.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1475,9 +1475,6 @@
|
||||
"message": "Devi avere $1 $2 in più per completare lo scambio",
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "È disponibile una quotazione migliore"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "Non ci sono token disponibile con questo nome $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1495,13 +1492,6 @@
|
||||
"message": "Questo è richiesto e darà a MetaMask il permesso di scambiare $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Tassa di rete stimata"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "La “$1” è ciò che ci aspettiamo possa essere la tassa reale. L'importo esatto dipende dalle condizioni della rete.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Tasse di rete stimate"
|
||||
},
|
||||
@ -1523,13 +1513,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "La transazione può fallire, il massimo slippage è troppo basso."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” è il massimo che spenderai. Quando la rete è volatile può essere un importo alto.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Tassa di rete massima"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Slippage massimo"
|
||||
},
|
||||
@ -1540,13 +1523,6 @@
|
||||
"message": "Troviamo i migliori prezzi dalle sorgenti di liquidità migliori, sempre. Una tassa del $1% è automaticamente aggiunta ad ogni quotazione, ciò serve a supportare lo sviluppo in modo da rendere MetaMask sempre migliore.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$1 quotazioni",
|
||||
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "La tassa di rete copre il costo di processamento dello scambio e della memorizzazione nella rete $1. MetaMask non trae profitto da questa tassa."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Nuove quotazioni in $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1572,10 +1548,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Si chiama \"slippage\" la differenza tra il prezzo quando il tuo ordine viene inserito e quando viene confermato. Lo scambio sarà annullato automaticamente se lo slippage supera il \"massimo slippage\" impostato."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "La quotazione include la tassa del $1% di MetaMask",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Quotazione $1 di $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1583,9 +1555,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Sorgente della quota"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Le quotazioni sono aggiornate spesso per riflettere le condizioni di mercato correnti."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Richiedi nuove quotazioni per ottenere le ultime tariffe."
|
||||
},
|
||||
@ -1643,9 +1612,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Scambia a"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Questo permetterà di scambiare $1."
|
||||
},
|
||||
"swapTokenAvailable": {
|
||||
"message": "I $1 sono stati aggiunti al tuo account.",
|
||||
"description": "This message is shown after a swap is successful and communicates the exact amount of tokens the user has received for a swap. The $1 is a decimal number of tokens followed by the token symbol."
|
||||
@ -1671,9 +1637,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Sconosciuto"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Quotazione migliore"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Più token possono usare lo stesso nome e simbolo. Verifica su $1 che questo sia il token che stai cercando.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "より適切な見積もりが利用可能です"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "$1 と一致するトークンがありません",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "これは必須であり、$1 をスワップするための MetaMask 許可を付与します。",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "推定のネットワーク手数料"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "“$1” は予定する実際の手数料です。正確な額はネットワークの状態によって異なります。",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "推定のネットワーク手数料"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "トランザクションが失敗する可能性があります。最大スリッページが低すぎます。"
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” は使用する最大量です。ネットワークが不安定なときは、これは大きな量になることがあります。",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "最大ネットワーク手数料"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "最大スリッページ"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "当社は毎回最上位の流動性のソースから最良の価格を見つけます。$1 の手数料が自動的にこの見積もりに含まれます。",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "ネットワーク手数料には、スワップを処理して $1 ネットワーク上に保管する費用も含まれています。MetaMask は手数料から利益を得ません。"
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "$1 での新規の見積もり",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "注文した時点と注文が承認された時点で価格が変わることを \"スリッページ\" と呼びます。スリッページが \"最大スリッページ\" 設定を超える場合、スワップは自動的にキャンセルされます。"
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "見積もりには $1% の MetaMask 手数料が含まれています",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "$2 個中の $1 個の見積もり",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "見積もりのソース"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "現在のマーケット状態を反映するために、見積もりはたびたび更新されます。"
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "最新のレートを取得するには、新しい見積もりを要求してください。"
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "スワップ先"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "これにより、$1 のスワップが可能になります。"
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "ハードウェア ウォレットで確認する"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "不明です"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "最良の見積もりを使用する"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "複数のトークンが同じ名前とシンボルを使用できます。$1 をチェックして、これが探しているトークンであることを確認します。",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "더 나은 견적이 있습니다."
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "$1와(과) 일치하는 토큰이 없습니다.",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "필수이며 MetaMask에게 $1을(를) 스왑할 권한을 부여합니다.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "예상 네트워크 수수료"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "'$1'은(는) 당사가 예상하는 실제 수수료입니다. 정확한 금액은 네트워크 상태에 따라 달라집니다.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "예상 네트워크 수수료"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "거래가 실패할 수도 있습니다. 최대 슬리패지가 너무 낮습니다."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1”이(가) 최대 지출 금액입니다. 네트워크가 불안정한 경우 금액이 증가할 수 있습니다.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "최대 네트워크 수수료"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "최대 슬리패지"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "당사는 매번 최상의 유동성 소스에서 최적의 가격을 찾습니다. 이 견적에는 $1%의 수수료가 자동으로 반영됩니다.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "네트워크 수수료에는 스왑을 처리하고 $1 네트워크에 보관하는 비용이 포함됩니다. MetaMask는 이 수수료로 수익을 얻지 않습니다."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "$1의 새 견적",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "주문 시점과 확인 시점 사이에 가격이 변동되는 현상을 \"슬리패지\"라고 합니다. 슬리패지가 \"최대 슬리패지\" 설정을 초과하면 스왑이 자동으로 취소됩니다."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "견적에는 $1% MetaMask 요금이 포함됩니다.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "$2의 $1 견적",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "견적 소스"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "견적은 현재 시장 상황을 반영하도록 자주 갱신됩니다."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "새 견적을 요청해 최신 요율을 확인하세요."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "다음으로 스왑"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "$1이(가) 스왑될 수 있도록 허용합니다."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "하드웨어 지갑으로 확인하기 위해"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "알 수 없음"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "최고 견적을 사용 중"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "여러 토큰이 같은 이름과 기호를 사용할 수 있습니다. $1을(를) 확인하여 원하는 토큰인지 확인하세요.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "May available na mas magandang quote"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "Walang available na token na tumutugma sa $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "Kinakailangan ito at nagbibigay ito ng pahintulot sa MetaMask na i-swap ang iyong $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Tinatayang bayarin sa network"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "Ang “$1” ay ang inaasahan naming magiging aktuwal na bayarin. Ang eksaktong halaga ay nakadepende sa mga kundisyon ng network.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Mga tinatayang bayarin sa network"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "Posibleng hindi magtagumpay ang transaksyon, masyadong mababa ang max na slippage."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” ang pinakamalaking gagastusin mo. Kapag volatile ang network, maaaring malaking halaga ito.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Max na bayarin sa network"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Max na slippage"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "Hinahanap namin ang pinakasulit na presyo mula sa mga nangungunang pinagkukunan ng liquidity, sa lahat ng pagkakataon. Awtomatikong fina-factor ang bayaring $1% sa quote na ito.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$1 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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "Kasama sa bayarin sa network ang gastusin sa pagproseso ng iyong pag-swap at pag-store nito sa $1 network. Hindi kumikita ang MetaMask mula sa bayaring ito."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Mga bagong quote sa $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Kung magbabago ang presyo sa pagitan ng oras ng pag-order mo at sa oras na nakumpirma ito, tinatawag itong \"slippage\". Awtomatikong makakansela ang iyong Pag-swap kung lalampas ang slippage sa iyong setting na \"tolerance ng slippage.\""
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "Kasama sa quote ang $1% bayarin sa MetaMask",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Quote $1 ng $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Pinagkunan ng quote"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Madalas na nire-refresh ang mga quote para maipakita ang mga kasalukuyang kundisyon ng market."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Mag-request ng mga bagong quote para makuha ang mga pinakabagong rate."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "I-swap sa"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Mabibigyang-daan nito ang $1 na ma-swap."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "para kumpirmahin ang iyong hardware wallet"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Hindi Alam"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Gamit ang pinakamagandang quote"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Maaaring gamitin ng maraming token ang iisang pangalan at simbolo. Suriin ang $1 para ma-verify na ito ang token na hinahanap mo.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"message": "Você precisa de $1 mais $2 para concluir este 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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "Uma cotação melhor está disponível"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "Nenhum token disponível correspondente a $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "Isso é obrigatório e dá ao MetaMask permissão para fazer o swap do seu $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Taxa de rede estimada"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "O “$1” é o que esperamos que a taxa real seja. O valor exato depende das condições de rede.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Taxas de rede estimadas"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "A transação pode falhar; slippage máximo baixo demais."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” é o máximo que você gastará. Quando a rede for volátil, esse poderá ser um grande valor.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Taxa máxima de rede"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Slippage máximo"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "Encontramos o melhor preço das principais fontes de liquidez – todas as vezes. Uma taxa de $1% é automaticamente fatorada nesta cotação.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$1 cotações",
|
||||
"description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "A taxa de rede abrange o custo de processamento do seu swap e o armazenamento dele na rede $1. O MetaMask não lucra com essa taxa."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Novas cotações em $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Quando o preço varia entre o momento em que seu pedido é feito e o momento em que é confirmado, isso recebe o nome de \"slippage\". Seu swap será automaticamente cancelado se o slippage for superior à configuração \"tolerância de slippage\"."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "A cotação inclui uma taxa de $1% do MetaMask",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Cotação $1 de $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Fonte da cotação"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "As cotações são atualizadas com frequência para refletir as condições atuais do mercado."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Solicite novas cotações para obter as tarifas mais recentes."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Swap para"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "isso permitirá o swap de $1."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "para confirmar com sua carteira de hardware"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Desconhecido"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Usando a melhor cotação"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Vários tokens podem usar o mesmo nome e símbolo. Confira $1 para verificar se esse é o token que você está buscando.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "Есть лучшая котировка"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "Нет доступных токенов соответствующих $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "Это необходимо и дает MetaMask разрешение на своп вашего $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Ориентировочная комиссия сети"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "«$1» — это ожидаемая нами реальная комиссия. Точная сумма зависит от условий сети.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Ориентировочные комиссии сети"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "Транзакции могут завершиться неудачей, максимальное проскальзывание слишком мало."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "«$1» — это максимальная сумма, которую вы потратите. Когда сеть нестабильна, это может быть большая сумма.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Максимальная комиссия за сеть"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Максимальное проскальзывание"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "Мы всегда находим лучшую цену из лучших источников ликвидности. В эту котировку автоматически включается комиссия в размере $1%.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "Сетевая комиссия покрывает стоимость обработки вашего свопа и его хранения в сети $1. MetaMask не получает прибыли от этой комиссии."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Новые котировки в $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Изменение цены в период между размещением заказа и подтверждением называется проскальзыванием. Своп будет автоматически отменен, если фактическое проскальзывание превысит установленное допустимое значение."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "Котировка включает $1% MetaMask fee",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Котировка $1 из $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Источник котировки"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Котировки часто обновляются, чтобы отражать текущие рыночные условия."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Запрашивайте новые котировки, чтобы узнать последние цены."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Своп на"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Это позволит обмен $1."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "подтвердить с помощью аппаратного кошелька"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Неизвестный"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Используется лучшая котировка"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Несколько токенов могут использовать одно и то же имя и символ. Убедитесь, что это именно тот токен, который вы ищете, на $1.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1483,13 +1483,6 @@
|
||||
"message": "Kinakailangan ito at nagbibigay ito ng pahintulot sa MetaMask na i-swap ang iyong $1.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Tinatayang bayarin sa network"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "Ang “$1” ay ang inaasahan naming magiging aktuwal na bayarin. Ang eksaktong halaga ay nakadepende sa mga kundisyon ng network.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Mga tinatayang bayarin sa network"
|
||||
},
|
||||
@ -1511,13 +1504,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "Maaaring hindi magtagumpay ang transaksyon, masyadong mababa ang max na slippage."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "Aang “$1” ay ang pinakamalaking gagastusin mo. Kapag volatile ang network, maaaring malaking halaga ito.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Max na bayarin sa network"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Max na slippage"
|
||||
},
|
||||
@ -1528,9 +1514,6 @@
|
||||
"message": "Hinahanap namin ang pinakasulit na presyo mula sa mga nangungunang pinagkukunan ng liquidity, sa lahat ng pagkakataon. Ang bayarin na $1% ay awtomatikong fina-factor sa bawat quote, na sumusuporta sa kasalukuyang development para mas mapahusay ang MetaMask.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "Kasama sa bayarin sa network ang gastusin sa pagproseso ng iyong pag-swap at pag-store nito sa $1 network. Hindi kumikita ang MetaMask mula sa bayaring ito."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Mga bagong quote sa $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1548,10 +1531,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Kung magbabago ang presyo sa pagitan ng oras ng pag-order mo at sa oras na nakumpirma ito, tinatawag itong \"slippage\". Awtomatikong makakansela ang iyong Pag-swap kung lalampas ang slippage sa iyong setting na \"max slippage\"."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "Kasama sa quote ang $1% bayarin sa MetaMask",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Quote $1 ng $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1559,9 +1538,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Pinagkunan ng quote"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Madalas na nire-refresh ang mga quote para maipakita ang mga kasalukuyang kundisyon ng market."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Mag-request ng mga bagong quote para makuha ang mga pinakabagong rate."
|
||||
},
|
||||
@ -1616,9 +1592,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Palitan ng"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Mabibigyang-daan nito ang $1 na ma-swap."
|
||||
},
|
||||
"swapTokenAvailable": {
|
||||
"message": "Naidagdag na ang $1 sa iyong account.",
|
||||
"description": "This message is shown after a swap is successful and communicates the exact amount of tokens the user has received for a swap. The $1 is a decimal number of tokens followed by the token symbol."
|
||||
|
@ -1813,9 +1813,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "Có một báo giá tốt hơn"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "Không có token nào khớp với $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1842,13 +1839,6 @@
|
||||
"message": "Thao tác này là bắt buộc và cấp cho MetaMask quyền hoán đổi $1 của bạn.",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "Phí mạng ước tính"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "“$1” là giá trị mà chúng tôi dự kiến sẽ là khoản phí thực sự. Số tiền chính xác phụ thuộc vào tình trạng mạng.",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "Phí mạng ước tính"
|
||||
},
|
||||
@ -1884,13 +1874,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "Giao dịch có thể không thành công, mức trượt giá tối đa quá thấp."
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1” là mức chi tiêu cao nhất của bạn. Khi mạng không ổn định, đây có thể là số tiền lớn.",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "Phí mạng tối đa"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "Mức trượt giá tối đa"
|
||||
},
|
||||
@ -1901,13 +1884,6 @@
|
||||
"message": "Chúng tôi luôn tìm giá tốt nhất từ các nguồn thanh khoản hàng đầu. Phí $1% được tự động tính vào báo giá này.",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"message": "$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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "Phí mạng dùng để chi trả chi phí xử lý giao dịch hoán đổi của bạn và lưu trữ giao dịch đó trên mạng $1. MetaMask không thu lợi từ khoản phí này."
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "Báo giá mới sẽ có sau $1",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1942,10 +1918,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "Khi giá giữa thời điểm đặt lệnh và thời điểm xác nhận lệnh thay đổi, hiện tượng này được gọi là \"trượt giá\". Giao dịch hoán đổi của bạn sẽ tự động hủy nếu mức trượt giá vượt quá \"mức trượt giá cho phép\" đã đặt."
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "Báo giá có bao gồm khoản phí $1% cho MetaMask",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "Báo giá $1/$2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1953,9 +1925,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "Nguồn báo giá"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "Báo giá được làm mới thường xuyên để thể hiện tình trạng hiện tại của thị trường."
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "Vui lòng yêu cầu báo giá mới để biết các mức tỷ lệ mới nhất."
|
||||
},
|
||||
@ -2016,9 +1985,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "Hoán đổi sang"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "Thao tác này sẽ cho phép hoán đổi $1."
|
||||
},
|
||||
"swapToConfirmWithHwWallet": {
|
||||
"message": "để xác nhận ví cứng của bạn"
|
||||
},
|
||||
@ -2057,9 +2023,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "Không xác định"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "Sử dụng báo giá tốt nhất"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "Nhiều token có thể dùng cùng một tên và ký hiệu. Hãy kiểm tra $1 để xác minh xem đây có phải là token bạn đang tìm kiếm không.",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -1517,9 +1517,6 @@
|
||||
"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."
|
||||
},
|
||||
"swapBetterQuoteAvailable": {
|
||||
"message": "有一个可用的更优报价"
|
||||
},
|
||||
"swapBuildQuotePlaceHolderText": {
|
||||
"message": "没有匹配的代币符合 $1",
|
||||
"description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text"
|
||||
@ -1537,13 +1534,6 @@
|
||||
"message": "这是必须的,并且允许 MetaMask 兑换您的 $1。",
|
||||
"description": "Gives the user info about the required approval transaction for swaps. $1 will be the symbol of a token being approved for swaps."
|
||||
},
|
||||
"swapEstimatedNetworkFee": {
|
||||
"message": "预计网络手续费"
|
||||
},
|
||||
"swapEstimatedNetworkFeeSummary": {
|
||||
"message": "“$1”是我们预计的实际产生费用。具体数额视网络情况而定。",
|
||||
"description": "$1 will be the translation of swapEstimatedNetworkFee, with the font bolded"
|
||||
},
|
||||
"swapEstimatedNetworkFees": {
|
||||
"message": "预计网络手续费"
|
||||
},
|
||||
@ -1565,13 +1555,6 @@
|
||||
"swapLowSlippageError": {
|
||||
"message": "交易可能失败,最大滑点过低。"
|
||||
},
|
||||
"swapMaxNetworkFeeInfo": {
|
||||
"message": "“$1”是您最多所话费的数量,当网络不稳定时,这可能是一个大的数额。",
|
||||
"description": "$1 will be the translation of swapMaxNetworkFees, with the font bolded"
|
||||
},
|
||||
"swapMaxNetworkFees": {
|
||||
"message": "最大网络手续费"
|
||||
},
|
||||
"swapMaxSlippage": {
|
||||
"message": "最大滑点"
|
||||
},
|
||||
@ -1582,13 +1565,6 @@
|
||||
"message": "我们每次都能从顶级流动性资源中找到最好的价格。每次报价都会自动收取1%的手续费用,以支持 MetaMask 的持续发展,使其更加完善。",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapNQuotes": {
|
||||
"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"
|
||||
},
|
||||
"swapNetworkFeeSummary": {
|
||||
"message": "网络手续费包括处理您的兑换和在以太坊($1)网络上存储的成本。MetaMask 不从这笔费用中获利。"
|
||||
},
|
||||
"swapNewQuoteIn": {
|
||||
"message": "$1 后更新报价",
|
||||
"description": "Tells the user the amount of time until the currently displayed quotes are update. $1 is a time that is counting down from 1:00 to 0:00"
|
||||
@ -1614,10 +1590,6 @@
|
||||
"swapQuoteDetailsSlippageInfo": {
|
||||
"message": "如果在您下订单和确认订单之间的价格发生了变化,这就叫做\"滑点\"。如果滑点超过您的\"最大滑点\"设置,您的兑换将自动取消。"
|
||||
},
|
||||
"swapQuoteIncludesRate": {
|
||||
"message": "报价包含 $1% MetaMask 手续费",
|
||||
"description": "Provides information about the fee that metamask takes for swaps. $1 is a decimal number."
|
||||
},
|
||||
"swapQuoteNofN": {
|
||||
"message": "报价 $1 / $2",
|
||||
"description": "A count of loaded quotes shown to the user while they are waiting for quotes to be fetched. $1 is the number of quotes already loaded, and $2 is the total number of quotes to load."
|
||||
@ -1625,9 +1597,6 @@
|
||||
"swapQuoteSource": {
|
||||
"message": "报价来源"
|
||||
},
|
||||
"swapQuotesAreRefreshed": {
|
||||
"message": "报价会经常刷新,以反映当前的市场状况。"
|
||||
},
|
||||
"swapQuotesExpiredErrorDescription": {
|
||||
"message": "请请求新的报价,以获得最新的价格。"
|
||||
},
|
||||
@ -1682,9 +1651,6 @@
|
||||
"swapSwapTo": {
|
||||
"message": "兑换到"
|
||||
},
|
||||
"swapThisWillAllowApprove": {
|
||||
"message": "这样将允许 $1 用于兑换。"
|
||||
},
|
||||
"swapTokenAvailable": {
|
||||
"message": "您的 $1 已添加到您的账户。",
|
||||
"description": "This message is shown after a swap is successful and communicates the exact amount of tokens the user has received for a swap. The $1 is a decimal number of tokens followed by the token symbol."
|
||||
@ -1699,9 +1665,6 @@
|
||||
"swapUnknown": {
|
||||
"message": "未知的"
|
||||
},
|
||||
"swapUsingBestQuote": {
|
||||
"message": "使用最好的报价"
|
||||
},
|
||||
"swapVerifyTokenExplanation": {
|
||||
"message": "多个代币可以使用相同的名称和符号。检查 $1(以太坊浏览器)以确认这是您正在寻找的代币。",
|
||||
"description": "This appears in a tooltip next to the verifyThisTokenOn message. It gives the user more information about why they should check the token on a block explorer. $1 will be the name or url of the block explorer, which will be the translation of 'etherscan' or a block explorer url specified for a custom network."
|
||||
|
@ -22,7 +22,7 @@
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: end;
|
||||
width: 55%;
|
||||
width: 52%;
|
||||
|
||||
&--flex-width {
|
||||
width: auto;
|
||||
|
@ -7,6 +7,9 @@ import {
|
||||
COLORS,
|
||||
FONT_WEIGHT,
|
||||
TYPOGRAPHY,
|
||||
DISPLAY,
|
||||
FLEX_WRAP,
|
||||
ALIGN_ITEMS,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
|
||||
export default function TransactionDetailItem({
|
||||
@ -26,6 +29,11 @@ export default function TransactionDetailItem({
|
||||
color={detailTitleColor}
|
||||
fontWeight={boldHeadings ? FONT_WEIGHT.BOLD : FONT_WEIGHT.NORMAL}
|
||||
variant={TYPOGRAPHY.H6}
|
||||
boxProps={{
|
||||
display: DISPLAY.FLEX,
|
||||
flexWrap: FLEX_WRAP.NO_WRAP,
|
||||
alignItems: ALIGN_ITEMS.CENTER,
|
||||
}}
|
||||
>
|
||||
{detailTitle}
|
||||
</Typography>
|
||||
|
@ -11,6 +11,9 @@ exports[`Swap renders the component with initial props 1`] = `
|
||||
<div
|
||||
class="swaps__header"
|
||||
>
|
||||
<div
|
||||
class="swaps__header-edit"
|
||||
/>
|
||||
<div
|
||||
class="swaps__title"
|
||||
>
|
||||
|
@ -0,0 +1,18 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`TimerIcon renders the TimerIcon component 1`] = `
|
||||
<div>
|
||||
<svg
|
||||
fill="none"
|
||||
height="15"
|
||||
viewBox="0 0 15 15"
|
||||
width="15"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M7.49835 0.510498C3.75226 0.510498 0.717102 3.54565 0.717102 7.29175C0.717102 11.0378 3.75226 14.073 7.49835 14.073C11.2444 14.073 14.2796 11.0378 14.2796 7.29175C14.2796 3.54565 11.2444 0.510498 7.49835 0.510498ZM7.49835 12.7605C4.4632 12.7605 2.0296 10.3269 2.0296 7.29175C2.0296 4.28394 4.4632 1.823 7.49835 1.823C10.5062 1.823 12.9671 4.28394 12.9671 7.29175C12.9671 10.3269 10.5062 12.7605 7.49835 12.7605ZM9.16632 9.91675C9.33038 10.0261 9.52179 9.99878 9.63116 9.83472L10.1507 9.15112C10.2601 8.98706 10.2327 8.79565 10.0687 8.68628L8.26398 7.34644V3.46362C8.26398 3.29956 8.09991 3.1355 7.93585 3.1355H7.06085C6.86945 3.1355 6.73273 3.29956 6.73273 3.46362V7.97534C6.73273 8.05737 6.76007 8.16675 6.8421 8.22144L9.16632 9.91675Z"
|
||||
fill="#037DD6"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
`;
|
@ -7,6 +7,7 @@ import { I18nContext } from '../../../contexts/i18n';
|
||||
import InfoTooltip from '../../../components/ui/info-tooltip';
|
||||
import { getSwapsQuoteRefreshTime } from '../../../ducks/swaps/swaps';
|
||||
import { SECOND } from '../../../../shared/constants/time';
|
||||
import TimerIcon from './timer-icon';
|
||||
|
||||
// Return the mm:ss start time of the countdown timer.
|
||||
// If time has elapsed between `timeStarted` the time current time,
|
||||
@ -101,6 +102,7 @@ export default function CountdownTimer({
|
||||
warningTime && timeBelowWarningTime(timer, warningTime),
|
||||
})}
|
||||
>
|
||||
<TimerIcon />
|
||||
{time}
|
||||
</div>
|
||||
{!timeOnly && infoTooltipLabelKey ? (
|
||||
|
@ -14,7 +14,6 @@ const createProps = (customProps = {}) => {
|
||||
timerBase: 5,
|
||||
warningTime: '0:30',
|
||||
labelKey: 'swapNewQuoteIn',
|
||||
infoTooltipLabelKey: 'swapQuotesAreRefreshed',
|
||||
...customProps,
|
||||
};
|
||||
};
|
||||
|
@ -1,7 +1,6 @@
|
||||
.countdown-timer {
|
||||
@include H7;
|
||||
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@ -15,6 +14,7 @@
|
||||
|
||||
> span {
|
||||
display: flex;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
&--warning {
|
||||
@ -27,6 +27,7 @@
|
||||
&__time {
|
||||
@include H7;
|
||||
|
||||
font-weight: bold;
|
||||
width: 24px;
|
||||
margin-left: 4px;
|
||||
margin-right: 2px;
|
||||
|
18
ui/pages/swaps/countdown-timer/timer-icon.js
Normal file
18
ui/pages/swaps/countdown-timer/timer-icon.js
Normal file
@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
|
||||
export default function TimerIcon() {
|
||||
return (
|
||||
<svg
|
||||
width="15"
|
||||
height="15"
|
||||
viewBox="0 0 15 15"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M7.49835 0.510498C3.75226 0.510498 0.717102 3.54565 0.717102 7.29175C0.717102 11.0378 3.75226 14.073 7.49835 14.073C11.2444 14.073 14.2796 11.0378 14.2796 7.29175C14.2796 3.54565 11.2444 0.510498 7.49835 0.510498ZM7.49835 12.7605C4.4632 12.7605 2.0296 10.3269 2.0296 7.29175C2.0296 4.28394 4.4632 1.823 7.49835 1.823C10.5062 1.823 12.9671 4.28394 12.9671 7.29175C12.9671 10.3269 10.5062 12.7605 7.49835 12.7605ZM9.16632 9.91675C9.33038 10.0261 9.52179 9.99878 9.63116 9.83472L10.1507 9.15112C10.2601 8.98706 10.2327 8.79565 10.0687 8.68628L8.26398 7.34644V3.46362C8.26398 3.29956 8.09991 3.1355 7.93585 3.1355H7.06085C6.86945 3.1355 6.73273 3.29956 6.73273 3.46362V7.97534C6.73273 8.05737 6.76007 8.16675 6.8421 8.22144L9.16632 9.91675Z"
|
||||
fill="#037DD6"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
11
ui/pages/swaps/countdown-timer/timer-icon.test.js
Normal file
11
ui/pages/swaps/countdown-timer/timer-icon.test.js
Normal file
@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
|
||||
import { renderWithProvider } from '../../../../test/jest';
|
||||
import TimerIcon from './timer-icon';
|
||||
|
||||
describe('TimerIcon', () => {
|
||||
it('renders the TimerIcon component', () => {
|
||||
const { container } = renderWithProvider(<TimerIcon />);
|
||||
expect(container).toMatchSnapshot();
|
||||
});
|
||||
});
|
@ -1,151 +1,5 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`FeeCard renders the component with EIP-1559 enabled 1`] = `
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-header"
|
||||
data-testid="fee-card__savings-and-quotes-header"
|
||||
>
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-row"
|
||||
>
|
||||
<p
|
||||
class="fee-card__savings-text"
|
||||
>
|
||||
Using the best quote
|
||||
</p>
|
||||
<div
|
||||
class="fee-card__quote-link-container"
|
||||
>
|
||||
<p
|
||||
class="fee-card__quote-link-text"
|
||||
>
|
||||
6 quotes
|
||||
</p>
|
||||
<div
|
||||
class="fee-card__caret-right"
|
||||
>
|
||||
<i
|
||||
class="fa fa-angle-up"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
exports[`FeeCard renders the component with EIP-1559 enabled 1`] = `null`;
|
||||
|
||||
exports[`FeeCard renders the component with EIP-1559 enabled 2`] = `
|
||||
<div
|
||||
class="fee-card__top-bordered-row"
|
||||
>
|
||||
<div
|
||||
class="fee-card__row-label"
|
||||
>
|
||||
<div
|
||||
class="fee-card__row-header-text"
|
||||
>
|
||||
Quote includes a 0.875% MetaMask fee
|
||||
</div>
|
||||
<div
|
||||
class="info-tooltip"
|
||||
>
|
||||
<div
|
||||
class="fee-card__info-tooltip-container"
|
||||
>
|
||||
<div
|
||||
aria-describedby="tippy-tooltip-7"
|
||||
class="info-tooltip__tooltip-container"
|
||||
data-original-title="null"
|
||||
data-tooltipped=""
|
||||
style="display: inline;"
|
||||
tabindex="0"
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 10 10"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M5 0C2.2 0 0 2.2 0 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 2c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.2-.7-.6.3-.8.7-.8zm.7 6H4.3V4.3h1.5V8z"
|
||||
fill="#b8b8b8"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`FeeCard renders the component with initial props 1`] = `
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-header"
|
||||
data-testid="fee-card__savings-and-quotes-header"
|
||||
>
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-row"
|
||||
>
|
||||
<p
|
||||
class="fee-card__savings-text"
|
||||
>
|
||||
Using the best quote
|
||||
</p>
|
||||
<div
|
||||
class="fee-card__quote-link-container"
|
||||
>
|
||||
<p
|
||||
class="fee-card__quote-link-text"
|
||||
>
|
||||
6 quotes
|
||||
</p>
|
||||
<div
|
||||
class="fee-card__caret-right"
|
||||
>
|
||||
<i
|
||||
class="fa fa-angle-up"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`FeeCard renders the component with initial props 2`] = `
|
||||
<div
|
||||
class="fee-card__top-bordered-row"
|
||||
>
|
||||
<div
|
||||
class="fee-card__row-label"
|
||||
>
|
||||
<div
|
||||
class="fee-card__row-header-text"
|
||||
>
|
||||
Quote includes a 0.875% MetaMask fee
|
||||
</div>
|
||||
<div
|
||||
class="info-tooltip"
|
||||
>
|
||||
<div
|
||||
class="fee-card__info-tooltip-container"
|
||||
>
|
||||
<div
|
||||
aria-describedby="tippy-tooltip-3"
|
||||
class="info-tooltip__tooltip-container"
|
||||
data-original-title="null"
|
||||
data-tooltipped=""
|
||||
style="display: inline;"
|
||||
tabindex="0"
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 10 10"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M5 0C2.2 0 0 2.2 0 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 2c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.2-.7-.6.3-.8.7-.8zm.7 6H4.3V4.3h1.5V8z"
|
||||
fill="#b8b8b8"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
exports[`FeeCard renders the component with initial props 1`] = `null`;
|
||||
|
@ -12,7 +12,6 @@ import {
|
||||
} from '../../../../shared/constants/network';
|
||||
import TransactionDetail from '../../../components/app/transaction-detail/transaction-detail.component';
|
||||
import TransactionDetailItem from '../../../components/app/transaction-detail-item/transaction-detail-item.component';
|
||||
import GasTiming from '../../../components/app/gas-timing/gas-timing.component';
|
||||
import Typography from '../../../components/ui/typography';
|
||||
import {
|
||||
COLORS,
|
||||
@ -28,28 +27,16 @@ export default function FeeCard({
|
||||
secondaryFee,
|
||||
hideTokenApprovalRow,
|
||||
onFeeCardMaxRowClick,
|
||||
tokenApprovalTextComponent,
|
||||
tokenApprovalSourceTokenSymbol,
|
||||
onTokenApprovalClick,
|
||||
metaMaskFee,
|
||||
isBestQuote,
|
||||
numberOfQuotes,
|
||||
onQuotesClick,
|
||||
tokenConversionRate,
|
||||
chainId,
|
||||
networkAndAccountSupports1559,
|
||||
maxPriorityFeePerGasDecGWEI,
|
||||
maxFeePerGasDecGWEI,
|
||||
isBestQuote,
|
||||
}) {
|
||||
const t = useContext(I18nContext);
|
||||
|
||||
let bestQuoteText = '';
|
||||
if (isBestQuote && tokenConversionRate) {
|
||||
bestQuoteText = t('swapUsingBestQuote');
|
||||
} else if (tokenConversionRate) {
|
||||
bestQuoteText = t('swapBetterQuoteAvailable');
|
||||
}
|
||||
|
||||
const getTranslatedNetworkName = () => {
|
||||
switch (chainId) {
|
||||
case MAINNET_CHAIN_ID:
|
||||
@ -72,194 +59,96 @@ export default function FeeCard({
|
||||
event: 'Clicked "Gas Fees: Learn More" Link',
|
||||
});
|
||||
|
||||
const tokenApprovalTextComponent = (
|
||||
<span key="fee-card-approve-symbol" className="fee-card__bold">
|
||||
{t('enableToken', [tokenApprovalSourceTokenSymbol])}
|
||||
</span>
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="fee-card">
|
||||
<div
|
||||
className="fee-card__savings-and-quotes-header"
|
||||
data-testid="fee-card__savings-and-quotes-header"
|
||||
>
|
||||
<div className="fee-card__savings-and-quotes-row">
|
||||
{bestQuoteText && (
|
||||
<p className="fee-card__savings-text">{bestQuoteText}</p>
|
||||
)}
|
||||
{numberOfQuotes > 1 && (
|
||||
<div
|
||||
className="fee-card__quote-link-container"
|
||||
onClick={onQuotesClick}
|
||||
>
|
||||
<p className="fee-card__quote-link-text">
|
||||
{t('swapNQuotes', [numberOfQuotes])}
|
||||
</p>
|
||||
<div className="fee-card__caret-right">
|
||||
<i className="fa fa-angle-up" />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="fee-card__main">
|
||||
{networkAndAccountSupports1559 && (
|
||||
<TransactionDetail
|
||||
rows={[
|
||||
<TransactionDetailItem
|
||||
key="gas-item"
|
||||
detailTitle={
|
||||
<>
|
||||
{t('transactionDetailGasHeading')}
|
||||
<InfoTooltip
|
||||
position="top"
|
||||
contentText={
|
||||
<>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
{t('swapGasFeesSummary', [
|
||||
getTranslatedNetworkName(),
|
||||
])}
|
||||
</p>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
{t('swapGasFeesDetails')}
|
||||
</p>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
<a
|
||||
className="fee-card__link"
|
||||
onClick={() => {
|
||||
gasFeesLearnMoreLinkClickedEvent();
|
||||
global.platform.openTab({
|
||||
url: GAS_FEES_LEARN_MORE_URL,
|
||||
});
|
||||
}}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{t('swapGasFeesLearnMore')}
|
||||
</a>
|
||||
</p>
|
||||
</>
|
||||
}
|
||||
containerClassName="fee-card__info-tooltip-content-container"
|
||||
wrapperClassName="fee-card__row-label fee-card__info-tooltip-container"
|
||||
wide
|
||||
/>
|
||||
</>
|
||||
}
|
||||
detailText={primaryFee.fee}
|
||||
detailTotal={secondaryFee.fee}
|
||||
subTitle={
|
||||
<GasTiming
|
||||
maxPriorityFeePerGas={maxPriorityFeePerGasDecGWEI}
|
||||
maxFeePerGas={maxFeePerGasDecGWEI}
|
||||
<TransactionDetail
|
||||
rows={[
|
||||
<TransactionDetailItem
|
||||
key="gas-item"
|
||||
detailTitle={
|
||||
<>
|
||||
{t('transactionDetailGasHeading')}
|
||||
<InfoTooltip
|
||||
position="top"
|
||||
contentText={
|
||||
<>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
{t('swapGasFeesSummary', [
|
||||
getTranslatedNetworkName(),
|
||||
])}
|
||||
</p>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
{t('swapGasFeesDetails')}
|
||||
</p>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
<a
|
||||
className="fee-card__link"
|
||||
onClick={() => {
|
||||
gasFeesLearnMoreLinkClickedEvent();
|
||||
global.platform.openTab({
|
||||
url: GAS_FEES_LEARN_MORE_URL,
|
||||
});
|
||||
}}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{t('swapGasFeesLearnMore')}
|
||||
</a>
|
||||
</p>
|
||||
</>
|
||||
}
|
||||
containerClassName="fee-card__info-tooltip-content-container"
|
||||
wrapperClassName="fee-card__row-label fee-card__info-tooltip-container"
|
||||
wide
|
||||
/>
|
||||
}
|
||||
subText={
|
||||
secondaryFee?.maxFee !== undefined && (
|
||||
<>
|
||||
<Typography
|
||||
tag="span"
|
||||
fontWeight={FONT_WEIGHT.BOLD}
|
||||
color={COLORS.UI4}
|
||||
variant={TYPOGRAPHY.H7}
|
||||
>
|
||||
{t('maxFee')}
|
||||
</Typography>
|
||||
{`: ${secondaryFee.maxFee}`}
|
||||
<span
|
||||
className="fee-card__edit-link"
|
||||
onClick={() => onFeeCardMaxRowClick()}
|
||||
>
|
||||
{t('edit')}
|
||||
</span>
|
||||
</>
|
||||
)
|
||||
}
|
||||
/>,
|
||||
]}
|
||||
/>
|
||||
)}
|
||||
{!networkAndAccountSupports1559 && (
|
||||
<div
|
||||
className="fee-card__row-header"
|
||||
data-testid="fee-card__row-header"
|
||||
>
|
||||
<div>
|
||||
<div className="fee-card__row-header-text--bold">
|
||||
{t('swapEstimatedNetworkFee')}
|
||||
</div>
|
||||
<InfoTooltip
|
||||
position="top"
|
||||
contentText={
|
||||
</>
|
||||
}
|
||||
detailText={primaryFee.fee}
|
||||
detailTotal={secondaryFee.fee}
|
||||
subText={
|
||||
secondaryFee?.maxFee !== undefined && (
|
||||
<>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
{t('swapNetworkFeeSummary', [getTranslatedNetworkName()])}
|
||||
</p>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
{t('swapEstimatedNetworkFeeSummary', [
|
||||
<span className="fee-card__bold" key="fee-card-bold-1">
|
||||
{t('swapEstimatedNetworkFee')}
|
||||
</span>,
|
||||
])}
|
||||
</p>
|
||||
<p className="fee-card__info-tooltip-paragraph">
|
||||
{t('swapMaxNetworkFeeInfo', [
|
||||
<span className="fee-card__bold" key="fee-card-bold-2">
|
||||
{t('swapMaxNetworkFees')}
|
||||
</span>,
|
||||
])}
|
||||
</p>
|
||||
<Typography
|
||||
tag="span"
|
||||
fontWeight={FONT_WEIGHT.BOLD}
|
||||
color={COLORS.UI4}
|
||||
variant={TYPOGRAPHY.H7}
|
||||
>
|
||||
{t('maxFee')}
|
||||
</Typography>
|
||||
{`: ${secondaryFee.maxFee}`}
|
||||
<span
|
||||
className="fee-card__edit-link"
|
||||
onClick={() => onFeeCardMaxRowClick()}
|
||||
>
|
||||
{t('edit')}
|
||||
</span>
|
||||
</>
|
||||
}
|
||||
containerClassName="fee-card__info-tooltip-content-container"
|
||||
wrapperClassName="fee-card__row-label fee-card__info-tooltip-container"
|
||||
wide
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div className="fee-card__row-header-secondary--bold">
|
||||
{primaryFee.fee}
|
||||
</div>
|
||||
{secondaryFee && (
|
||||
<div className="fee-card__row-header-primary--bold">
|
||||
{secondaryFee.fee}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{!networkAndAccountSupports1559 && (
|
||||
<div
|
||||
className="fee-card__row-header"
|
||||
onClick={() => onFeeCardMaxRowClick()}
|
||||
>
|
||||
<div>
|
||||
<div className="fee-card__row-header-text">
|
||||
{t('swapMaxNetworkFees')}
|
||||
</div>
|
||||
<div className="fee-card__link">{t('edit')}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className="fee-card__row-header-secondary">
|
||||
{primaryFee.maxFee}
|
||||
</div>
|
||||
{secondaryFee?.maxFee !== undefined && (
|
||||
<div className="fee-card__row-header-primary">
|
||||
{secondaryFee.maxFee}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
)
|
||||
}
|
||||
/>,
|
||||
]}
|
||||
/>
|
||||
{!hideTokenApprovalRow && (
|
||||
<div className="fee-card__row-header">
|
||||
<div className="fee-card__row-label">
|
||||
<div className="fee-card__row-header-text">
|
||||
{t('swapThisWillAllowApprove', [tokenApprovalTextComponent])}
|
||||
{t('swapEnableTokenForSwapping', [tokenApprovalTextComponent])}
|
||||
<InfoTooltip
|
||||
position="top"
|
||||
contentText={t('swapEnableDescription', [
|
||||
tokenApprovalSourceTokenSymbol,
|
||||
])}
|
||||
containerClassName="fee-card__info-tooltip-container"
|
||||
/>
|
||||
</div>
|
||||
<InfoTooltip
|
||||
position="top"
|
||||
contentText={t('swapEnableDescription', [
|
||||
tokenApprovalSourceTokenSymbol,
|
||||
])}
|
||||
containerClassName="fee-card__info-tooltip-container"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
className="fee-card__link"
|
||||
@ -269,16 +158,26 @@ export default function FeeCard({
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div className="fee-card__top-bordered-row">
|
||||
<div className="fee-card__row-header">
|
||||
<div className="fee-card__row-label">
|
||||
<div className="fee-card__row-header-text">
|
||||
{t('swapQuoteIncludesRate', [metaMaskFee])}
|
||||
{numberOfQuotes > 1 && (
|
||||
<span
|
||||
onClick={onQuotesClick}
|
||||
className="fee-card__quote-link-text"
|
||||
>
|
||||
{isBestQuote
|
||||
? t('swapBestOfNQuotes', [numberOfQuotes])
|
||||
: t('swapNQuotesWithDot', [numberOfQuotes])}
|
||||
</span>
|
||||
)}
|
||||
{t('swapIncludesMMFee', [metaMaskFee])}
|
||||
<InfoTooltip
|
||||
position="top"
|
||||
contentText={t('swapMetaMaskFeeDescription', [metaMaskFee])}
|
||||
wrapperClassName="fee-card__info-tooltip-container"
|
||||
/>
|
||||
</div>
|
||||
<InfoTooltip
|
||||
position="top"
|
||||
contentText={t('swapMetaMaskFeeDescription', [metaMaskFee])}
|
||||
wrapperClassName="fee-card__info-tooltip-container"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -297,16 +196,11 @@ FeeCard.propTypes = {
|
||||
}),
|
||||
onFeeCardMaxRowClick: PropTypes.func.isRequired,
|
||||
hideTokenApprovalRow: PropTypes.bool.isRequired,
|
||||
tokenApprovalTextComponent: PropTypes.node,
|
||||
tokenApprovalSourceTokenSymbol: PropTypes.string,
|
||||
onTokenApprovalClick: PropTypes.func,
|
||||
metaMaskFee: PropTypes.string.isRequired,
|
||||
isBestQuote: PropTypes.bool,
|
||||
onQuotesClick: PropTypes.func.isRequired,
|
||||
numberOfQuotes: PropTypes.number.isRequired,
|
||||
tokenConversionRate: PropTypes.number,
|
||||
chainId: PropTypes.string.isRequired,
|
||||
networkAndAccountSupports1559: PropTypes.bool.isRequired,
|
||||
maxPriorityFeePerGasDecGWEI: PropTypes.string,
|
||||
maxFeePerGasDecGWEI: PropTypes.string,
|
||||
isBestQuote: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
@ -5,7 +5,7 @@ import { MAINNET_CHAIN_ID } from '../../../../shared/constants/network';
|
||||
import FeeCard from './fee-card';
|
||||
|
||||
const tokenApprovalTextComponent = (
|
||||
<span key="swaps-view-quote-approve-symbol-1" className="view-quote__bold">
|
||||
<span key="fee-card-approve-symbol" className="view-quote__bold">
|
||||
ABC
|
||||
</span>
|
||||
);
|
||||
|
@ -65,10 +65,7 @@ const createProps = (customProps = {}) => {
|
||||
hideTokenApprovalRow: false,
|
||||
onFeeCardMaxRowClick: jest.fn(),
|
||||
tokenApprovalTextComponent: (
|
||||
<span
|
||||
key="swaps-view-quote-approve-symbol-1"
|
||||
className="view-quote__bold"
|
||||
>
|
||||
<span key="fee-card-approve-symbol" className="fee-card__bold">
|
||||
ABC
|
||||
</span>
|
||||
),
|
||||
@ -90,20 +87,13 @@ describe('FeeCard', () => {
|
||||
useSelector.mockImplementation(generateUseSelectorRouter());
|
||||
const props = createProps();
|
||||
const { getByText } = renderWithProvider(<FeeCard {...props} />);
|
||||
expect(getByText('Using the best quote')).toBeInTheDocument();
|
||||
expect(getByText('6 quotes')).toBeInTheDocument();
|
||||
expect(getByText('Max network fee')).toBeInTheDocument();
|
||||
expect(getByText('Estimated network fee')).toBeInTheDocument();
|
||||
expect(getByText('Best of 6 quotes.')).toBeInTheDocument();
|
||||
expect(getByText('Estimated gas fee')).toBeInTheDocument();
|
||||
expect(getByText('Max fee')).toBeInTheDocument();
|
||||
expect(getByText(props.primaryFee.fee)).toBeInTheDocument();
|
||||
expect(getByText(props.primaryFee.maxFee)).toBeInTheDocument();
|
||||
expect(getByText(props.secondaryFee.fee)).toBeInTheDocument();
|
||||
expect(getByText(props.secondaryFee.maxFee)).toBeInTheDocument();
|
||||
expect(
|
||||
getByText('Quote includes a 0.875% MetaMask fee'),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
document.querySelector('.fee-card__savings-and-quotes-header'),
|
||||
).toMatchSnapshot();
|
||||
expect(getByText(`: ${props.secondaryFee.maxFee}`)).toBeInTheDocument();
|
||||
expect(getByText('Includes a 0.875% MetaMask fee.')).toBeInTheDocument();
|
||||
expect(
|
||||
document.querySelector('.fee-card__top-bordered-row'),
|
||||
).toMatchSnapshot();
|
||||
@ -117,19 +107,13 @@ describe('FeeCard', () => {
|
||||
maxFeePerGasDecGWEI: '4',
|
||||
});
|
||||
const { getByText } = renderWithProvider(<FeeCard {...props} />, store);
|
||||
expect(getByText('Using the best quote')).toBeInTheDocument();
|
||||
expect(getByText('6 quotes')).toBeInTheDocument();
|
||||
expect(getByText('Best of 6 quotes.')).toBeInTheDocument();
|
||||
expect(getByText('Estimated gas fee')).toBeInTheDocument();
|
||||
expect(getByText('Maybe in 5 minutes')).toBeInTheDocument();
|
||||
expect(getByText('Max fee')).toBeInTheDocument();
|
||||
expect(getByText(props.primaryFee.fee)).toBeInTheDocument();
|
||||
expect(getByText(props.secondaryFee.fee)).toBeInTheDocument();
|
||||
expect(getByText(`: ${props.secondaryFee.maxFee}`)).toBeInTheDocument();
|
||||
expect(
|
||||
getByText('Quote includes a 0.875% MetaMask fee'),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
document.querySelector('.fee-card__savings-and-quotes-header'),
|
||||
).toMatchSnapshot();
|
||||
expect(getByText('Includes a 0.875% MetaMask fee.')).toBeInTheDocument();
|
||||
expect(
|
||||
document.querySelector('.fee-card__top-bordered-row'),
|
||||
).toMatchSnapshot();
|
||||
|
@ -3,28 +3,22 @@
|
||||
|
||||
@include H7;
|
||||
|
||||
.transaction-detail-rows {
|
||||
margin-top: 8px;
|
||||
|
||||
.transaction-detail-item {
|
||||
&:last-of-type {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__savings-and-quotes-header {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__savings-and-quotes-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
left: 58px;
|
||||
height: 39px;
|
||||
background: $Blue-000;
|
||||
border: 1px solid $Blue-500;
|
||||
border-top-right-radius: 8px;
|
||||
border-top-left-radius: 8px;
|
||||
border-bottom: 0;
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
&__savings-text {
|
||||
@include H6;
|
||||
|
||||
@ -42,6 +36,8 @@
|
||||
@include H7;
|
||||
|
||||
color: $Blue-500;
|
||||
cursor: pointer;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
&__caret-right {
|
||||
@ -59,12 +55,11 @@
|
||||
}
|
||||
|
||||
&__main {
|
||||
border: 1px solid $Blue-500;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
width: 100%;
|
||||
max-width: 311px;
|
||||
padding: 16px 16px 12px 16px;
|
||||
.transaction-detail {
|
||||
border-top: 1px solid #bbc0c5;
|
||||
border-bottom: 1px solid #bbc0c5;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
&__row-header {
|
||||
@ -86,13 +81,22 @@
|
||||
&__row-header-text,
|
||||
&__row-header-text--bold {
|
||||
margin-right: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&__row-header-text--bold {
|
||||
color: $Black-100;
|
||||
}
|
||||
|
||||
&__row-header-text {
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
|
||||
.info-tooltip {
|
||||
padding-left: 4px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&__row,
|
||||
&__top-bordered-row {
|
||||
display: flex;
|
||||
@ -103,12 +107,12 @@
|
||||
|
||||
&__top-bordered-row {
|
||||
border-top: 1px solid #bbc0c5;
|
||||
padding-top: 10px;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
&__row-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
|
||||
img {
|
||||
height: 10px;
|
||||
|
@ -34,6 +34,7 @@ import {
|
||||
fetchAndSetSwapsGasPriceInfo,
|
||||
fetchSwapsLiveness,
|
||||
getReviewSwapClickedTimestamp,
|
||||
navigateBackToBuildQuote,
|
||||
} from '../../ducks/swaps/swaps';
|
||||
import {
|
||||
checkNetworkAndAccountSupports1559,
|
||||
@ -91,6 +92,7 @@ export default function Swap() {
|
||||
const isAwaitingSignaturesRoute = pathname === AWAITING_SIGNATURES_ROUTE;
|
||||
const isSwapsErrorRoute = pathname === SWAPS_ERROR_ROUTE;
|
||||
const isLoadingQuotesRoute = pathname === LOADING_QUOTES_ROUTE;
|
||||
const isViewQuoteRoute = pathname === VIEW_QUOTE_ROUTE;
|
||||
|
||||
const fetchParams = useSelector(getFetchParams, isEqual);
|
||||
const { destinationTokenInfo = {} } = fetchParams?.metaData || {};
|
||||
@ -266,20 +268,26 @@ export default function Swap() {
|
||||
<div className="swaps">
|
||||
<div className="swaps__container">
|
||||
<div className="swaps__header">
|
||||
<div
|
||||
className="swaps__header-edit"
|
||||
onClick={async () => {
|
||||
await dispatch(navigateBackToBuildQuote(history));
|
||||
}}
|
||||
>
|
||||
{isViewQuoteRoute && t('edit')}
|
||||
</div>
|
||||
<div className="swaps__title">{t('swap')}</div>
|
||||
{!isAwaitingSwapRoute && !isAwaitingSignaturesRoute && (
|
||||
<div
|
||||
className="swaps__header-cancel"
|
||||
onClick={async () => {
|
||||
clearTemporaryTokenRef.current();
|
||||
dispatch(clearSwapsState());
|
||||
await dispatch(resetBackgroundSwapsState());
|
||||
history.push(DEFAULT_ROUTE);
|
||||
}}
|
||||
>
|
||||
{t('cancel')}
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
className="swaps__header-cancel"
|
||||
onClick={async () => {
|
||||
clearTemporaryTokenRef.current();
|
||||
dispatch(clearSwapsState());
|
||||
await dispatch(resetBackgroundSwapsState());
|
||||
history.push(DEFAULT_ROUTE);
|
||||
}}
|
||||
>
|
||||
{!isAwaitingSwapRoute && !isAwaitingSignaturesRoute && t('cancel')}
|
||||
</div>
|
||||
</div>
|
||||
<div className="swaps__content">
|
||||
<Switch>
|
||||
|
@ -68,6 +68,8 @@
|
||||
font-weight: bold;
|
||||
color: $Black-100;
|
||||
margin-top: -5px;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__header {
|
||||
@ -80,6 +82,7 @@
|
||||
background: $Grey-000;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
flex-direction: row;
|
||||
|
||||
@media screen and (min-width: $break-large) {
|
||||
padding-top: 8px;
|
||||
@ -93,7 +96,17 @@
|
||||
|
||||
color: $Blue-500;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 24px;
|
||||
padding-right: 24px;
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&__header-edit {
|
||||
@include H7;
|
||||
|
||||
color: $Blue-500;
|
||||
cursor: pointer;
|
||||
padding-left: 24px;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ exports[`MainQuoteSummary renders the component with initial props 3`] = `
|
||||
>
|
||||
<span
|
||||
class="main-quote-summary__quote-large-number"
|
||||
style="font-size: 60px; line-height: 48px;"
|
||||
style="font-size: 50px; line-height: 48px;"
|
||||
>
|
||||
0.2
|
||||
</span>
|
||||
|
@ -4,10 +4,10 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
max-height: 196px;
|
||||
min-height: 196px;
|
||||
width: 100%;
|
||||
color: $Black-100;
|
||||
margin-top: 28px;
|
||||
margin-bottom: 56px;
|
||||
|
||||
&__source-row,
|
||||
&__destination-row {
|
||||
@ -96,7 +96,7 @@
|
||||
}
|
||||
|
||||
&__quote-large-number {
|
||||
font-size: 60px;
|
||||
font-size: 50px;
|
||||
line-height: 48px;
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ import { formatSwapsValueForDisplay } from '../swaps.util';
|
||||
|
||||
function getFontSizesAndLineHeights(fontSizeScore) {
|
||||
if (fontSizeScore <= 9) {
|
||||
return [60, 48];
|
||||
return [50, 48];
|
||||
}
|
||||
if (fontSizeScore <= 13) {
|
||||
return [40, 32];
|
||||
|
@ -48,14 +48,4 @@
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__buttons {
|
||||
@media screen and (max-width: $break-small) {
|
||||
&--border {
|
||||
.swaps-footer__custom-page-container-footer-class {
|
||||
border-top: 1px solid #d2d8dd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -79,6 +79,8 @@ const getBaseUrlForNewSwapsApi = (type, chainId) => {
|
||||
};
|
||||
|
||||
export const getBaseApi = function (type, chainId = MAINNET_CHAIN_ID) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
chainId = chainId === RINKEBY_CHAIN_ID ? MAINNET_CHAIN_ID : chainId;
|
||||
const baseUrl = getBaseUrlForNewSwapsApi(type, chainId);
|
||||
const chainIdDecimal = chainId && parseInt(chainId, 16);
|
||||
if (!baseUrl) {
|
||||
|
@ -72,35 +72,6 @@ exports[`ViewQuote renders the component with EIP-1559 enabled 2`] = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`ViewQuote renders the component with EIP-1559 enabled 3`] = `
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-header"
|
||||
data-testid="fee-card__savings-and-quotes-header"
|
||||
>
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-row"
|
||||
>
|
||||
|
||||
<div
|
||||
class="fee-card__quote-link-container"
|
||||
>
|
||||
<p
|
||||
class="fee-card__quote-link-text"
|
||||
>
|
||||
3 quotes
|
||||
</p>
|
||||
<div
|
||||
class="fee-card__caret-right"
|
||||
>
|
||||
<i
|
||||
class="fa fa-angle-up"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`ViewQuote renders the component with initial props 1`] = `
|
||||
<div
|
||||
class="main-quote-summary__source-row"
|
||||
@ -172,77 +143,3 @@ exports[`ViewQuote renders the component with initial props 2`] = `
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`ViewQuote renders the component with initial props 3`] = `
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-header"
|
||||
data-testid="fee-card__savings-and-quotes-header"
|
||||
>
|
||||
<div
|
||||
class="fee-card__savings-and-quotes-row"
|
||||
>
|
||||
|
||||
<div
|
||||
class="fee-card__quote-link-container"
|
||||
>
|
||||
<p
|
||||
class="fee-card__quote-link-text"
|
||||
>
|
||||
3 quotes
|
||||
</p>
|
||||
<div
|
||||
class="fee-card__caret-right"
|
||||
>
|
||||
<i
|
||||
class="fa fa-angle-up"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`ViewQuote renders the component with initial props 4`] = `
|
||||
<div
|
||||
class="fee-card__row-header"
|
||||
data-testid="fee-card__row-header"
|
||||
>
|
||||
<div>
|
||||
<div
|
||||
class="fee-card__row-header-text--bold"
|
||||
>
|
||||
Estimated network fee
|
||||
</div>
|
||||
<div
|
||||
class="info-tooltip"
|
||||
>
|
||||
<div
|
||||
class="fee-card__row-label fee-card__info-tooltip-container"
|
||||
>
|
||||
<div
|
||||
aria-describedby="tippy-tooltip-2"
|
||||
class="info-tooltip__tooltip-container fee-card__info-tooltip-content-container"
|
||||
data-original-title="null"
|
||||
data-tooltipped=""
|
||||
style="display: inline;"
|
||||
tabindex="0"
|
||||
>
|
||||
<InfoTooltipIcon />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div
|
||||
class="fee-card__row-header-secondary--bold"
|
||||
>
|
||||
0 ETH
|
||||
</div>
|
||||
<div
|
||||
class="fee-card__row-header-primary--bold"
|
||||
>
|
||||
0
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
@ -13,7 +13,6 @@
|
||||
height: 100%;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
justify-content: space-between;
|
||||
|
||||
&_modal > div:not(.view-quote__warning-wrapper) {
|
||||
opacity: 0.6;
|
||||
@ -169,7 +168,7 @@
|
||||
justify-content: center;
|
||||
max-width: 340px;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 28px;
|
||||
margin-bottom: 8px;
|
||||
|
||||
@media screen and (min-width: $break-large) {
|
||||
&--thin {
|
||||
@ -185,12 +184,8 @@
|
||||
}
|
||||
|
||||
&__countdown-timer-container {
|
||||
width: 152px;
|
||||
min-height: 32px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
border-radius: 42px;
|
||||
background: #f2f3f4;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,6 @@ import {
|
||||
getDestinationTokenInfo,
|
||||
getUsedSwapsGasPrice,
|
||||
getTopQuote,
|
||||
navigateBackToBuildQuote,
|
||||
signAndSendTransactions,
|
||||
getBackgroundSwapRouteState,
|
||||
swapsQuoteSelected,
|
||||
@ -80,7 +79,6 @@ import {
|
||||
hexToDecimal,
|
||||
getValueFromWeiHex,
|
||||
decGWEIToHexWEI,
|
||||
hexWEIToDecGWEI,
|
||||
addHexes,
|
||||
} from '../../../helpers/utils/conversions.util';
|
||||
import MainQuoteSummary from '../main-quote-summary';
|
||||
@ -573,12 +571,6 @@ export default function ViewQuote() {
|
||||
);
|
||||
};
|
||||
|
||||
const tokenApprovalTextComponent = (
|
||||
<span key="swaps-view-quote-approve-symbol-1" className="view-quote__bold">
|
||||
{sourceTokenSymbol}
|
||||
</span>
|
||||
);
|
||||
|
||||
const actionableBalanceErrorMessage = tokenBalanceUnavailable
|
||||
? t('swapTokenBalanceUnavailable', [sourceTokenSymbol])
|
||||
: t('swapApproveNeedMoreTokens', [
|
||||
@ -733,7 +725,6 @@ export default function ViewQuote() {
|
||||
<CountdownTimer
|
||||
timeStarted={quotesLastFetched}
|
||||
warningTime="0:30"
|
||||
infoTooltipLabelKey="swapQuotesAreRefreshed"
|
||||
labelKey="swapNewQuoteIn"
|
||||
/>
|
||||
</div>
|
||||
@ -769,25 +760,16 @@ export default function ViewQuote() {
|
||||
hideTokenApprovalRow={
|
||||
!approveTxParams || (balanceError && !warningHidden)
|
||||
}
|
||||
tokenApprovalTextComponent={tokenApprovalTextComponent}
|
||||
tokenApprovalSourceTokenSymbol={sourceTokenSymbol}
|
||||
onTokenApprovalClick={onFeeCardTokenApprovalClick}
|
||||
metaMaskFee={String(metaMaskFee)}
|
||||
isBestQuote={isBestQuote}
|
||||
numberOfQuotes={Object.values(quotes).length}
|
||||
onQuotesClick={() => {
|
||||
allAvailableQuotesOpened();
|
||||
setSelectQuotePopoverShown(true);
|
||||
}}
|
||||
tokenConversionRate={
|
||||
destinationTokenSymbol === defaultSwapsToken.symbol
|
||||
? 1
|
||||
: memoizedTokenConversionRates[destinationToken.address]
|
||||
}
|
||||
chainId={chainId}
|
||||
networkAndAccountSupports1559={networkAndAccountSupports1559}
|
||||
maxPriorityFeePerGasDecGWEI={hexWEIToDecGWEI(maxPriorityFeePerGas)}
|
||||
maxFeePerGasDecGWEI={hexWEIToDecGWEI(maxFeePerGas)}
|
||||
isBestQuote={isBestQuote}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -803,7 +785,7 @@ export default function ViewQuote() {
|
||||
}
|
||||
}}
|
||||
submitText={t('swap')}
|
||||
onCancel={async () => await dispatch(navigateBackToBuildQuote(history))}
|
||||
hideCancel
|
||||
disabled={
|
||||
submitClicked ||
|
||||
balanceError ||
|
||||
|
@ -63,11 +63,9 @@ describe('ViewQuote', () => {
|
||||
expect(
|
||||
getByTestId('main-quote-summary__exchange-rate-container'),
|
||||
).toMatchSnapshot();
|
||||
expect(
|
||||
getByTestId('fee-card__savings-and-quotes-header'),
|
||||
).toMatchSnapshot();
|
||||
expect(getByTestId('fee-card__row-header')).toMatchSnapshot();
|
||||
expect(getByText('Back')).toBeInTheDocument();
|
||||
expect(getByText('Estimated gas fee')).toBeInTheDocument();
|
||||
expect(getByText('Max fee')).toBeInTheDocument();
|
||||
expect(getByText('Edit')).toBeInTheDocument();
|
||||
expect(getByText('Swap')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
@ -89,13 +87,10 @@ describe('ViewQuote', () => {
|
||||
expect(
|
||||
getByTestId('main-quote-summary__exchange-rate-container'),
|
||||
).toMatchSnapshot();
|
||||
expect(
|
||||
getByTestId('fee-card__savings-and-quotes-header'),
|
||||
).toMatchSnapshot();
|
||||
expect(getByText('Estimated gas fee')).toBeInTheDocument();
|
||||
expect(getByText('0.01044 ETH')).toBeInTheDocument();
|
||||
expect(getByText('Max fee')).toBeInTheDocument();
|
||||
expect(getByText('Back')).toBeInTheDocument();
|
||||
expect(getByText('Edit')).toBeInTheDocument();
|
||||
expect(getByText('Swap')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user