interbtc-ui icon indicating copy to clipboard operation
interbtc-ui copied to clipboard

Enable all collateral to be withdrawn

Open tomjeatt opened this issue 2 years ago • 1 comments

See: https://discord.com/channels/745259537707040778/1138755389001842759

To withdraw all collateral we need to make a different call to the parachain. This may require some UX work as well (e.g. a 'withdraw all collateral' toggle). This has already been implemented on the parachain, so this can already be done from the Polkadot UI.

tomjeatt avatar Sep 29 '23 09:09 tomjeatt

This requires a lib change. The UI calls the vaults.withdrawCollateral method which takes an amount with a type of MonetaryAmount. To withdraw all collateral, we need to be able to pass in None rather than a MonetaryAmount.

tomjeatt avatar Feb 14 '24 13:02 tomjeatt