adambor / SolLightning-dApp-v2

User facing web app using SolLightning SDK
Apache License 2.0
2 stars 1 forks source link

Clarity on BTC-LN -> Solana swaps #13

Closed adambor closed 5 months ago

adambor commented 5 months ago

Swaps from lightning have a bit of a counterintuitive flow for the user. First a lightning payment has to be initiated from the lightning wallet (the user will be stuck on sending payment page there), and then HTLC claimed on Solana to finish the transaction.

This works well if user is on the PC and scans a QR code with his phone or uses WebLN. However this is worse for users who have to switch apps on mobile, who would just be stuck inside their lightning wallet looking at payment pending screen.

This can go hand in hand with adding a "Pay with LN wallet" button to the swaps from lightning, when used we can show a modal saying that the user should come back after initiating the payment on the lightning side.

adambor commented 5 months ago

Added in PR #14