The Minnesota Wild and forward Frederick Gaudreau agreed to a five-year, $10.5 million contract through the 2027-28 season, the team announced Thursday night.

Gaudreau, 29, was set to become a free agent following the season.