We developed a new-Keynesian DSGE model with heterogeneous agents and an active interbank market, characterized by an endogenous default probability. Banks are heterogeneous in the sense that they face, each period, different liquidity shocks and may or not be constrained in the total amount of...