In this paper, we take up the analysis of a principal/agent model with moral hazard, with optimal contracting between a competitive investor and an impatient bank monitoring a pool of long-term loans subject to Markovian contagion. We provide here a comprehensive mathematical formulation of the...