Title: Joint determination of trade, production, and financial flows in the multinational firms, assuming risky currency exchange rates