Ps5 edge controller

This is a ps5 edge controller, it was inside the pouch when it got wet, I’m assuming moisture got inside but not directly into the motherboard since it works but only when connected through a cable, the battery doesn’t hold power, but I don’t know if is the battery or the board since it has a bit of corrosion.

But i want to hear opinions guys please