interlay / interbtc-api

interBTC TypeScript SDK
https://app.interlay.io/
Apache License 2.0
26 stars 20 forks source link

Enable all collateral to be withdrawn #725

Closed tomjeatt closed 8 months ago

tomjeatt commented 9 months ago

Blocks https://github.com/interlay/interbtc-ui/issues/1580

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.