Remove notifyDepositExpiryCourtesyCall
There is a dedicated redemption path that differentiates between
at-term and courtesy call redemption.
At-term deposits can only be terminated via a wilful redemption if they are sufficiently collateralized and
not fraud.
This function is a remnant of older times.
@@ -313,15 +313,4 @@ library DepositLiquidation {
require(block.timestamp >= _d.courtesyCallInitiated + TBTCConstants.getCourtesyCallTimeout(), "Courtesy period has not elapsed");
startSignerAbortLiquidation(_d);
}
-
- /// @notice Notifies the contract that its term limit has been reached
- /// @dev This initiates a courtesy call
- /// @param _d deposit storage pointer
- function notifyDepositExpiryCourtesyCall(DepositUtils.Deposit storage _d) public {
- require(_d.inActive(), "Deposit is not active");
- require(block.timestamp >= _d.fundedAt + TBTCConstants.getDepositTerm(), "Deposit term not elapsed");
- _d.setCourtesyCall();
- _d.logCourtesyCalled();
- _d.courtesyCallInitiated = block.timestamp;
- }
}
