This paper develops a theoretical model of trading in the federal funds market that captures characteristics of discount window borrowing and the federal funds market during the first year of the financial crisis, including the narrowing of the spread between the discount rate and the target...