Agoric / dapp-inter

User application for Agoric Inter Protocol—Vaults, BLD Boost, Liquidations, etc.
2 stars 7 forks source link

Add 'Withdraw' button to closed vault cards #239

Closed otoole-brendan closed 4 months ago

otoole-brendan commented 4 months ago

What is the Problem Being Solved?

Users have no way to withdraw their assets from the Agoric chain from either the wallet UI or Inter dapp. Users must rely on non-native 3rd party flows like ibc.fun or Keplr's native IBC send functionality to do so.

There should be a means for them to do so from the dapp UI as we don't want them to leave the dapp to complete something that can be done natively

Description of the Design

Add 'Withdraw X' to closed vault card. X being the collateral name.

Clicking button brings up Leap Elements IBC transfer with Agoric -> source chain pre-selected. Should include Cosmos and Cross-chain swap tabs in case user wants to do more.

See wireframe:

image

https://miro.com/app/board/uXjVNrjmfJE=/

Security Considerations

Test Plan