The function assumes the token address points to a valid ERC20 contract but doesn't verify this beyond the decimals call.
Add explicit token existence check:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.