The solution to ending wars is to change economic strategies, at least in dealing with problems that may necessitate the outbreak of war.
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.