Skip to content

Commit

Permalink
Fix: Incorrect rounding for lightning amounts (btcpayserver#6201)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier authored Sep 6, 2024
1 parent e4b5609 commit 377ff52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public async Task ConfigurePrompt(PaymentMethodContext context)
var nodeInfo = GetNodeInfo(config, context.Logs, preferOnion);

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
{
due = paymentPrompt.Calculate().Due;
Expand Down

0 comments on commit 377ff52

Please sign in to comment.