The Blackhawks and Vinnie Hinostroza agreed Friday to a two-year contract extension, a source told The Athletic.

Hinostroza, 24, will have a $1.5 million cap hit. He’s coming off his entry-level contract and was set to become a restricted free agent.

Hinostroza earned his money and a permanent place in the NHL this past season. After beginning the season with the Rockford IceHogs in the AHL, Hinostroza worked his way back to the NHL and produced seven goals and 18 assists in 50 NHL games.

He was third on the team with 1.98 points per 60 minutes in 5-on-5 play and fourth with a 53.82 Corsi percentage (minimum 41 games).

The Blackhawks also announced a contract extension for forward John Hayden. He will have a two-year, one-way contract with a $750,000 cap hit, a source said.

Hayden, 23, split time between the AHL and NHL last season. He had four goals and nine assists in 47 NHL games. He was also going to become a restricted free agent July 1.

The only remaining potential restricted free agents for the Blackhawks are Adam Clendening, Anthony Duclair and Tomas Jurco. A source expects Jurco to re-sign. As for Clendening and Duclair, their futures are unknown.

(Top photo: Perry Nelson/USA TODAY Sports)