​The ​New York Knicks and ​Dallas Mavericks just agreed to a ​blockbuster trade centered around former Knicks star ​Kristaps Porzingis. While Porzingis is currently sidelined while recovering from a torn ACL, the Mavericks were enamored with his huge upside and felt that now was the perfect time to pounce, considering the big man had recently revealed his frustrations with the Knicks franchise. 


The ​trade sent Dennis Smith Jr., DeAndre Jordan, Wes Matthews and a likely future first-round pick in exchange for Porzingis, Tim Hardaway Jr., and Courtney Lee. Here's a closer look at all of the contracts involved in the trade. 


Kristaps Porzingis: 1 year/$5.7 million. 

Porzingis is going to be a restricted free agent in 2019 but has already revealed that he plans to sign a qualifying offer with the Mavericks this offseason. He's still on his rookie deal and will be cheap for next season as well before his eventual unrestricted free agency.


Courtney Lee: 2 years/$25.1 million. 

Lee initially signed a four-year, $48 million deal with the Knicks in 2016-17. He has two years remaining on his contract and will make ​$12.25 million this year and $12.75 million next season. Dumping Lee's salary was a big win for the Knicks. 


Tim Hardaway Jr.: 3 years/$54.45 million.

Tim Hardaway Jr. signed an absurdly large contract with the Knicks​ before last season, and despite starting off the year hot, he proved he was not worth the sizable investment. The Knicks managed to get him off the books in this trade. He was due to earn $17.325 million this year and a combined $37.1 million over the next two seasons. 

DeAndre Jordan: 1 year/$22.9 million.

DeAndre Jordan will be a rental for the Knicks as the team is likely to pursue max contracts in free agency. Jordan's huge salary is something the Knicks can afford to take on this year, but the team probably won't extend him beyond the 2018-19 campaign. 


Wesley Matthews: 1 year/$18.62 million. 

Like Jordan, Matthews is likely to be a rental in New York. He's an unrestricted free agent after this season and it's unlikely that the Knicks attempt to retain him. His initial deal with the Mavericks was a four-year, $70 million agreement. 


Dennis Smith Jr.: 2 years/$8.3 million.

Smith Jr. is still under his rookie contract and is due to make $8.3 million over the next two seasons. The Knicks will have a team option on Smith to bring him back for $5.68 million in 2020-21 and he will be a restricted free agent in 2021-22.  Smith's rookie deal was a three-year contract worth $11.5 million.