The IMF , EU , and other international donors provided substantial financial assistance to Latvia as part of an agreement to defend the currency 's peg to the euro .