As a former top lawyer at bankrupt cryptocurrency exchange FTX, Daniel Friedberg helped Sam Bankman-Fried plunder billions of dollars from customer accounts and paid off whistleblowers as a “fixer” for the accused fraudster, according to a lawsuit FTX Trading Ltd. filed this week in Delaware bankruptcy court.

Friedberg, who was both FTX’s chief compliance officer and general counsel at crypto hedge fund Alameda Research, is accused of enabling a scheme in which Bankman-Fried and other higher-ups raided customer exchange deposits to enrich themselves, “lining their own and their families’ and friends’ pockets, and ingratiating themselves with numerous business prospects and potential allies,” the lawsuit says.