By Alexander Marrow
MOSCOW (Reuters) -The rouble weakened on Friday, giving up huge gains that had seen it soar to an eight-year high against the euro, as investors slashed foreign currency holdings and President Vladimir Putin signed treaties annexing four Ukrainian regions.
Western governments and Kyiv say the move breaches international law.
By 1355 GMT, the rouble had lost 1.6% to trade at 56.48 versus the euro, swinging back from its strongest mark since early October 2014 of 50.7250.
It was 1.7% weaker against the dollar at 58.20, giving up massive gains that had earlier seen it touch its strongest point since July 1 of 53.2300.
The rouble has been supported by capital controls and a collapse in imports since Western sanctions were imposed over Russia's actions in Ukraine and companies left the market in droves. Geopolitical risks also remain elevated, with more U.S. and EU sanctions expected soon.
The sanctions threat has led some investors to reduce their dollar holdings, fearing that restrictions may paralyse Russia-based trading in the greenback, analysts have said.
"Apparently the market is expecting the introduction of new sanctions by the EU which could further complicate the circulation of the euro, which is why we see supply exceeding demand, which leads to a decrease in the (euro) on Moscow Exchange," said Alfa Capital analyst Alexander Dzhioev.
Otkritie Research said companies may be speeding up the sale of FX from their overseas accounts.
The rouble had lost 3.2% against the yuan to 8.390, a more than one-week low.
Russian stock indexes were mixed.
Geopolitical pressure sent the benchmark MOEX Russian index to its lowest since Feb. 24 - the day Russia sent troops into Ukraine - on Monday, but the approval of energy giant Gazprom (MCX:GAZP)'s dividend payments drove the market higher.
"An approval...of the payment should be positive both for the stock and for the market in general as Gazprom has the largest weight in indices," said BCS Global Markets.
The rouble-based MOEX index was 1.4% higher at 1,980.9 points. The dollar-denominated RTS index was unchanged at 1,072.3 points.
Gazprom shares were underperforming the wider market, down 3.4%.
Analysts at VTB My Investments said they had a neutral view on Gazprom due to uncertainty about gas exports and the company's increased tax burden, expecting its dividend for the second half of 2022 to be about five times lower than the 51.03 roubles ($0.8522) per share approved on Friday. ($1 = 59.8790 roubles)