MutinyWallet / mutiny-node

SDK behind Mutiny Wallet
https://mutinywallet.com
MIT License
187 stars 36 forks source link

Fixes for olympus swaps #1202

Closed benthecarman closed 5 months ago

benthecarman commented 5 months ago

Previously when doing a swap we'd get an extra channel sometimes because we'd call the fee api multiple time which would cause the olympus node to open the extra channel. To make sure we only call the fee api once, we need to generate the invoice when estimating fee and then when we execute the swap, use that invoice, this way we can guarantee there is only a single call to the api for a given swap.

For testing use this: https://mutinynet-lsps1.lnolymp.us

I tested:

TonyGiorgio commented 5 months ago

Does this still work with the voltage LSP?

benthecarman commented 5 months ago

Does this still work with the voltage LSP?

yes