fix: use simplified LN deposit URL
This commit is contained in:
parent
5fb9f33b2b
commit
459f7148f8
1 changed files with 1 additions and 10 deletions
|
|
@ -240,16 +240,7 @@ function newAddress (account, info, tx, settings, operatorId) {
|
||||||
const { cryptoAtoms, cryptoCode } = tx
|
const { cryptoAtoms, cryptoCode } = tx
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => getGaloyWallet(account.apiSecret, account.endpoint, account.walletId))
|
.then(() => getGaloyWallet(account.apiSecret, account.endpoint, account.walletId))
|
||||||
.then(wallet => {
|
.then(wallet => newInvoice(wallet.id, cryptoAtoms, account.apiSecret, account.endpoint))
|
||||||
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}`
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getInvoiceStatus (token, endpoint, address) {
|
function getInvoiceStatus (token, endpoint, address) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue