Contract for the chairman of a listed company: how to manage a conflict of interests?

A stock corporation whose board of directors is reduced to two members due to a dispute among shareholders cannot validly enter into a contract of mandate (director) and employment (manager) with the chairman of the board without violating the prohibition of self-contracting.