This cordless table saw is built for mobile jobsites where outlets aren't convenient. Melted battery contact terminals are a serious failure mode because heat damage can create intermittent power loss and further arcing, and it may also damage expensive batteries.
Repair can make sense if the damage is limited to replaceable contact components and there is a clear root cause (dirty contacts, loose fit, overloaded cuts, or a damaged battery). Replacement is usually the safer choice if the housing around the terminals is deformed, the controller has been heat-stressed, or multiple batteries show similar heat marks.
Because cordless systems are ecosystem-driven, evaluate whether you can service the interface reliably; recurring heat issues quickly outweigh short-term savings. Pricing reference: Home Depot DeWalt DCS7485B product page.