diff --git a/controllers/api.js b/controllers/api.js index fc8f674..d653e36 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -322,7 +322,7 @@ router.post('/payinvoice', async function (req, res) { let inv = { payment_request: req.body.invoice, amt: info.num_satoshis, // amt is used only for 'tip' invoices - fee_limit: { fixed: Math.floor(info.num_satoshis * internalFee) + 1 }, // fee setting was 0.005 now set as internalFee + fee_limit: { fixed: Math.floor(info.num_satoshis * forwardFee) + 1 }, }; try { await u.lockFunds(req.body.invoice, info);