Twitter agreed to pay investors $809 million to settle a securities class action hours before jury selection was set to begin Monday in Oakland, California.

The proposed settlement could be the largest securities fraud class action recovery in the last 20 years in the U.S. Court of Appeals for the Ninth Circuit, and the second-largest ever in the Ninth Circuit, according to plaintiffs’ counsel from Robbins Geller Rudman & Dowd and Motley Rice.