diff --git a/lib/service/invoices.go b/lib/service/invoices.go index 96b51aea..f4233144 100644 --- a/lib/service/invoices.go +++ b/lib/service/invoices.go @@ -261,7 +261,7 @@ func (svc *LndhubService) HandleFailedPayment(ctx context.Context, invoice *mode InvoiceID: invoice.ID, CreditAccountID: entryToRevert.DebitAccountID, DebitAccountID: entryToRevert.CreditAccountID, - Amount: invoice.Amount, + Amount: entryToRevert.Amount, } _, err = tx.NewInsert().Model(&entry).Exec(ctx) if err != nil {