The St. Louis Cardinals have agreed to a three-year, $22 million contract with Lance Lynn, avoiding arbitration.

Lynn gets $7 million this year and $7.5 million in each of the following two seasons.

The right-hander made $535,000 last season, when he was 15-10 with a 2.74 ERA in 33 starts.