How financial markets affect devaluation?