Skip to content

Commit

Permalink
[Bugfix/LIVE-11035]: Moonpay LLD - Signature Step Error msg (#6120)
Browse files Browse the repository at this point in the history
* fix: swap_ng was broken (used in moonpay context
* fix: add moonpay terms of service
* i18n - including some staking ones

---------

Co-authored-by: ldg-smartling-sa <133769770+ldg-smartling-sa@users.noreply.github.com>
  • Loading branch information
2 people authored and jdabbech-ledger committed Feb 19, 2024
1 parent f22c928 commit 99260d4
Show file tree
Hide file tree
Showing 15 changed files with 267 additions and 172 deletions.
7 changes: 7 additions & 0 deletions .changeset/sharp-crews-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@ledgerhq/hw-app-exchange": patch
"ledger-live-desktop": patch
"@ledgerhq/live-common": patch
---

Support base64 encodng for swap_ng type swaps
5 changes: 5 additions & 0 deletions apps/ledger-live-desktop/src/config/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ export const urls = {
tos: "https://criptointercambio.com/terms-of-use",
support: "https://criptointercambio.com/en/about",
},
moonpay: {
main: "https://www.moonpay.com/",
tos: "https://www.moonpay.com/legal/terms_of_use",
support: "https://support.moonpay.com",
},
},
},
exchange: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ const Terms = styled(Text).attrs({
`;

export function DrawerFooter({ provider }: { provider: string }) {
const swapProvider = urls.swap.providers[provider as keyof typeof urls.swap.providers];
const url = ("tos" in swapProvider && swapProvider?.tos) || undefined;
const swapProvider =
urls.swap.providers?.[provider as keyof typeof urls.swap.providers] ?? undefined;
const url = (swapProvider && "tos" in swapProvider && swapProvider?.tos) || undefined;
const onLinkClick = useCallback(() => openURL(url!), [url]);
if (!url) {
return null;
Expand Down
39 changes: 23 additions & 16 deletions apps/ledger-live-mobile/src/locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
"description" : "حاول إعادة تثبيت التطبيق من My Ledger (جهازي Ledger)"
},
"NotEnoughGas" : {
"title" : "أنت بحاجة إلى {{ticker}} {{fees}} لرسوم الشبكة من أجل المبادلة حيث أنك على شبكة {{cryptoName}}. <link0>شراء {{ticker}}</link0>",
"title" : "أنت بحاجة إلى {{fees}} {{ticker}} للرسوم حيث إنك على شبكة {{cryptoName}}. <link0>شراء {{ticker}}</link0>",
"description" : "يرجى إرسال بعض العملات إلى حسابك لسداد قيمة معاملات رموز التوكن."
},
"NotEnoughGasSwap" : {
Expand Down Expand Up @@ -2843,10 +2843,6 @@
"title" : "الإعلانات",
"desc" : "تلقى تحديثات Ledger Live المهمة"
},
"recommendations" : {
"title" : "التوصيات",
"desc" : "أثري تجربتك مع التوصيات المخصصة والعروض الخاصة"
},
"largeMover" : {
"title" : "تحرك كبير في السعر",
"desc" : "سيتم إخطارك بوجود تحركات مهمة في سعر BTC وETH"
Expand Down Expand Up @@ -6534,24 +6530,35 @@
"ethereum" : {
"title" : "قم بتنمية ما تملك من ETH",
"subTitle" : "قم بتكديس ETH خاصتك وتنمية ممتلكاتك من خلال كسب مكافآت يومية مباشرةً في Ledger Live لديك.",
"tagMinimum" : "Requires {{min}} ETH",
"close" : "إغلاق",
"providers" : {
"kiln_pooling" : {
"title" : "مُجمِع تكديس Kiln",
"description" : "قم بالتكديس دون حد أدنى. اكسب مكافآت مُجمّعة تلقائياً بدون فترة قَفل.",
"supportLink" : "تعرف على المزيد عن مُجمِعات Kiln"
},
"stader-eth" : {
"title" : "Stader Labs",
"description" : "قم بالتكديس دون حد أدنى. اكسب مكافآت مُجمّعة تلقائياً مع وصول إلى سيولة فورية.",
"supportLink" : "تعرّف على المزيد عن Stader"
},
"lido" : {
"title" : "اكسب مع Lido",
"description" : "قم بتكديس إيثريوم خاصتك مع Lido واكسب مكافآت يومية. بدون حد أدنى مطلوب من ETH. بدون فترة قَفل.",
"title" : "Lido",
"description" : "قم بتكديس أي مبلغ من ETH من أجل سيولة فورية ومكافآت يومية.",
"supportLink" : "تعرف على المزيد عن Lido"
},
"kiln" : {
"title" : "تكديس Kiln المُخصص",
"figment" : {
"title" : "Figment",
"tag" : "يتطلب 32 ETH",
"description" : "التكديس مع مدققين مخصصين. يتطلب مضاعفات 32 ETH. المطالبة بالمكافآت تتم يدوياً. غادِر في أي وقت.",
"supportLink" : "تعرف على المزيد عن مدقق Kiln"
"description" : "قم بتكديس أكثر من 32 ETH على مدققين مخصصين واجعل المكافآت تُرسل تلقائياً إلى حسابك.",
"supportLink" : "تعرف على المزيد عن Figment"
},
"kiln_pooling" : {
"title" : "مُجمِع تكديس Kiln",
"description" : "انضم إلى مُجمِع تكديس. لا يوجد حد أدنى مطلوب من ETH. تراكم المكافآت يتم تلقائياً. غادِر في أي وقت.",
"supportLink" : "تعرف على المزيد عن مُجمِعات Kiln",
"tag" : "ليس هناك حد أدنى"
"kiln" : {
"title" : "تكديس Kiln الفردي",
"tag" : "يتطلب 32 ETH",
"description" : "قم بتكديس أكثر من 32 ETH على مدققين مخصصين وطالب بالمكافآت بسهولة.",
"supportLink" : "تعرّف على المزيد عن Kiln"
}
}
},
Expand Down
39 changes: 23 additions & 16 deletions apps/ledger-live-mobile/src/locales/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
"description" : "Versuchen Sie, die App über My Ledger neu zu installieren."
},
"NotEnoughGas" : {
"title" : "Für den Umtausch benötigen Sie {{fees}} {{ticker}} für Netzwerkgebühren, da Sie sich im {{cryptoName}}-Netzwerk befinden. <link0>{{ticker}} kaufen</link0>",
"title" : "Sie benötigen {{fees}} {{ticker}} für Gebühren, da Sie sich im {{cryptoName}}-Netzwerk befinden. <link0>{{ticker}} kaufen</link0>",
"description" : "Bitte senden Sie einige Coins an Ihr Konto, um Token-Transaktionen bezahlen zu können."
},
"NotEnoughGasSwap" : {
Expand Down Expand Up @@ -2843,10 +2843,6 @@
"title" : "Ankündigung",
"desc" : "Wichtige Updates zu Ledger Live erhalten"
},
"recommendations" : {
"title" : "Empfehlungen",
"desc" : "Bereichern Sie Ihr Erlebnis mit personalisierten Empfehlungen und speziellen Angeboten"
},
"largeMover" : {
"title" : "Große Mover",
"desc" : "Sie bekommen eine Benachrichtigung über wichtige Preisbewegungen für BTC und ETH"
Expand Down Expand Up @@ -6534,24 +6530,35 @@
"ethereum" : {
"title" : "Vermehren Sie Ihr ETH-Guthaben",
"subTitle" : "Staken Sie Ihre ETH und vermehren Sie Ihr Vermögen – durch tägliche Prämien direkt in Ledger Live.",
"tagMinimum" : "Benötigt {{min}} ETH",
"close" : "Schließen",
"providers" : {
"kiln_pooling" : {
"title" : "Kiln Staking Pool",
"description" : "Staken Sie ohne Mindestbetrag. Verdienen Sie automatisch aufgelaufene Belohnungen ohne Sperrfrist.",
"supportLink" : "Mehr über Kiln Pooling erfahren."
},
"stader-eth" : {
"title" : "Stader Labs",
"description" : "Staken Sie ohne Mindestbetrag. Verdienen Sie automatisch aufgelaufene Belohnungen und erhalten Sie direkte Liquidität.",
"supportLink" : "Erfahren Sie mehr über Stader"
},
"lido" : {
"title" : "Verdienen mit Lido",
"description" : "Staken Sie Ihr Ethereum mit Lido und verdienen Sie täglich Belohnungen. Kein ETH-Minimum erforderlich. Keine Sperrfrist.",
"title" : "Lido",
"description" : "Staken Sie einen beliebigen ETH-Betrag für Sofortliquidität und tägliche Belohnungen.",
"supportLink" : "Mehr über Lido lernen"
},
"kiln" : {
"title" : "Staking mit Kiln",
"figment" : {
"title" : "Figment",
"tag" : "Benötigt 32 ETH",
"description" : "Staken Sie mit speziellen Validatoren. Hierfür wird ein Vielfaches von 32 ETH benötigt. Prämien werden manuell beansprucht. Kann jederzeit beendet werden.",
"supportLink" : "Mehr über Kiln-Validator erfahren"
"description" : "Staken Sie mehr als 32 ETH bei speziellen Validatoren und lassen Sie Belohnungen automatisch Ihrem Konto gutschreiben.",
"supportLink" : "Erfahren Sie mehr über Figment"
},
"kiln_pooling" : {
"title" : "Kiln Staking Pool",
"description" : "Treten Sie einem Staking-Pool bei. Kein ETH-Minimum erforderlich. Prämien werden automatisch zusammengeführt. Kann jederzeit beendet werden.",
"supportLink" : "Mehr über Kiln Pooling erfahren.",
"tag" : "Kein Minimum"
"kiln" : {
"title" : "Solo-Staking mit Kiln",
"tag" : "Benötigt 32 ETH",
"description" : "Staken Sie mehr als 32 ETH bei speziellen Validatoren und fordern Sie Ihre Belohnungen ganz leicht ein.",
"supportLink" : "Erfahren Sie mehr über Kiln"
}
}
},
Expand Down
39 changes: 23 additions & 16 deletions apps/ledger-live-mobile/src/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
"description" : "Prueba a reinstalar la aplicación desde Mi Ledger"
},
"NotEnoughGas" : {
"title" : "En la red {{cryptoName}} debes pagar una tarifa de red de {{fees}} {{ticker}} para realizar permutas. <link0>Comprar {{ticker}}</link0>",
"title" : "Necesitas {{fees}} {{ticker}} para tarifas porque estás en la red de {{cryptoName}}. <link0>Comprar {{ticker}}</link0>",
"description" : "Envía monedas a tu cuenta para pagar por transacciones de tokens."
},
"NotEnoughGasSwap" : {
Expand Down Expand Up @@ -2843,10 +2843,6 @@
"title" : "Anuncios",
"desc" : "Recibe novedades importantes sobre Ledger Live"
},
"recommendations" : {
"title" : "Recomendaciones",
"desc" : "Mejora tu experiencia con recomendaciones personalizadas y ofertas especiales"
},
"largeMover" : {
"title" : "Grandes movimientos",
"desc" : "Te notificaremos si ocurren variaciones importantes en los precios de BTC o ETH"
Expand Down Expand Up @@ -6534,24 +6530,35 @@
"ethereum" : {
"title" : "Rentabiliza tus tenencias en ETH",
"subTitle" : "Pon en participación ETH y genera ganancias con recompensas diarias directamente desde Ledger Live.",
"tagMinimum" : "Requires {{min}} ETH",
"close" : "Cerrar",
"providers" : {
"kiln_pooling" : {
"title" : "Pool de puesta en participación de Kiln",
"description" : "Pon en participación sin mínimos. Gana recompensas con interés compuesto automático sin periodo de inmovilización.",
"supportLink" : "Obtener más información acerca de pooling con Kiln"
},
"stader-eth" : {
"title" : "Stader Labs",
"description" : "Pon en participación sin mínimos. Gana recompensas con interés compuesto automático y acceso a liquidez inmediata.",
"supportLink" : "Más información sobre Stader"
},
"lido" : {
"title" : "Gana con Lido",
"description" : "Pon tus Ethereum en participación con Lido y gana recompensas diarias. No es necesario un mínimo de ETH. Sin periodo de inmovilización.",
"title" : "Lido",
"description" : "Pon en participación cualquier cantidad de ETH para obtener liquidez inmediata y recompensas diarias.",
"supportLink" : "Obtén más información acerca de Lido"
},
"kiln" : {
"title" : "Puesta en participación dedicada de Kiln",
"figment" : {
"title" : "Figment",
"tag" : "Requiere 32 ETH",
"description" : "Pon en participación con validadores dedicados. Requiere múltiplos de 32 ETH. Las recompensas se reclaman manualmente. Cancela la puesta en participación cuando quieras.",
"supportLink" : "Obtener más información acerca del validador Kiln"
"description" : "Pon en participación más de 32 ETH en validadores exclusivos y recibe recompensas automáticamente en tu cuenta.",
"supportLink" : "Más información sobre Figment"
},
"kiln_pooling" : {
"title" : "Pool de puesta en participación de Kiln",
"description" : "Únete a un Pool de puesta en participación. No es necesario un mínimo de ETH. Las recompensas generan interés compuesto automáticamente. Cancela la puesta en participación cuando quieras.",
"supportLink" : "Obtener más información acerca de pooling con Kiln",
"tag" : "Sin mínimos"
"kiln" : {
"title" : "Participación independiente con Kiln",
"tag" : "Requiere 32 ETH",
"description" : "Pon en participación más de 32 ETH en validadores exclusivos y reclama tus recompensas fácilmente.",
"supportLink" : "Más información sobre Kiln"
}
}
},
Expand Down
39 changes: 23 additions & 16 deletions apps/ledger-live-mobile/src/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
"description" : "Veuillez essayer de réinstaller l’app depuis My Ledger."
},
"NotEnoughGas" : {
"title" : "Vous avez besoin de {{fees}} {{ticker}} comme frais de réseau pour échanger sur la blockchain {{cryptoName}}. <link0>Acheter des {{ticker}}</link0>",
"title" : "Vous avez besoin de {{fees}} {{ticker}} pour les frais, car vous êtes sur le réseau {{cryptoName}}. <link0>Acheter des {{ticker}}.</link0>",
"description" : "Envoyez des coins sur votre compte pour régler vos transactions de tokens."
},
"NotEnoughGasSwap" : {
Expand Down Expand Up @@ -2843,10 +2843,6 @@
"title" : "Annonces",
"desc" : "Recevez les dernières nouveautés sur Ledger Live."
},
"recommendations" : {
"title" : "Recommandations",
"desc" : "Enrichissez votre expérience grâce à des recommandations personnalisées et des offres spéciales."
},
"largeMover" : {
"title" : "Variations importantes",
"desc" : "Vous serez notifié(e) en cas de fortes fluctuations du cours du BTC et de l’ETH."
Expand Down Expand Up @@ -6534,24 +6530,35 @@
"ethereum" : {
"title" : "Faites fructifier vos ETH",
"subTitle" : "Stakez vos ETH et gagnez des récompenses quotidiennes directement via Ledger Live.",
"tagMinimum" : "{{min}} ETH minimum",
"close" : "Fermer",
"providers" : {
"kiln_pooling" : {
"title" : "Staker avec un pool sur Kiln",
"description" : "Stakez sans durée, ni montant minimum. Gagnez des récompenses capitalisées automatiquement.",
"supportLink" : "En savoir plus sur les pools sur Kiln"
},
"stader-eth" : {
"title" : "Stader Labs",
"description" : "Stakez sans aucun minimum. Gagnez des récompenses capitalisées automatiquement et profitez d’une liquidité instantanée.",
"supportLink" : "En savoir plus sur Stader"
},
"lido" : {
"title" : "Staker avec Lido",
"description" : "Stakez vos ETH avec Lido et gagnez des récompenses quotidiennes. Sans durée, ni montant minimum.",
"title" : "Lido",
"description" : "Stakez le montant d’ETH de votre choix : récompenses quotidiennes et liquidité instantanée.",
"supportLink" : "En savoir plus sur Lido"
},
"kiln" : {
"title" : "Staker avec un validateur Kiln",
"figment" : {
"title" : "Figment",
"tag" : "32 ETH minimum",
"description" : "Stakez avec un validateur personnalisé. Minimum de 32 ETH (ou un multiple) requis. Récompenses à demander manuellement. Quittez à tout moment.",
"supportLink" : "En savoir plus sur les validateurs Kiln"
"description" : "Stakez plus de 32 ETH avec un validateur personnalisé et recevez automatiquement vos récompenses sur votre compte.",
"supportLink" : "En savoir plus sur Figment"
},
"kiln_pooling" : {
"title" : "Staker avec un pool sur Kiln",
"description" : "Rejoignez un pool de staking. Aucun montant minimum d’ETH requis. Récompenses capitalisées automatiquement. Quittez à tout moment.",
"supportLink" : "En savoir plus sur les pools sur Kiln",
"tag" : "Pas de minimum"
"kiln" : {
"title" : "Staking en solo avec Kiln",
"tag" : "32 ETH minimum",
"description" : "Stakez plus de 32 ETH avec un validateur personnalisé et demandez facilement vos récompenses.",
"supportLink" : "En savoir plus sur Kiln"
}
}
},
Expand Down
Loading

0 comments on commit 99260d4

Please sign in to comment.