(AP)Philadelphia Eagles quarterback Carson Wentz has accepted a four-year contract extension through the 2024 season.

ESPN says the extension is worth $128 million with more than $107 million guaranteed.

It’s the biggest contract in Eagles franchise history, surpassing Donovan McNabb’s 12-year, $115-million contract signed in 2002 and Fletcher Cox’s six-year, $103-million contract signed in 2016.

Wentz is 23-17 in three seasons as the starting quarterback but has missed 13 games, including five playoff contests, over the past two years.

He finished third in NFL MVP voting in 2017 when backup quarterback Nick Foles led the Eagles to a Super Bowl victory over the Patriots. Wentz has thrown for 10,152 yards, 70 touchdowns and 28 interceptions with a 92.5 passer rating.