A Macroeconomic Model of Endogenous Systemic Risk Taking · Study