 While the majority of the disputed territories lay in the west, the Russian Federation inherited only about 50 km (26 mi) of the former western Sino-Soviet border.China negotiated separate border agreements with each of the post-Soviet republics on its western borders.