Six months ago, receiver Riley Cooper’s future in Philadelphia was tenuous at best. Some wondered whether in the wake of his use of a racial slur at a Kenny Chesney concert whether any other team would embrace him.

Instead, Cooper took a short break from the Eagles and, after he returned, the issue quickly died. Then, Cooper’s career came alive.

On the brink of hitting the open market, Cooper has signed a deal worth, per a league source, up to $25 million over five years. A small amount of that total comes from escalators, so the base value is less than $25 million.

Of the amount, $10 million is guaranteed. Specifically, Cooper gets a $4 million signing bonus, $4 million in base salary guaranteed for skill, injury, and salary cap ($1 million is fully guaranteed in 2014 and $3 million is fully guaranteed in 2015). Of his total salary of $4 million in 2015, $1 million is guaranteed for injury only. Also, $1 million of his 2016 salary is currently guaranteed for injury only. The injury guarantees convert to a fully guaranteed amounts in March of 2015 and 2016, respectively.