LN-Zap / zap-android

Zap Wallet - Native android lightning wallet for node operators focused on user experience and ease of use ⚡️
MIT License
165 stars 49 forks source link

Allow zero amount invoice payments, but still warn user. #400

Closed michaelWuensch closed 2 years ago

michaelWuensch commented 2 years ago

Description

This PR makes it possible to pay zero amount invoices.

Motivation and Context

Giving the User the freedom to choose for themselves to take the risk of paying zero amount invoices. Zero amount invoices can be exploited resulting in a loss of the transferred amount. For low value payments they are still sometimes very handy. Instead of disabling zero amount invoices we now only inform the user about the risk and let them decide on their own if they want to take the risk or not.

How Has This Been Tested?

Emulator

Types of changes

Checklist: