Description:
there are different logic used between event emitter Battle
and logic function for choosing winner:
RapBattle.sol
Impact:
if the random
value is equal to defenderRapperSkill
, there would be 2 winner:
offchain winner : challenger
onchain winner : defender
Recommended Mitigation:
use consistent logic for emitted event and function logic.
Below are example of using the function logic and correcting the emitted event:
RapBattle.sol
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.