Hungary's decision to help its citizens pay back the foreign exchange loans they took at the height of the economic boom a few years back has sparked outrage among banks and spooked foreign investors.
The recently-approved legislation comes after a wave of other reforms that have been diplomatically dubbed "unorthodox" by some foreign investors and analysts and by the government itself.
"From the economic point of view and from the law point of view it is a disaster," Josef Christl, an analyst and consultant at Macro-Consult and a former Board Member of the Austrian Central Bank 2003 -2008, told CNBC.com in a telephone interview from Vienna.
The law allows some borrowers to pay back loans taken in euros or Swiss francs in forint, at fixed exchange rates that are currently about 25 percent below market rates; the government said that, while helping borrowers stay afloat, it helps share the cost of the crisis with those who started it, namely the banks.
The losses on the difference will have to be taken by the banks who offered the loans, with Austrian banks on top of the list, as officials said they have around 6 billion euros in foreign currency loans.
About two-thirds of mortgages in Hungary are now in Swiss francs. Erste Bank has 3 billion euros ($4.08 billion) worth of Swiss franc loans, Raiffeisen Bank has 1.6 billion and UniCredit, through its subsidiary Bank Austria, has 800 million euros, according to Reuters.
Estimates regarding the losses vary, depending on how many people will actually take advantage of the legislation, which targets only borrowers who took the loans at exchange rates lower or equal to the ones set by the government - 180 forints for the Swiss franc and 250 for the euro.
"Banks have to take between 20 and 30 percent of the foreign exchange loans on their own account and they have to book them at losses," Christl said.
Borrowers in Central and Eastern European countries took out loans in foreign exchange during the boom years because of the lower interest rates and, with local currencies appreciating due to the countries' plans to join the euro zone, paying the monthly installments was easy.
But since the crisis hit, this carry trade has turned sour, with the local currencies falling sharply against the euro and the Swiss franc and leaving many borrowers struggling to make payments.
Critics say the banks, in their rush to expand and greedy for profits, made no efforts to explain to their often unsophisticated customers about the risk that the national currencies might also depreciate.
The net impact of the early repayment proposal could be a capital loss of between 20 percent and 40 percent for banks in Hungary, Gyula Toth, head of EEMEA FI/FX Strategy at UniCredit wrote in a market note before the legislation was approved.
Maximum losses for the banking sector would be between 2.2 billion euros ($2.9 billion) and 4.1 billion euros, depending on how the new law is applied, he added.
According to media reports, the Hungarian central bank – which is at odds with conservative Prime Minister Viktor Orban's government, who curtailed its independence – warned that the proposal threatens financial stability.
Under the law, borrowers must repay their mortgages at the discounted rate in full in one go and they have until December 30 to apply.
Banks Say They Will Sue
Banks slammed the legislation and threatened to challenge it in Hungarian and European Union courts.
"On legal side, it is clearly interference in private contracts," Christl said. "I would not be surprised if the Constitutional Court says this law is illegal and has to be changed."
"It is also a major violation of several laws of the European Union. This law has some kind of discriminatory aspect because it favors local banks over the foreign banks," he said, explaining that the foreign banks that made a lot of the loans will have to buy forint from Hungarian banks.
European legislation requiring members to ensure free capital and services movements may also have been breached by this, according to Christl.
Orban said the government was prepared to defend its legislation, according to a newspaper report quoted by Reuters.
"We are ready for each domestic and international fight with banks and politicians on their side," he told the Blikk daily last week. "We have a solution at the ready that we can pull out of the drawer in case our current decision is banned by the international court and we will continue our struggle against the banks until we prevail."
On Wednesday, Zoltan Csefalvay, Hungary's Minister of State for Economic Strategy, told CNBCthat sorting out the country's debt was paramount and this is why the government was taking the unorthodox measures.
"We consider public debt as public enemy number one. In the whole of Europe, the main problem is debt. We inherited a huge debt (81 percent of GDP). We have made real progress in this."
"If we fail on this we fail on everything," he added.
Adding to Uncertainty
But still the banks are furious despite the government's statements that all these steps are taken to ensure that the Hungarian economy improves.
UniCredit said it was shocked by the legislation and that it was considering putting expansion plans on hold because of it, and both Erste Bank and Raiffeisen signalled they would probably look to invest in other countries in the region.
Opposition politicians in Hungary said the legislation only helps well-off borrowers because they are the ones who could put together the kind of sums needed to pay their mortgages in one go, even at the reduced exchange rates.
Analysts said the law just adds to uncertainty created by other controversial measures the Hungarian government has taken since coming to power in May last year, such as nationalizing $14 billion in private pension assets and slapping big taxes on banks and other companies.
"Maybe in two-three weeks from now the government will decide that you have a special tax on foreign producers," Christl said.
"Most people who are not directly concerned at the moment keep quiet but I cannot imagine that they are very fond of this kind of measures. For the whole investment climate it's not really good," he said.
US Ambassador to Hungary Eleni Tsakopoulos Kounalakis, in an interview with CNBC.com in Budapest on Wednesday, did not comment specifically on the early repayment legislation but said the country needed to bring predictability to its business environment.