We examine financial intermediation when banks can offer deposit or loan contracts contingent on macroeconomic shocks. We show that the risk allocation is efficient if there is no workout of banking crises. In this case, banks will shift part of the risk to depositors. In contrast, under a...