As long as the money was there, Klay Thompson wasn’t leaving the Golden State Warriors. The money will be there for the Warriors’ All-Star shooting guard.

Thompson is expected to reach an agreement on a five-year, $189.6 million contract when free agency officially begins on Sunday, a person with knowledge of the deal told USA TODAY Sports. The person was granted anonymity because he was not authorized to speak publicly until the free agency period is open.

Both sides have been committed to each other, so this is no surprise.

Thompson sustained a torn ACL during Game 6 of the NBA Finals against Toronto and will miss a significant portion of the 2019-20 season. But that didn’t sway Golden State from keeping their elite 3-point shooter, who helps form one of the best backcourts in the league alongside All-Star Steph Curry.

Thompson averaged 21.5 points and shot 40.2% on 3-pointers last season, marking the eighth time in his NBA seasons that he has shot at least 40% from that distance.

While the Warriors don’t have salary cap space to pursue top-dollar free agents from other teams, they can keep exceeding the salary cap and luxury tax lines to re-sign their own free agents.

MORE: Rumors on free agency

Golden State also wants to re-sign All-Star Kevin Durant, who sustained a ruptured Achilles in Game 5 of the NBA Finals. The Warriors are expected to offer Durant a five-year, $221.2 million contract.

The Warriors have the money. They’re expected to generate significant revenue by moving into the new Chase Center in San Francisco next season, and they want to keep a championship-caliber roster on the court.

Follow Jeff Zillgitt on Twitter @JeffZillgitt