Repaying the principal stablecoin debt & the stability fee interest:
Let us assume that Bob used a vault that charges a 3% stability fee, and that he wishes to repay his loan after 6 months. In this case, his outstanding debt will be 5000+5000*(0.03*0.5), which is 5075. Bob repays his principal (5,000) and his stability fee interest (75), and he can now withdraw his ADA collateral from the vault.