I don't think this is stupid on Russia's side. No one's going into war thinking they are going to lose. In this case at least, if Russia does achieve their goal, being temporarily beholden to Chinese' financial system for international trade is an acceptable solution for the time being, they are otherwise beholden to the US as well, what's the difference?