Endo will pay up to $637M for Indevus