Following up on the four-year extension signed by Denver Nuggets point guard Ty Lawson on Tuesday, the Golden State Warriors have agreed to a four-year, $44 million contract with point guard Stephen Curry.

The Contra Costa Times first reported the story, and Curry confirmed the contract on Twitter, saying, “And thanks to (owner) Joe Lacob & the Warriors hopefully I can say that for the next 4 yrs. agreed on extension.”

The Warriors had exercised caution in dealing with Curry, who they believe has the ability to be a franchise-caliber point guard. Curry has averaged 17.5 points in his career and has been remarkably efficient as a scorer, shooting 47.3 percent from the field, 44.1 percent from the 3-point line and 90.1 percent from the free-throw line.

As general manager Bob Myers told Sporting News earlier, “We believe Stephen is someone we can build around going forward, that he is part of the core of this team. He is a leader, and he is still developing, still getting better. I have no doubt he has that kind of ability, and he has shown it.”

But ankle troubles have plagued part of the first three years of Curry’s career, and he missed 40 games last season. Despite having surgery last spring, he re-injured his ankle last week. For that reason, there remained the possibility that Curry would not be given an extension ahead of tonight’s midnight ET deadline for fourth-year first-round picks.

Had Curry played out this season and gotten back to fully healthy form, he probably could have demanded more money as a restricted free agent next year. But the four-year deal offers security, and that won out in the end.