Pacers spend their lottery pick to get Tyler Hero.
Miami gets point guard Colin Sexton and a 2nd round pick. Sexton balances out their roster currently filled with 2 and 3s. If he works out they will have the money to resign.
Cavs get a nice wing in Lamb on a comfortable expiring deal. The main asset they get back is the #13 pick in a deep draft class. Switching 2nd round picks from '22 to '21 gives them better balance with those picks as they have a ton of '22 picks. They won't be resigning Sexton but this gives them decent value back.