diff --git a/backend/controllers/shared/boltz.js b/backend/controllers/shared/boltz.js index 8314b465d..6af21b1b4 100644 --- a/backend/controllers/shared/boltz.js +++ b/backend/controllers/shared/boltz.js @@ -79,7 +79,7 @@ export const getSwapInfo = (req, res, next) => { }); }; export const createSwap = (req, res, next) => { - const { amount, address } = req.body; + const { amount, sendFromInternal, address } = req.body; logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Boltz', msg: 'Creating Swap..' }); options = common.getBoltzServerOptions(req); if (options.url === '') { @@ -89,6 +89,9 @@ export const createSwap = (req, res, next) => { } options.url = options.url + '/v1/createswap'; options.body = { amount: amount }; + if (sendFromInternal) { + options.body.send_from_internal = sendFromInternal; + } if (address && address !== '') { options.body.address = address; } diff --git a/frontend/index.html b/frontend/index.html index 9381648aa..a53e8e99b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -12,8 +12,8 @@ - +