The comments at the top of the macro indicate that the mint function is payable. However, the macro doesn't seem to handle any ether sent with the transaction. If it's intended to be payable, you might need to add code to handle the received ether.
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.