Financial Contracting and Macroeconomic Stability