The Miami Heat and Danilo Gallinari are working on a contract extension to help finalize a three-team trade involving the Oklahoma City Thunder and Memphis Grizzlies.

Gallinari is on an expiring contract.

The Heat still want to maintain cap space for 2021.