Former Warriors guard Patrick McCaw plans to agree to a one-year deal with the Toronto Raptors, a league source confirmed to Bay Area News Group. ESPN first reported the news.

Shortly after the Cavaliers waived him this week, McCaw sought interest from about eight other NBA teams, a source said. McCaw agreed to a deal with Toronto shortly after clearing waivers on Wednesday.

The NBA has continued its formal review into Cleveland signing McCaw to a two-year, $6 million deal and subsequently waiving him three days later before his contract would become guaranteed. The league plans to speak to McCaw’s representatives on Thursday to probe into if McCaw and the Cavaliers reached an agreement to waive him so he could become an unrestricted free agent, sources said.

The Warriors encouraged the NBA to investigate the situation. The NBA immediately had suspicions that McCaw and the Cavaliers reached an agreement to waive him so he could become an unrestricted free agent, sources said.

It might be hard for the NBA to make a case against Cleveland for various reasons.

Cleveland may have found the terms enticing so they could evaluate a young wing player without any risk. With McCaw averaging only 1.7 points on 22.2 percent shooting in 17.7 minutes through three games, the Cavaliers then waived McCaw on Sunday to sign free-agent guard Cameron Payne to a 10-day contract.

The Cavaliers also do not benefit from Toronto acquiring a 22-year-old wing player that could add bench dept amid its hopes to make an NBA championship run.

Still, under the terms of the league’s Collective Bargaining Agreement, the NBA forbids teams and players to make any “unauthorized agreements” that involve making any deals “express or implied, oral or written, or promises, undertakings, representations, commitments, inducements, assurances of intent, or understandings of any kind” that are “concerning any future Renegotiation, Extension, or other amendment of an existing Player Contract.”

The Cavaliers could face punishments if the NBA finds any wrongdoing. Fines could range anywhere between $3 to $6 million as well as the loss of future first-round draft picks. The Warriors would not receive anything in return, per terms of the NBA’s labor deal. But if the NBA voided McCaw’s contract, he could become a restricted free agent again. That would give the Warriors an asset in a potential trade since they would have the ability to match any offer McCaw receives.

The Warriors declined to match McCaw’s offer sheet nearly seven months after rejecting their $1.7 million qualifying offer and two-year, $5.2 million deal, which included a non-guaranteed deal his second year. They wanted to keep Alfonzo McKinnie, whose contract became guaranteed on Monday as well as keep their 15th roster spot open to acquire another center. The Warriors also had no interest in paying an additional $11 million in luxury taxes to retain McCaw, who had averaged only 4.0 points on 40.9 percent shooting in 16.9 minutes through 57 games in his second season with the Warriors. McCaw also suffered a spinal contusion on March 31 in Sacramento that sidelined him for six regular-season games and 15 playoff appearances.

The Warriors selected McCaw at No. 38 overall out of UNLV in the 2016 NBA draft after paying $2.2 million to the Milwaukee Bucks for their pick.