Contravir Pharmaceuticals Inc., of Edison, N.J., said it closed its previously underwritten public offering of 5 million shares of its common stock and warrants to purchase up to 3 million shares of the company's common stock at a fixed combined price of $3.