mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 09:19:24 +01:00
Fix: Incorrect rounding for lightning amounts (#6201)
This commit is contained in:
parent
e4b5609d78
commit
377ff52222
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ namespace BTCPayServer.Payments.Lightning
|
||||||
var nodeInfo = GetNodeInfo(config, context.Logs, preferOnion);
|
var nodeInfo = GetNodeInfo(config, context.Logs, preferOnion);
|
||||||
|
|
||||||
var invoice = context.InvoiceEntity;
|
var invoice = context.InvoiceEntity;
|
||||||
decimal due = Extensions.RoundUp(invoice.Price / paymentPrompt.Rate, _Network.Divisibility);
|
decimal due = Extensions.RoundUp(invoice.Price / paymentPrompt.Rate, paymentPrompt.Divisibility);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
due = paymentPrompt.Calculate().Due;
|
due = paymentPrompt.Calculate().Due;
|
||||||
|
|
Loading…
Add table
Reference in a new issue