The event being emitted inside RapBattle::_battle
contains incorrect logic to get the winner, thus emitting incorrect winner in some scenario.
The event emitted inside RapBattle::_battle
is incorrect as for the winner
parameter it will emit incorrect winner in certain scenario.
The condition for winning the battle is:
But the event being emitted is:
Here it emit _defender
as winner if random <= defenderRapperSkill
but it has incorrect check.
Emits incorrect winner when random == defenderRapperSkill
as msg.sender
instead of _defender
Manual Review
Correct the winner parameter for Battle event
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.