The agent for the 6-foot-8 Hayward, who averaged career highs of 16.2 points, 5.2 assists, 5.1 rebounds and 1.4 steals last season, confirmed the deal on Saturday after it was first reported by Yahoo Sports.

Utah has not confirmed that it matched the Hornets' offer.

The 37-year-old Carter, an eight-time All-Star who was a key reserve for the Dallas Mavericks last season, received a multi-year deal, according to the Grizzlies' website, although terms of the deal were not disclosed.

Carter, who is 6-foot-6 and can play guard or small forward, averaged 11.9 points, 3.5 rebounds and 2.6 assists a game for the Mavericks, who were looking to bolster their perimeter shooting. Carter has career shooting percentages of 44.2% from the field, 37.8% from three-point range and 79.9% from the free-throw line.