withdraw_collateral(amount) in stablecoin/src/:
- Accrue any outstanding stability fees on the position first
- Check that withdrawing
amount keeps the collateralization ratio above the minimum
- Issue a chained
Transfer from the vault back to the user's collateral holding account
- Update
Position.collateral_amount
Collateralization check requires price feed and redemption price.
withdraw_collateral(amount)instablecoin/src/:amountkeeps the collateralization ratio above the minimumTransferfrom the vault back to the user's collateral holding accountPosition.collateral_amountCollateralization check requires price feed and redemption price.