Judge has assessed an item in Issue #1504 as 2 risk. The relevant finding follows:
In FighterFarm::_createFighterBase, a new set of weight, element and dna is created. According to the protocol, weight should lie in the range 65-95 with jumps of 10 between the 3 weight classes (Striker, Scraper, Slugger), such that the first class is 65-74, second one 75-84, and third one should be 85-94. But the code defines up to 95 as can be seen here:
Judge has assessed an item in Issue #1504 as 2 risk. The relevant finding follows:
In FighterFarm::_createFighterBase, a new set of weight, element and dna is created. According to the protocol, weight should lie in the range 65-95 with jumps of 10 between the 3 weight classes (Striker, Scraper, Slugger), such that the first class is 65-74, second one 75-84, and third one should be 85-94. But the code defines up to 95 as can be seen here:
https://github.com/code-423n4/2024-02-ai-arena/blob/cd1a0e6d1b40168657d1aaee8223dc050e15f8cc/src/FighterFarm.sol#L471
uint256 weight = dna % 31 + 65;