The Miami Heat have traded shooting guard Dion Waiters to the Memphis Grizzlies, according to Shams Charania of The Athletic, adding to a package of Justise Winslow and James Johnson for Andre Iguodala, Solomon Hill and Jae Crowder.

This follows a recent trade bones of an Iguodala move that would see him earn a two-year extension worth $30 million.

The Heat have been unable to reach an agreement with the Oklahoma City Thunder on a three-team trade that would have landed Danilo Gallinari, according to ESPN's Adrian Wojnarowski.

While there is still a possibility that the Thunder could jump back in and make this a three-team trade, talks have stalled as of now with less than three hours before the deadline.

Waiters had been a thorn on the Heat's side for longer than a full season, dealing with a slew of injuries and malcontent with his minutes and role within the team. He will have a potential fresh start in Memphis along with teammates Winslow and Johnson.

The Heat will also get to $3.4 million below the hard cap, $1.98 million above the tax threshold and see their tax bill drop from $6.65 million to only $2.98 million with these moves right before the buzzer, according to ESPN Insider Bobby Marks.

While Miami could use the marksmanship of Gallinari, it's likely that the Thunder, who are seventh in the West, are driving a hard bargain for his services, considering his 19.1 points, 4.7 rebounds, and 2.3 assists averages this season.

Crowder and Hill are on expiring contracts, which Miami could shed at the end of the season, lowering their payroll for the 2020-21 season.