Wells Fargo & Co. WFC, +0.08% was publicly criticized by a top Federal Reserve official over the scandal that came from the bank’s opening of millions of unauthorized accounts.

“Compensation, once again, seems to be at the center of a scandal,” said William Dudley, president of the New York Fed, in a speech on Tuesday in London.