So it ended up being a 4 team trade:
to Golden State:Jimmy Butler ( from Miami )
to Miami: Andrew Wiggins( from Golden State ), P.J. Tucker ( from Utah ), Kyle Anderson ( from Golden State ) and Golden State's 2025 1st round pick ( top 10 protected, if not used in 2025 then becomes top 10 protected in 2026 and if not used in 2026 then becomes unprotected in 2027 )
to Detroit: Lindy Walters ( from Golden State ), Josh Richardson ( from Miami ) and a future 2nd round pick from Golden State
to Utah: Dennis Schroder ( from Golden State ) and a 2031 2nd round pick ( better pick of Miami or Indiana )
This almost turned into a 5 team trade as Anderson was supposed to end up in Toronto but that part of the deal fell through: