Convert balance to milli-sats

This commit is contained in:
2023-07-13 14:08:43 +01:00
parent 04e6b5fd57
commit 0eead300db
6 changed files with 26 additions and 11 deletions

View File

@ -54,7 +54,7 @@ public class LndInvoicesStream : BackgroundService
if (payment is {IsPaid: false} && msg.State is Invoice.Types.InvoiceState.Settled)
{
payment.IsPaid = true;
payment.User.Balance += (long)payment.Amount;
payment.User.Balance += (long)(payment.Amount * 1000L);
await db.SaveChangesAsync(stoppingToken);
}
}