Shaun Livingston barely stuck a toe into the free agency. He had his reasons.

The veteran point guard wanted to stay with the Warriors, because they have become family, and he wanted to stay in Oakland, because it has become home.

So Livingston and the Warriors struck a deal minutes after free agency began Friday night, agreeing to a three-year contract that could be worth as much as $24 million. No deal is official until July 6 at 9:01 a.m. PT.

“You can’t put a price on happiness,” Livingston said in a text message to NBCSportsBayArea.com.

Livingston, who turns 32 in September, bought a home in Oakland and this year became a father for the first time. He played for eight other NBA teams before joining the Warriors on a three-year, $16.6-million deal as a free agent in July 2014.

The Warriors wanted flexibility, and Livingston and his representatives were willing to make a compromise on the third year. He’ll receive $8 million in each of the first two seasons, but has only a $2 million guarantee for the third year, according to multiple sources.

With Klay Thompson under contract and agreements with Stephen Curry and Livingston, the Warriors have assured themselves of retaining their top three guards from the past three seasons.