Migrated from GaloyMoney/blink#4602
Originally created by @openoms on 10/1/2024, 5:13:27 PM
Currently the calls lnInvoiceCreate and LnInvoiceCreateOnBehalfOfRecipient are only accepting the amount as a (Positive) Satoshi amount.
amount: SatAmount!
Amount in satoshis.
Metadata for SatAmount Type
(Positive) Satoshi amount
When BTCPayServer would create a payment request with msat precision the amount is rounded up to the nearest satoshi and an overpayment is created which causes accounting issues.
A solution for this would be allowing creation of invoices with msat precision on lnInvoiceCreate operation in the API.
cc @NicolasDorier @pavlenex
Migrated from GaloyMoney/blink#4602
Originally created by @openoms on 10/1/2024, 5:13:27 PM
Currently the calls
lnInvoiceCreateandLnInvoiceCreateOnBehalfOfRecipientare only accepting the amount as a (Positive) Satoshi amount.When BTCPayServer would create a payment request with
msatprecision the amount is rounded up to the nearest satoshi and an overpayment is created which causes accounting issues.A solution for this would be allowing creation of invoices with msat precision on
lnInvoiceCreateoperation in the API.cc @NicolasDorier @pavlenex