One of the world’s largest auditing firms failed to detect a fraud scheme that forced a Miami factoring company into bankruptcy and cost Espirito Santo Bank more than $170 million, the bank’s attorney claimed Thursday.

The attorney for outside auditors BDO Seidman countered the bank was raking in the profits on the factoring business and was responsible for finding the scam.