Mobile capital, optimal tariff, and tariff war