Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive: LSP fee explainer: specify 'if paid over lightning' #1669

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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