aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-01 20:20:40 -0700
committerAdam Soltys <[email protected]>2024-11-01 20:20:40 -0700
commit88b32c9cd70916a742263c36703d8c2b073236c6 (patch)
tree04423a7113671f826044db0f6b98cc6e6624cb4f
parent30b38613981843cc1ac9d8b791121ee6b265b783 (diff)
downloadcoinos-server-88b32c9cd70916a742263c36703d8c2b073236c6.tar.gz
coinos-server-88b32c9cd70916a742263c36703d8c2b073236c6.zip
absolute amount
-rw-r--r--lib/nwc.ts2
1 files changed, 1 insertions, 1 deletions
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,