This is not the optimal trade for Toronto. This is, unfortunately, what I believe is the most likely outcome from Toronto's internal politics. Hopefully Raptors can net some first-round picks.
A much better outcome could be achieved through: https://fanspo.com/nba/trades/FqmrXqQ95a8ONE
