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

Enable all collateral to be withdrawn #1580

Open
tomjeatt opened this issue Sep 29, 2023 · 1 comment
Open

Enable all collateral to be withdrawn #1580

tomjeatt opened this issue Sep 29, 2023 · 1 comment
Labels

Comments

@tomjeatt
Copy link
Collaborator

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.

@nud3l nud3l added this to Backlog Sep 29, 2023
@github-project-automation github-project-automation bot moved this to New 🆕 in Backlog Sep 29, 2023
@tomjeatt
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New 🆕
Development

No branches or pull requests

1 participant