#42388 [SC-Insight] Discrepancy between number of Yeetback winners in contract and documentation
Was this helpful?
Was this helpful?
Submitted on Mar 23rd 2025 at 14:12:20 UTC by @Oxrochimaru for
Report ID: #42388
Report Type: Smart Contract
Report severity: Insight
Target: https://github.com/immunefi-team/audit-comp-yeet/blob/main/src/Yeetback.sol
Impacts:
As per documentation the number of yeetback winners are 10 but are configurable via config. But as per Yeetback::draftWinners()
nrOfWinners are hardcoded to 10 and can't be changed.
https://docs.yeetit.xyz/yeet/yeet-game
The documentation states that number of winners can change but it is hardcoded to 10 in the smart contract.
Documentation is contradicting the actual behaviour in the code.
Numbers that are formated in this way 10 means that they are changeable via some configuration.
User reading the documentation will believe number of winners are configurable.
Actually no. of winners are fixed to 10 in the smart contract.