Contributary ESA depends upon previous NI contributions*, income and assets are not taken into account.
*People who were on IB would have paid NI contributions at some stage in the past and have been transferred to contributary ESA. They would not qualify for any other contributary benefits as no actual contributions have been made since they started on IB.
Nothing on this board constitutes legal advice - always consult a professional about specific problems