The Toronto Raptors have agreed to trade DeMarre Carroll, a future first round pick and a second round pick to the Brooklyn Nets for Justin Hamilton. 

Carroll is owed $30 million over the next two seasons. Carroll previously was coached by Kenny Atkinson when he was an assistant coach with the Atlanta Hawks.

Toronto signed Carroll to a four-year, $60 million deal in 2015. 

With the Raptors re-signing Kyle Lowry and Serge Ibaka this offseason, they had luxury tax issues moving forward.