The dApp should support connecting a btc wallet to it for streamlining the swap process. Problem is lack of standardization, xverse uses sats-wallet and phantom exposes their wallet operation through an injected object in the window object.
How connecting the wallet would work is TBD. One way is to just have:
"fetch from browser wallet" button when the dApp asks for an address
"pay with browser wallet" button when payment qr code is shown
But this would not allow for showing the user's bitcoin balance when he is just on the swap page.
Second way is that user will have an option to connect his bitcoin wallet as well as Solana wallet, question is where to put the button for that.
The dApp should support connecting a btc wallet to it for streamlining the swap process. Problem is lack of standardization, xverse uses sats-wallet and phantom exposes their wallet operation through an injected object in the window object.
How connecting the wallet would work is TBD. One way is to just have:
Second way is that user will have an option to connect his bitcoin wallet as well as Solana wallet, question is where to put the button for that.