(AP) — Seth Curry is returning to Dallas as a free agent after a year away.

Two people with knowledge of the deal say Stephen Curry’s younger brother and the Mavericks have agreed on a $32 million, four-year contract. The people spoke to The Associated Press on condition of anonymity because deals can’t be signed until Saturday.

The younger Curry had the best season of his career with Dallas in 2016-17, averaging career highs of 12.8 points, 2.7 assists and 29 minutes per game. He missed all of 2017-18 with a stress reaction in his lower left leg before joining Portland on a one-year contract last season. Curry averaged 7.9 points for the Trail Blazers.

The Mavericks were looking for a shooting guard to pair with rookie of the year Luka Doncic, the 20-year-old Slovenian who figures to be their starting point guard for years. With the Curry agreement, Dallas still has about $20 million in salary cap space.

Curry has the versatility to play both guard spots. So does Jalen Brunson, a second-round pick in last year’s draft after Dallas traded up to get Doncic as the third overall selection.

Steph Curry showed his brother support on Twitter after the deal was announced: