diff --git a/BTCPayServer/Payments/Lightning/LightningLikePaymentHandler.cs b/BTCPayServer/Payments/Lightning/LightningLikePaymentHandler.cs index 6b68fd0b6..532912523 100644 --- a/BTCPayServer/Payments/Lightning/LightningLikePaymentHandler.cs +++ b/BTCPayServer/Payments/Lightning/LightningLikePaymentHandler.cs @@ -89,7 +89,7 @@ namespace BTCPayServer.Payments.Lightning 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;