So it is said that Adam Smith said that self interest leads to collective interest.

This is obviously not the case. We do not have a society that maximises the collective good*.

My question is, Is there a way to engineer society such that self interest will lead to a collective interest?

----
*It can be argued that the very poor are not as poor as they were a short time ago, but this is not what I am asking about.