He was a pending restricted free agent, and $2.4 million is the same amount as the qualifying offer New York would have needed to sign him for to retain his rights.
The deal with the No. 2 pick in the 2019 draft carries an annual salary cap hit of $2.1 million.
Jack Hughes and Kaapo Kakko each wanted to be No. 1.