Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[...] or you can specify a different address if preferred. #284

Open
U00A3 opened this issue Oct 27, 2023 · 6 comments
Open

[...] or you can specify a different address if preferred. #284

U00A3 opened this issue Oct 27, 2023 · 6 comments

Comments

@U00A3
Copy link

U00A3 commented Oct 27, 2023

It seems that depositing or withdrawing to a different account is impossible or I'm doing something wrong :)

2023-10-27 13_27_18-Leather
2023-10-27 13_32_40-sBTC Bridge - Dashboard

@friedger
Copy link
Collaborator

You can specify a different stx address, not a different bitcoin address.

When signing, you account in Leather wallets must be the same account as the one you used to log in to the sbtc bridge. Otherwise, you get this nice little message from Leather wallet:

image

@radicleart
Copy link
Collaborator

@U00A3 - thanks for posting..

The quick answer is that the error Unable to sign PSBT at index... usually means the wallet is connected to a different account to the app.

Try changing the the wallet account and retrying the UI.

@radicleart
Copy link
Collaborator

The longer answer is that it depends what you mean by account.

For deposits you can

a) change the stacks address and have your sBTC minted to any stacks principal - including contract principals

b) change the bitcoin address - say you wish to deposit from an Electrum wallet. You can change the btc address to your electrum wallet and click continue. The next screen will have a button to show the PSBT allowing you to copy paste it into Electrum. From there you can sign and broadcast.

For Withdrawals you can;

a) change the btc address to withdraw the funds to - it defaults to you current Leather/Xverse payment address but its up to you.

you can't change the stacks address for withdrawals as you need to validate that you control the stacks address by signing a message.

@Macxim
Copy link
Collaborator

Macxim commented Oct 27, 2023

We could still probably improve the UX here anyway.

@radicleart
Copy link
Collaborator

keeping this open for now as the functionality to test depositing form the bridge into a contract is yet to be tested.

@U00A3
Copy link
Author

U00A3 commented Oct 27, 2023

When I try to withdraw BTC to another account, the app ignores the address I entered. The sign Message contains the address connected to the sBTC bridge.
When I confirm the transaction, nothing happens.

I'll do more tests tomorrow :)

2023-10-27 20_09_58-sBTC Bridge - Dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants