Maine is likely to receive more than $10 million over the next six to 10 years as part of a national agreement with JUUL Labs, the e-cigarette maker accused of marketing to youth, Attorney General Aaron Frey announced Monday.

The $438.5 million agreement in principle between JUUL and 33 states and territories ends a two-year investigation into the company’s marketing and sales practices. 

The investigation showed that JUUL used advertising tactics that appealed to youth, Frey said in a statement.

“JUUL strategically targeted young consumers with products known to be highly addictive and ultimately deadly,” Frey said.

After the settlement is finalized, Maine is set to receive between $10.6 million and $11.6 million in payments made annually over six to 10 years.

In part because of concerns about youth e-cigarette use, Bangor, Brunswick and Portland have banned flavored tobacco sales in recent months, joining more than 300 communities across the country.

As part of the settlement, JUUL will refrain from youth marketing, use of cartoons, free samples, and use of paid influencers, among other limitations, according to Frey’s office.