From 862cda69fabea505e5d4aba77734ae36e1e2dc47 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Thu, 4 Apr 2019 13:38:09 +0100 Subject: [PATCH] FIX: internal invoice fee --- controllers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/api.js b/controllers/api.js index cccfaa4..ac8e4ce 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -176,7 +176,7 @@ router.post('/payinvoice', async function(req, res) { await u.savePaidLndInvoice({ timestamp: parseInt(+new Date() / 1000), type: 'paid_invoice', - value: +info.num_satoshis + Math.floor(info.num_satoshis * 0.01), + value: +info.num_satoshis + Math.floor(info.num_satoshis * Paym.fee), fee: Math.floor(info.num_satoshis * Paym.fee), memo: decodeURIComponent(info.description), pay_req: req.body.invoice,