This paper models the role of the lender of last resort (LoLR) in a general equilibrium framework. We allow for heterogeneous agents and a risk-averse banking sector, and incorporate the frictions of endogenous default, liquidity, and money. Adverse supply shocks in monetary endowments trigger...