Protection and the harmful effects of endogenous capital flows · Study