Monta Ellis has agreed to a deal with the Dallas Mavericks.

Ellis will make as much as $30 million over three seasons and at least $25 million.

Ellis opted out of the final season of his contract with the Milwaukee Bucks at $11 million.

Ellis parted ways with agent Jeff Fried this week.