By Saqib Iqbal Ahmed

NEW YORK (Reuters) – The U.S. dollar rose across the board on Tuesday as Treasury yields climbed and worries over a further acceleration in global inflation kept investors’ risk appetite at bay.

The dollar was supported by demand for havens. U.S. stocks fell on Tuesday as soaring oil prices and hawkish comments from a Federal Reserve official spooked investors.

U.S. Treasury yields climbed on Tuesday, a day after Fed Governor Christopher Waller said the Fed should be prepared to raise interest rates by a half percentage point at every meeting from now on until inflation is decisively curbed.

The U.S. Dollar Currency Index, which tracks the greenback against six major currencies, was up 0.5% at 101.92, on pace for its best one-day gain in nearly two weeks. The dollar index, up about 6.6% for the year, is down 1.2% for May, on pace for its worst monthly loss in a year.

Tuesday’s bounce in the U.S. dollar suggests better support for the dollar index around its 50-day moving average, which the index has been testing over the past couple of sessions, Shaun Osborne, chief currency strategist at Scotia Bank, said in a note.

The dollar index has not closed below its 50-day moving average since mid-February but has drifted closer to it over the last several sessions.

“We think the USD is unlikely to rally significantly and still consider price action to reflect the early stages of a broader reversal in the recent USD bull trend.” Osborne said.

For now, the euro remained weak as data on Tuesday showed euro zone inflation hit a record high in May, adding pressure on the European Central Bank as it fends off a recession and looks to curb high prices with gradual interest rate increases in coming months.

Inflation in the 19 countries sharing the euro accelerated to 8.1% in May from 7.4% in April, beating expectations for 7.7% as price growth continued to broaden, indicating that it is no longer just energy pulling up the headline figure.

Against the dollar, the euro fell 0.6% to a 5-day low.

News that European Union leaders agreed in principle on Monday to cut most oil imports from Russia by the end of this year sent oil prices higher and offered some support to commodity currencies.

The Canadian dollar touched 1.2653 per dollar, near a one-month high struck overnight, ahead of Wednesday’s Bank of Canada meeting at which all 30 economists polled by Reuters expect a 50-basis-point rate hike to 1.50%.

In cryptocurrencies, bitcoin climbed 0.42% to $31,363.19, a near 3-week high.

(Reporting by Saqib Iqbal Ahmed; Editing by Will Dunham)