Do you think that had the Ukrainian and Russian economies been more deeply intertwined, the war wouldn't have happened? That's possible but we also cannot ignore the realities of geopolitics. Sometimes getting a sliver of land is worth all the trouble.
Sorry, but you seem to have misunderstood or partially understood my idea. Stopping wars between countries once and for all requires a change in the global economic pattern as a whole, and I do not mean the Russian-Ukrainian war in particular. When the economic policies of countries change to a better system based on controlling resources, there will be no need to create conflicts and go to war.
The economies of Russia and Ukraine are closely interconnected, and this did not prevent the outbreak of war, which took in a large part of the economic sectors as part of the conflict.