remainingDebt < minDebtCheck will be true even if remainingDebt=0, must check for that.
there is edge case when couponsToBurn is not zero. Consider minDebtAmount always fluctuates due to price changes. Then remainingDebt = minDebtAmount can set new debt to be higher than before!
check of remainingDebt < minDebtAmount must be repeated at the end because we further reduce debt in line 88.
Description
Several issues for #145