Former Michigan sharpshooter Duncan Robinson has agreed to a historic extension with the Miami Heat, according to a report.

That’s per ESPN’s Adrian Wojnarowksi, who cited Robinson’s agent in the report. The contract is for five years and is worth $90 million, per Woj.

That contract is now the richest in NBA history for an undrafted free agent.

Robinson’s podcast, The Longshot Pod, also tweeted out this video announcing his decision:

Robinson worked his way up through the Heat’s G-League team and eventually earned a starting role with Miami. He started all 72 of the Heat’s game last season and proved himself as one of the best shooters in the league.

So far in his career, Robinson has made 42.3 percent of his 3-point attempts on a volume of 7.8 per game. That sort of efficiency puts him in rare air for shooters in the NBA.

Robinson put up similar shooting numbers at Michigan, but didn’t get much of a look from NBA teams. He was an older player who seemed to only specialize in shooting 3-pointers β€” a skillset that has become more valuable since Robinson entered the league.

This contract will take Robinson’s career earnings to north of $93 million, per Spotrac. He’ll be a free agent again after his age 31 season, so it’s possible he could get another large contract before he retires.