If you been having a long term corrosion problem, I'd bet your battery(s) have a problem.
But my advice is,......if possible, don't connect anything directly to the battery,.....except for very short term. Any dissimilar metals are inviting corrosion if near the batt vents.
Rich
'01 31' Rexall Vision, Generac 5.5k, 1000 watt Honda, PD 9245 conv, 300 watts Solar, 150 watt inv, 2 Cos 6v batts, ammeters, led voltmeters all over the place, KD/sat, 2 Oly Cat heaters w/ ox, and towing a 2012 Liberty, Lowe bass boat, or a Kawi Mule.