A written agreement to reimburse a lender for certain costs incurred in the event of a foreclosure, contingent on proceeds from the sale of the foreclosed property being sufficient to cover these costs.