The Miami Marlins have agreed to a two-year, $22 million deal with Edinson Volquez, according to a source.

The agreement, which is pending a physical, was first reported by The Miami Herald.

Volquez finished 2016 with a 10-11 record and 5.37 ERA and allowed 217 hits, second-most in the American League.