Works and the possible toxicity related to this?

#1
I found out that in button mushroom production, the medium that they will be grown on is prepared by adding formaldehyde and bavastin (a fungicide). Could someone give me an overview of how this works and the possible toxicity related to this?