Heat: Receive two good role players that can help their depth, plus they're on cheap contracts, and one is expiring. They also get rid of Duncan Robinson's bad contract.
Spurs: A first round pick from a team that is hovering around .500, and they only gave up 2 role players.