Randomness result is predictable due to the variables used for generating randomness.
_battle
function has following line to calculate randomness -
block.timestamp is in control of miners (miner can hold a tx for next block or two), Other params also known ahead of time. which can used to make outcome to there favor. Consider using chainlink VRF for generating randomness.
Predictable randomness make it possible to calculate the winner ahead of execution.
Manual Review, Foundry
Use of Chainlink VRF to generate randomeness.
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.