The Golden State Warriors needed to shed some payroll to give Kevin Durant a max contract. That’s exactly what they did Monday, reportedly agreeing to trade Andrew Bogut to theDallas Mavericks.

Marc Stein of ESPN and Monty Poole of CSN Bay Area reported the news, with the latter saying there is an “agreement in principle.” The Bogut trade can’t be made official until July 7, the day after the moratorium ends.

Shams Charania of The Vertical reported the Mavericks will send a second round pick to the Warriors in exchange for Bogut.

Shortly after the Warriors’ crushing loss to the Cleveland Cavaliers in the NBA Finals, Golden State majority owner Joe Lacob made it clear his team wasn’t going to stand pat this summer.

Bogut’s offensive contributions left something to be desired in 2015-16, but he made up for his lack of scoring in other areas. According, he averaged 9.3 points per 36 minutes—the second-lowest output of his career—but also chipped in 12.2 rebounds and 2.8 blocks per 36, both of which were well above his career averages.