Russell Westbrook has signed a five-year, $80 million-plus max extension with the Oklahoma City Thunder, according to sources.

Westbrook would have become a restricted free agent this summer without an extension.

Sam Presti finalized the deal with Westbrook’s agent, Thad Foucher of Wasserman Media Group, on Wednesday night.

Westbrook gets an extension that pays him 25 percent of the Thunder’s cap and preserves space for the team to sign James Harden and Serge Ibaka to new deals.