allow exiting courtesy call while at-term
Deposits should not be locked into COURTESY_CALL if thy are sufficiently collateralized.
The redemption flow now motivates at-term redemption by the signers and will be the preferred exit path. Liquidation via courtesy-call when sufficiently collateralized is not preferable.
@@ -290,7 +290,6 @@ library DepositLiquidation {
/// @param _d deposit storage pointer
function exitCourtesyCall(DepositUtils.Deposit storage _d) public {
require(_d.inCourtesyCall(), "Not currently in courtesy call");
- require(block.timestamp <= _d.fundedAt + TBTCConstants.getDepositTerm(), "Deposit is expiring");
require(getCollateralizationPercentage(_d) >= _d.undercollateralizedThresholdPercent, "Deposit is still undercollateralized");
_d.setActive();
_d.logExitedCourtesyCall();
