In the Battle
event the winner parameter is checked with ternary operator:
However this check differs from the function's logic:
As can be seen, if the random
parameter is equal to defenderRapperSkill
the cred tokens will be transfered to the defender, but the winner parameter in the event will be emitted as msg.sender
i.e the challenger.
This discrepancy can lead to a confusion and misinterpretation of the event data to the external observers, as the emitted winner address doesn't align with the actual winner in such case.
Manual Review
Fix the ternary operator check in the 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.