We build an equilibrium model of the capital structure and risk-taking in the originate-to-distribute intermediation chain in presence of absolute demand for safety by some investors and limited endowment by equity investors. Loan originators may expand investment by raising funds from...