A sentence from Kanji in Context:
人にはそれぞれ長短があって、それで世の中はうまくいくようにできているのです。
I get that it means something like everyone has individual strengths and weaknesses, and thus the world can go smoothly. But what does ようにできる mean here? Is it being used as the potential form of ようにする, i.e. the world can be made to go smoothly?