teejnut
SILVER Star
8awg for 40A is fine for up to 10ft. 10awg is only good up to 30A for 0-10ftFYI 8ga will handle 40A (500W) without any issues at that distance. 10ga might be ok depending on distance but I’d need to check.
Based on Blue Sea's chart here: https://d2pyqm2yd3fw2i.cloudfront.net/files/resources/reference/20010.pdf