When conducting foreign exchange transactions, the US dollar is often used as the intermediate currency for calculation. For example, if you want to calculate the exchange rate of RMB/Brazilian currency, you can first determine the exchange rates of RMB/USD and Brazilian currency/USD, and then use these two exchange rates to calculate the exchange rate of RMB/Brazilian currency. This practice is often referred to as "dollar pricing".
As for the gold peg, as a valuable asset, gold can be used as a reserve currency, but at present, the unit of valuation of gold value is still the US dollar. Therefore, it is not easy to directly link RMB with gold, which needs to involve the adjustment and cooperation of various policies and market mechanisms. At present, the world has not completely got rid of the dollar monetary system, so the possibility of RMB directly linked to gold is relatively low.