fix swap over amount error message
This commit is contained in:
@@ -132,5 +132,6 @@ const styles = StyleSheet.create({
|
||||
textAlign: 'center',
|
||||
marginBottom: 'auto',
|
||||
marginTop: 'auto',
|
||||
includeFontPadding: false,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -67,6 +67,7 @@ import { getLNAddressForLiquidPayment } from '../sendBitcoin/functions/payments'
|
||||
import { useToast } from '../../../../../context-store/toastManager';
|
||||
import useDebounce from '../../../../hooks/useDebounce';
|
||||
import { useWebView } from '../../../../../context-store/webViewContext';
|
||||
import formatTokensNumber from '../../../../functions/lrc20/formatTokensBalance';
|
||||
|
||||
export default function SendAndRequestPage(props) {
|
||||
const {
|
||||
@@ -288,14 +289,18 @@ export default function SendAndRequestPage(props) {
|
||||
if (dollarAmountRequired > userDollarBalance) {
|
||||
showToast({
|
||||
type: 'error',
|
||||
title: t('errormessages.lightningAmountFeeWarning', {
|
||||
title: t('errormessages.lightningAmountRequiredWarning', {
|
||||
amount: displayCorrectDenomination({
|
||||
amount: fee,
|
||||
amount: parseFloat(
|
||||
formatTokensNumber(quote.quote.tokenAmountRequired, 6),
|
||||
).toFixed(2),
|
||||
masterInfoObject: {
|
||||
...masterInfoObject,
|
||||
userBalanceDenomination: 'sats',
|
||||
userBalanceDenomination: 'fiat',
|
||||
},
|
||||
fiatStats,
|
||||
convertAmount: false,
|
||||
forceCurrency: 'USD',
|
||||
}),
|
||||
}),
|
||||
duration: 6000,
|
||||
|
||||
@@ -78,6 +78,7 @@ import useDebounce from '../../../../hooks/useDebounce';
|
||||
import customUUID from '../../../../functions/customUUID';
|
||||
import { useBudgetWarning } from '../../../../hooks/useBudgetWarning';
|
||||
import { getLNAddressForLiquidPayment } from './functions/payments';
|
||||
import formatTokensNumber from '../../../../functions/lrc20/formatTokensBalance';
|
||||
|
||||
export default function SendPaymentScreen(props) {
|
||||
console.log('CONFIRM SEND PAYMENT SCREEN');
|
||||
@@ -532,14 +533,18 @@ export default function SendPaymentScreen(props) {
|
||||
if (dollarAmountRequired > userDollarBalance) {
|
||||
showToast({
|
||||
type: 'error',
|
||||
title: t('errormessages.lightningAmountFeeWarning', {
|
||||
title: t('errormessages.lightningAmountRequiredWarning', {
|
||||
amount: displayCorrectDenomination({
|
||||
amount: fee,
|
||||
amount: parseFloat(
|
||||
formatTokensNumber(quote.quote.tokenAmountRequired, 6),
|
||||
).toFixed(2),
|
||||
masterInfoObject: {
|
||||
...masterInfoObject,
|
||||
userBalanceDenomination: 'sats',
|
||||
userBalanceDenomination: 'fiat',
|
||||
},
|
||||
fiatStats,
|
||||
convertAmount: false,
|
||||
forceCurrency: 'USD',
|
||||
}),
|
||||
}),
|
||||
duration: 6000,
|
||||
|
||||
@@ -2586,7 +2586,8 @@
|
||||
"priceImpact": "Bei dieser hohen Zahlung kann sich der endgültige Betrag in USD noch verändern.",
|
||||
"removingImageError": "Bild konnte nicht entfernt werden. Bitte versuchen Sie es erneut.",
|
||||
"usdcUsdtTokensOnly": "Nur USDT- und USDC-Token werden unterstützt",
|
||||
"lightningAmountFeeWarning": "Ihr Guthaben deckt den Betrag und die Gebühr von ≈{{amount}} nicht ab."
|
||||
"lightningAmountFeeWarning": "Ihr Guthaben deckt den Betrag und die Gebühr von ≈{{amount}} nicht ab.",
|
||||
"lightningAmountRequiredWarning": "Für diese Zahlung werden ≈{{amount}} benötigt. Bitte verringern Sie den Betrag oder fügen Sie Guthaben hinzu."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Bitte schließen Sie die App nicht.",
|
||||
|
||||
@@ -2587,7 +2587,8 @@
|
||||
"priceImpact": "This payment is large, so the final amount you receive in Dollars may change.",
|
||||
"removingImageError": "Unable to remove image. Please try again.",
|
||||
"usdcUsdtTokensOnly": "Only USDT and USDC tokens are supported",
|
||||
"lightningAmountFeeWarning": "Your balance does not cover the amount and ≈{{amount}} fee."
|
||||
"lightningAmountFeeWarning": "Your balance does not cover the amount and ≈{{amount}} fee.",
|
||||
"lightningAmountRequiredWarning": "This payment requires ≈{{amount}}. Please lower the amount or add funds."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Please don't close the app",
|
||||
|
||||
@@ -2586,7 +2586,8 @@
|
||||
"removingImageError": "No se pudo eliminar la imagen. Inténtalo de nuevo.",
|
||||
"bitcoinInvoiceError": "Hubo un problema al generar tu dirección de Bitcoin. Por favor, inténtalo de nuevo.",
|
||||
"usdcUsdtTokensOnly": "Solo se admiten los tokens USDT y USDC",
|
||||
"lightningAmountFeeWarning": "Tu saldo no cubre el monto y la comisión de ≈{{amount}}."
|
||||
"lightningAmountFeeWarning": "Tu saldo no cubre el monto y la comisión de ≈{{amount}}.",
|
||||
"lightningAmountRequiredWarning": "Este pago requiere ≈{{amount}}. Reduce el monto o agrega fondos."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Por favor no cierres la aplicación",
|
||||
|
||||
@@ -2586,7 +2586,8 @@
|
||||
"priceImpact": "Ce paiement est important, le montant final que vous recevrez en dollars peut donc changer.",
|
||||
"removingImageError": "Impossible de supprimer l'image. Veuillez réessayer.",
|
||||
"usdcUsdtTokensOnly": "Seuls les tokens USDT et USDC sont pris en charge",
|
||||
"lightningAmountFeeWarning": "Votre solde ne couvre pas le montant et les frais de ≈{{amount}}."
|
||||
"lightningAmountFeeWarning": "Votre solde ne couvre pas le montant et les frais de ≈{{amount}}.",
|
||||
"lightningAmountRequiredWarning": "Ce paiement nécessite ≈{{amount}}. Veuillez réduire le montant ou ajouter des fonds."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Ne fermez pas l'application",
|
||||
|
||||
@@ -2586,7 +2586,8 @@
|
||||
"priceImpact": "Questo pagamento è elevato, quindi l'importo finale che riceverai in dollari potrebbe cambiare.",
|
||||
"removingImageError": "Impossibile rimuovere l'immagine. Riprova.",
|
||||
"usdcUsdtTokensOnly": "Sono supportati solo i token USDT e USDC",
|
||||
"lightningAmountFeeWarning": "Il tuo saldo non copre l’importo e la commissione di ≈{{amount}}."
|
||||
"lightningAmountFeeWarning": "Il tuo saldo non copre l’importo e la commissione di ≈{{amount}}.",
|
||||
"lightningAmountRequiredWarning": "Questo pagamento richiede ≈{{amount}}. Riduci l’importo o aggiungi fondi."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Non chiudere l'app",
|
||||
|
||||
@@ -2586,7 +2586,8 @@
|
||||
"priceImpact": "Este pagamento é grande, portanto o valor final que você receber em dólares pode mudar.",
|
||||
"removingImageError": "Não foi possível remover a imagem. Tente novamente.",
|
||||
"usdcUsdtTokensOnly": "Apenas os tokens USDT e USDC são suportados",
|
||||
"lightningAmountFeeWarning": "Seu saldo não cobre o valor e a taxa de ≈{{amount}}."
|
||||
"lightningAmountFeeWarning": "Seu saldo não cobre o valor e a taxa de ≈{{amount}}.",
|
||||
"lightningAmountRequiredWarning": "Este pagamento requer ≈{{amount}}. Reduza o valor ou adicione fundos."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Por favor, não feche o aplicativo",
|
||||
|
||||
@@ -2593,7 +2593,8 @@
|
||||
"priceImpact": "Этот платёж является крупным, поэтому окончательная сумма, которую вы получите в долларах, может измениться.",
|
||||
"removingImageError": "Не удалось удалить изображение. Пожалуйста, попробуйте снова.",
|
||||
"usdcUsdtTokensOnly": "Поддерживаются только токены USDT и USDC",
|
||||
"lightningAmountFeeWarning": "Ваш баланс не покрывает сумму и комиссию ≈{{amount}}."
|
||||
"lightningAmountFeeWarning": "Ваш баланс не покрывает сумму и комиссию ≈{{amount}}.",
|
||||
"lightningAmountRequiredWarning": "Для этого платежа требуется ≈{{amount}}. Уменьшите сумму или пополните баланс."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Пожалуйста, не закрывайте приложение",
|
||||
|
||||
@@ -2586,7 +2586,8 @@
|
||||
"priceImpact": "Den här betalningen är stor, så det slutliga beloppet du får i dollar kan förändras.",
|
||||
"removingImageError": "Kunde inte ta bort bilden. Försök igen.",
|
||||
"usdcUsdtTokensOnly": "Endast USDT- och USDC-token stöds",
|
||||
"lightningAmountFeeWarning": "Ditt saldo täcker inte beloppet och avgiften på ≈{{amount}}."
|
||||
"lightningAmountFeeWarning": "Ditt saldo täcker inte beloppet och avgiften på ≈{{amount}}.",
|
||||
"lightningAmountRequiredWarning": "Denna betalning kräver ≈{{amount}}. Sänk beloppet eller lägg till medel."
|
||||
},
|
||||
"loadingScreen": {
|
||||
"message1": "Stäng inte appen, snälla",
|
||||
|
||||
Reference in New Issue
Block a user