A purified lipid-based solution including cannabinoids is manufactured by providing a lipid solution including an array of triglycerides, cannabinoids and water soluble components. Adding water to the lipid solution to create a mixture and heating the mixture in a pressure vessel to a temperature above the melting point of the lipid solution. The mixture is agitated to dissolve the water soluble contaminants and electrocoagulated. The mixture is cooled to cause the triglycerides and cannabinoids to solidify. The water is separated from the mixture to remove water soluble contaminants, precipitated contaminants, suspended solids and colloids from the mixture to yield a purified lipid solution.