Forward William Nylander and the Toronto Maple Leafs ended their contract stalemate with a six-year deal that was made public minutes before Saturday's 5 p.m. ET deadline that would determine his eligibility for this season.

Nylander, 22, was a restricted free agent. His new deal pays him $41.77 million over six seasons and carries an annual average value of $6.9 million against the salary cap.