The Iranian leadership has understood that, in order to face the continuing threat of militrary aggression by the war party, it must mobilize its military capabilities, and build economic-strategic alliances.
The crisis of the dollar is the crisis of the dollar-denominated system. Just imagine what would happen, were China to pull out of the dollar completely.