From 88b32c9cd70916a742263c36703d8c2b073236c6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 1 Nov 2024 20:20:40 -0700 Subject: absolute amount --- lib/nwc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/nwc.ts b/lib/nwc.ts index a9c8288d..c5209612 100644 --- a/lib/nwc.ts +++ b/lib/nwc.ts @@ -250,7 +250,7 @@ const handle = (method, params, user) => description: p.memo, preimage: p.ref, payment_hash, - amount: p.amount * 1000, + amount: Math.abs(p.amount * 1000), fees_paid: p.fee * 1000, created_at, expires_at: created_at + 7 * 24 * 60 * 60, -- cgit v1.2.3