I've got a 10 year warranty on the battery pack. And at the rate that independent battery servicing is expanding, there is a very good chance that independent pack refurbishment or replacement will be affordable by March 2032.
In any case, the wife's 1996 Hyundai was worth more to the breaking yard than it was to the second hand market when it's transmission failed in summer of 1997. So even if the battery pack fails immediately after the warranty period and that totals the car, I've still come out ahead in total cost of ownership.