The challenger can participate in a battle without having any funds, with no risk at all.
The only place where the function will revert is after trying to send the cred tokens from the challenger account to the defender, only if the challenger has already lost the battle. With no checks prior to that, the defender it's in an unfair position, because the challenger can attack without risking anything if he has unsufficient token balance.
Unfair advantage for the challenger.
Manual Review
Have the challenger to send his bet(cred tokens) to the RapBattle.sol contract prior to executing the battle logic and choosing the winner.
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.