Duncan Robinson has agreed to a five-year, $90 million contract with the Miami Heat.

The deal includes an early termination option after the fourth year. Robinson's deal is the largest every for an undrafted player. 

Robinson averaged 13.1 points, 3.5 rebounds and 1.8 assists in 31.4 minutes per game last season. Robinson has a career three-point shooting percentage of 42.3 percent.