This paper studies the role of the financial sector in affecting domestic resource allocation and cross-border capital flows. I develop a quantitative, two-country, macroeconomic model in which banks face endogenous and occasionally binding leverage constraints. Banks lend funds to be invested...