From 459f7148f8731ea7f5e9f5c888a844d65318fc99 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Thu, 22 Feb 2024 10:50:48 +0000 Subject: [PATCH] fix: use simplified LN deposit URL --- lib/plugins/wallet/galoy/galoy.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/plugins/wallet/galoy/galoy.js b/lib/plugins/wallet/galoy/galoy.js index cc47da35..dd75f4b2 100644 --- a/lib/plugins/wallet/galoy/galoy.js +++ b/lib/plugins/wallet/galoy/galoy.js @@ -240,16 +240,7 @@ function newAddress (account, info, tx, settings, operatorId) { const { cryptoAtoms, cryptoCode } = tx return checkCryptoCode(cryptoCode) .then(() => getGaloyWallet(account.apiSecret, account.endpoint, account.walletId)) - .then(wallet => { - const promises = [ - newOnChainAddress(wallet.id, account.apiSecret, account.endpoint), - newInvoice(wallet.id, cryptoAtoms, account.apiSecret, account.endpoint) - ] - return Promise.all(promises) - }) - .then(([onChainAddress, invoice]) => { - return `bitcoin:${onChainAddress}?amount=${cryptoAtoms}&lightning=${invoice}` - }) + .then(wallet => newInvoice(wallet.id, cryptoAtoms, account.apiSecret, account.endpoint)) } function getInvoiceStatus (token, endpoint, address) {