The Knicks have agreed to trade All-Star Kristaps Porzingis, Trey Burke, Courtney Lee and Tim Hardaway Jr. to the Mavericks in return for Wesley Matthews, Dennis Smith Jr. and DeAndre Jordan, sources told ESPN.