Skip to content

Commit

Permalink
Merge pull request #1669 from kaloudis/receive-fee-explainer
Browse files Browse the repository at this point in the history
Receive: LSP fee explainer: specify 'if paid over lightning'
  • Loading branch information
kaloudis authored Sep 21, 2023
2 parents 3c4f075 + 6941e2a commit 8f0e125
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@
"views.Receive.np2wkhDescriptionAlt": "Use only when a service labels your SegWit address as invalid.",
"views.Receive.p2trKey": "Taproot (P2TR)",
"views.Receive.p2trDescription": "The latest, most powerful, bitcoin address type. Not widely supported.",
"views.Receive.lspExplainerUnified": "LSP will take the following amount as a setup fee, if paid over lightning:",
"views.Receive.lspExplainer": "LSP will take the following amount as a setup fee:",
"views.Receive.lspExplainerRoutingUnified": "LSP will take the following amount as a fee, if paid over lightning:",
"views.Receive.lspExplainerRouting": "LSP will take the following amount as a fee:",
"views.Receive.goToLspSettings": "Go to LSP Settings",
"views.Receive.lspSwitchExplainer1": "The LSP will provide you with 0-conf channels that will allow you to send and receive payments on the Lightning network.",
Expand Down
6 changes: 5 additions & 1 deletion views/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,11 @@ export default class Receive extends React.Component<
new BigNumber(
zeroConfFee
).gt(1000)
? 'views.Receive.lspExplainer'
? selectedIndex === 0
? 'views.Receive.lspExplainerUnified'
: 'views.Receive.lspExplainer'
: selectedIndex === 0
? 'views.Receive.lspExplainerRoutingUnified'
: 'views.Receive.lspExplainerRouting'
)}
</Text>
Expand Down

0 comments on commit 8f0e125

Please sign in to comment.