Corporate term loans typically include a penalty-free prepayment option. In a model where borrowers strategically prepay, we show that high prepayment risk can trigger credit rationing by the bank. However, an upfront fee, which allows the bank to lower the loan spread and therefore the...