Victor Wembanyama has signed what will be the richest contract in San Antonio Spurs history, a five-year extension that could exceed $250 million if the player option in the final season is picked up, a person with knowledge of the negotiations said Friday.

The person spoke on condition of anonymity to The Associated Press because the financial figures were not disclosed by either side. The Spurs, who went to the NBA Finals last season behind the All-NBA center and unanimous Defensive Player of the Year, announced that Wembanyama had signed, simply saying the sides agreed on a multiyear contract extension.

“Spurs family, I’m here to stay,” Wembanyama wrote on social media Friday. “Whatever it takes.”

The agreement comes at a discount; Wembanyama could have agreed to a deal that would have topped $300 million over five years — but chose a lesser amount to help give the Spurs flexibility going forward with their young core and in anticipation of the contracts some of those budding stars will be eligible for in coming years, the person said.

And that was the only detail really for the sides to hammer out. Wembanyama, 22, already is considered one of the game’s most dominant players, and it was a no-brainer that the Spurs would offer an extension. The only question was whether Wembanyama would accept a deal that starts with him making 25% of the salary-cap figure or if he’d hold out to see if he could initially make 30% of the cap.

ESPN first reported the agreement.

Wembanyama will make about $16.8 million next season, the last under the terms of his rookie contract. The newly signed deal kicks in for 2027-28 and will start with a salary of around $43.5 million, then keep rising from there. The 7-foot-4 center from France would have a $57.5 million option for 2031-32.

Wembanyama was the Most Valuable Player of the Western Conference finals, finished third behind Oklahoma City’s Shai Gilgeous-Alexander and Denver’s Nikola Jokic in the season MVP voting and has led the league in blocks per game in all three of his NBA seasons.

He averaged 25 points and 11.5 rebounds last season, leading the Spurs to a 62-20 record, the No. 2 seed in the West and a berth in the NBA Finals against the New York Knicks. The Spurs lost that series in five games.

“It’s painful. It’s painful,” Wembanyama said a few minutes after the series ended. “But I’m not running away from that. I’m using it to fuel me. … I’m not satisfied with not winning. But this is the biggest lesson of my life. As a team, there’s no better experience than what we just lived.”