In terms of human lives, it's the right deal. Past that, it's the worst possible scenario: Ukraine's territory is not rightfully and completely restored while Russia's economy is nearly irrecoverable, leading it to become nothing more than a resource vassal state to China.
This war has dire global economic consequences. China's not going to get away unscathed either, as demands for its own goods will decrease as the rest of the world's economies get hit by an enormous increase in energy prices and decreased profits as companies around the world stop doing business with Russia.
The world is connected like never before and there are no unipolar winners or losers any more (if there ever were, considering the squandered individual, society-wide, and world-wide human potential when people die).
At the very least this is likely to lead to a global depression.
That's if we avoid WW3, which would devastate the entire world if it happened.
This could very well lead to the end of the global economy as it exists now, and the formation of a few large, insular economic blocs only doing business amongst themselves.