while i agree with @whitepeachjelly that you should dump the guy, i disagree that you only have those two options with your best friend. i've been in the same situation before, and my best friend had meant a lot to me and i didn't want to lose a good friendship over one mistake. so if you don't like what your friend did, but you don't exactly want to end the friendship completely, you can just play it safe. if the both of you can go along with it, you can just not tell her anything you'd have to put any trust into (ex. who your boyfriend is) but still treat her with the same respect you guys had as close friends, and slowly let yourself heal from that experience and have her gain your trust back without losing a friend. i don't think the boyfriend is worth trying to work things out with, but the friend might be. idk man everyone makes mistakes and that's your homegirl, you know?