Well, I would not use it on food crops ever. I do not know what you used, but you can try and make it better by putting dry molasses on it. How much poison did you use? Put at least twice the amount of dry molasses. Do you have a thermometer in it? Make sure it gets real hot. I am no expert, so I cannot tell you what temperature, but personally, I would aim for over 140 farenheit.
Organic matter can sometimes negate the presence of chemicals. I hope this is the case with yours.
Next time you see ants, add moisture to the pile, not chemicals. You know you did wrong, and that is a start. Bless you for that. I pray you will never do this again. All is not lost, but please do not use it on your veggies. after treating it with molasses and feeding more organic matter into it, try and keep it even more moist than a wrung out sponge. just a little more, so that the larvae of black soldier flies appear. Some cal them maggots, I call them mealworms. Birds love them! this might just be an indicator of "all is well". Please keep in mind that I am NOT an expert. I hope that this helps you.
Gardener Exchange Forum
The Laws of Ecology:
"All things are interconnected. Everything goes somewhere. There's no such thing as a free lunch. Nature bats last." --Ernest Callenbach