MIAMI — Dwyane Wade has an offer to consider.

Wade has been extended a two-year, $40 million contract offer to stay with the Miami Heat, a person with knowledge of the negotiations told The Associated Press on Monday.

The second year would be at Wade’s option, said the person who spoke to the AP on condition of anonymity because talks are ongoing. The contract, if accepted, would essentially match the career-best $20 million salary Wade made this past season.

This is the second consecutive summer in which Wade and the Heat have had a rocky time finding common contractual ground, and the issue this time could be more about the length of the deal than the compensation. Wade has left millions on the bargaining table in past negotiations with the Heat, though some of that sacrifice also helped him win championships in 2012 and 2013.

A three-year deal would obviously help him recoup more of what he’s given up in the past.

Wade was returning this week to the U.S. from a European vacation, which he shared part of with longtime friends LeBron James and Chris Paul.

MAVERICKS-WARRIORS TRADE: Andrew Bogut is headed to the Dallas Mavericks from Golden State thanks to the Warriors’ successful pursuit of Kevin Durant.

A person with knowledge of the deal said the Mavericks have agreed to acquire Bogut with the Warriors trying to clear salary cap space so they can add the four-time scoring champion Durant to the Splash Brothers duo of Stephen Curry and Klay Thompson.

SPURS: A person with knowledge of the situation tells The Associated Press that San Antonio has agreed to terms with veteran forward Pau Gasol on a two-year deal worth $30 million.

Gasol and the Spurs quickly agreed to a deal not long after Durant chose the Golden State Warriors over the Spurs and other teams in free agency.