After rereading your post I would be about certain that is why the previous owner traded it in. He knew something was going bad. Dealer just looked at bike and gave a trade in number. It would be nice just to walk away from that bike if possible.
This is sadly the best advice. Otherwise you are looking at a long term and expensive project.