Dependent on a steady stream of foreign investment to finance their large trade deficits, the Thai and Malaysian governments were forced to devalue their currencies, making their exports cheaper in foreign markets.