The NBA and FanDuel have agreed upon a four-year deal for the daily fantasy sports company to become their official provider.

The NBA will receive equity in FanDuel as part of the deal.

DraftKings were also in talks with the NBA.