(Bloomberg) — Gold declined the most in more than two weeks as US President Donald Trump said he would extend the ceasefire with Iran, after plans for diplomatic talks between the two countries were scrapped.

Most Read from Bloomberg

Bullion fell as much as 3.1% before paring some losses after Trump said Tuesday in a Truth Social post that he’s extending the ceasefire until talks conclude while the US continues its blockade on the Strait of Hormuz, the vital waterway for oil shipments.

The dollar and Treasury yields pushed higher, weighing on the precious metal as it’s priced in the greenback and doesn’t pay interest. Oil remained at elevated levels above $90 a barrel, intensifying inflationary pressure that makes central banks more likely to hold interest rates steady or even raise them.

Earlier, gold was weighed down after Federal Reserve Chair nominee Kevin Warsh said the Fed needed a new framework for dealing with persistent inflation, without offering more specifics. Warsh is known for his hawkish stance on inflation. Investors don’t expect him to deliver the aggressive rate cuts urged by Trump, but rather pursue a measured approach with gradual moves to lower borrowing costs.

Markets remain “on edge over whether fresh peace talks would materialize before the ceasefire expires this week, with conflicting signals from both sides adding to volatility,” Manav Modi, commodity analyst at Mumbai-based Motilal Oswal Financial Services Ltd., said in a note. “With uncertainty around both geopolitics and policy outlook persisting, gold remains under pressure.”

Gold has lost about 11% since the conflict began in late February, with a liquidity squeeze during the early days of fighting prompting investors to offload gold to cover losses elsewhere in their portfolios.

“Some repositioning and deleveraging during times of cross-asset volatility should be expected,” Marc Loeffert, a trader at Heraeus Precious Metals GmbH, wrote in a note. “This volatility is likely to last for some time but, in the long run, gold will retain its fundamental attraction as a way to retain purchasing power.”

Spot gold was 2.1% lower at $4,720.04 an ounce as of 4:59 p.m. in New York. Silver slid 0.036% to $76.70 an ounce. Platinum and palladium also declined. The Bloomberg Dollar Spot Index, a gauge of the US currency, gained 0.4%.