FIX: internal invoice fee
This commit is contained in:
parent
75bfac565c
commit
862cda69fa
@ -176,7 +176,7 @@ router.post('/payinvoice', async function(req, res) {
|
|||||||
await u.savePaidLndInvoice({
|
await u.savePaidLndInvoice({
|
||||||
timestamp: parseInt(+new Date() / 1000),
|
timestamp: parseInt(+new Date() / 1000),
|
||||||
type: 'paid_invoice',
|
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),
|
fee: Math.floor(info.num_satoshis * Paym.fee),
|
||||||
memo: decodeURIComponent(info.description),
|
memo: decodeURIComponent(info.description),
|
||||||
pay_req: req.body.invoice,
|
pay_req: req.body.invoice,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user