The Chicago Cubs have agreed to a two-year deal with Drew Smyly worth $10 million.

Smyly can earn $7 million in performance bonuses, according to a source.

He never threw a pitch for the Seattle Mariners in 2017 because of arm troubles that led to Tommy John surgery in June. Smyly will likely miss most, if not all, of the coming season as well.

Smyly, 27, is 31-27 with a 3.74 ERA over parts of five seasons with the Detroit Tigers and Tampa Bay Rays.