Pre war, The Lannisters are sitting in a gold rich real state, thats why they are the richest house in westeros
who's heir to the name though?
Tywin treats Tyrion like crap, but he really is his only hope at continuing his line 'the right way' (as Joff and his siblings have to front with the Baratheon name)