Store fee

This commit is contained in:
2024-03-22 12:59:12 +00:00
parent 211c6b9469
commit 37f84592f4
7 changed files with 519 additions and 9 deletions

View File

@ -55,7 +55,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 * 1000L);
payment.User.Balance += (long)payment.Amount;
await db.SaveChangesAsync(stoppingToken);
if (!string.IsNullOrEmpty(payment.Nostr) && !string.IsNullOrEmpty(payment.Invoice))
{