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

Improve menu items for clarity, reduce copy-pasted Strings and bugfix fiat conversion #21

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

ThomasFarstrike
Copy link

  • Fix fiat conversion API call compatibility with LNBits ("from" changed to "from")
  • Change "LNPoS", "Offline PoS", "OnChain" and "ATM" menu items to more explicit "Receive Online", "Receive Offline", "Receive OnChain" and "Send Offline" (more detailed reasoning in separate commit messages)
  • Move strings that are used more than once to a #define to avoid copy-paste, because this often causes bugs/inconsistencies due to changing one, but not the other(s).

It was always returning "sats": 1 and it turned out that's
because it should be "from_" (and not "from") as stated in the docs.
Notice users that just want to receive payments don't know the difference
between the old menu items: LNPoS vs Offline PoS vs OnChain...

In the case of non-native English speakers, they don't even know what a PoS is.

Replacing these with "Receive Online", "Receive Offline" and "Receive OnChain"
makes it much clearer of what they will do and how they will do it.
This menu option is used to send Bitcoin over the Lightning network in an offline manner, using LNURL-withdraw.

Only US English speakers use the expression "ATM", as Canadians use "ABM", while the British
call them cashpoints or cash machines. Non-English speakers also use different names,
such as 'geldautomaat' in Flanders or 'pinautomaat' in the Netherlands.

The "Send Offline" functionality *can* be used to sell Bitcoin, not unlike Automated Teller Machine,
although in this case it's the opposite of automated, as it's very much human operated.

But this functionality might just as well be used to withdraw funds from the device, or to refund a customer.

Therefore, it's more clear and in line with the other menu items to rename "ATM" to simply "Send Offline".
@ThomasFarstrike
Copy link
Author

I've tested all the changes on the actual hardware, including all the menu entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant