Forward Kevin Hayes has avoided unrestricted free agency by agreeing to a seven-year, $50 million contract with the Philadelphia Flyers, according to a report by TSN on Tuesday night.