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

Add handling for BTC and ETH collateral withdrawals #1386

Open
parrot9design opened this issue Jul 31, 2024 · 0 comments
Open

Add handling for BTC and ETH collateral withdrawals #1386

parrot9design opened this issue Jul 31, 2024 · 0 comments
Assignees

Comments

@parrot9design
Copy link
Collaborator

parrot9design commented Jul 31, 2024

When there's not enough ETH / BTC to withdraw collateral to the chain it was deposited from, we should provide people with the option to withdraw to a different blockchain.

Here's how that would look:

withdraw-1
  • Click Withdraw {amount} {asset} to refresh the modal with the updated values.
  • If the amount on that chain is 0, the red text should say 0 {asset} available on {chain} and we can omit the second line.

  • Click Blockchain to open a dropdown that shows which chains you can withdraw to, and how much is available there:

  • Choose a blockchain – if you haven't connected a wallet, trigger the blockchain-specific connect wallet prompt.

  • Then update the modal to include the active blockchain, address, and the cross-chain fee. The button label should also be updated to say Withdraw to {chain}:
withdraw-2
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

2 participants