One of the top cannabis-growing businesses has agreed to drop a lawsuit and pay the state $625,000 in exchange for keeping its license that regulators were moving to revoke.

STJ LLC, a Warwick company known better as Fire Ganja, entered into a consent agreement with the R.I. Office of Cannabis Control late last month, acknowledging it had possessed hundreds of pounds of unregistered cannabis products earlier this year in violation of state cannabis regulations.

The company came under fire earlier this year after regulators discovered the illicit material, which is supposed to be submitted and tracked in a state-controlled software system.

The regulators moved to revoke the company’s license this fall after they ordered Fire Ganja to destroy all of the unregistered cannabis, which included 1,473 untagged plants, 1,507 ounces of untagged flower, 2,038 ounces of untagged hash, and 276 ounces of untagged concentrate.