The $6.67 million cap hit for Pastrnak will be the fourth-highest on the team, behind David Krejci, Tuukka Rask, and Patrice Bergeron.

“I think the work paid off for both sides to find a good landing spot and I know both sides are extremely happy to have it resolved and to get the full training camp, which I think everyone would acknowledge is in everyone’s best interest,” said Sweeney.

Pastrnak, 21, scored 34 goals with 36 assists last year, ranking second on the Bruins in both categories behind only Brad Marchand.

Pastrnak will earn $4 mil more than Filip Forsberg who signed a $36 mil ext in Nashville in 2016. Used as a comp in the negotiation.

Pastrnak entered the summer as a restricted free agent, which essentially eliminated other teams from getting involved in any contract offers. Yet the Bruins and Pastrnak remained far apart on a potential deal all summer long, after Edmonton signed 21-year-old center Leon Draisaitl to an eight-year deal worth $8 million per year. Both sides largely kept their offers and requests private, but it’s been believed that Pastrnak has been seeking a deal close to that of Draisaitl.

Bruins training camp is set to open Thursday, with the team’s first preseason game scheduled for Monday.