The Detroit Pistons and former No. 1 overall pick Cade Cunningham have agreed to terms on a five-year, $224million maximum rookie contract extension.

The deal could be worth up to $269million if Cunningham earns All-NBA honours in 2024-25.

Cunningham played one season at Oklahoma State before Detroit selected him No. 1 overall in the 2021 NBA Draft.

He earned First-Team All-Rookie honours in 2021-22 after averaging 17.4 points, 5.6 assists and 5.5 rebounds in 64 games.

Cunningham appeared in Detroit’s first 12 games in 2022-23 before sustaining a stress fracture in his shin that led to season-ending surgery.

The 22-year-old point guard bounced back last season, averaging team highs of 22.7 points and 7.5 assists while adding 4.3 rebounds per game in 62 contests.

The Pistons, though, posted an NBA-worst 14-68 record, and Detroit is last in the league with a .220 winning percentage (54-192) since drafting Cunningham.

In the 138 games Cunningham has played in his career, the Pistons have gone 32-106.