Stockholder lawsuits are kind of unique in this way. Generally lawyers are not paid out unless and until they win their litigation, in order to mitigate frivolous suits.
One can negotiate a contingent arrangement so that the client pays ZERO but maybe the lawyers get their fees paid and 35% if there is a win
Just one more example
My sense is tons are negotiable to include if you the plaintiff do not want to pay one cent on a loss - you can juice what the lawyers get for a win and a smart version - (to 'disincent' attorneys from settling too low is to offer a much lower contingency share to lawyer on low dollar wins and increase the % as wins get dollar bigger)