@concernedhusband,
Hey man, that friendship must end. Your wife have to flee from her temptation, or risk fall deeper into it.
I would strongly advise that you and your wife need need to seek professional help to find out the health of your marriage.