The usersAddress array stores all participants who called joinEvent() and is used in _getWinnerShares() to calculate total winner shares. However, there's no external function to query the array's length, making it difficult for external contracts, frontends, or tests to determine the number of participants.
Lack of Transparency: External contracts and users cannot determine how many participants joined without trial-and-error or off-chain tracking
Testing Difficulty: As you discovered, it makes testing harder and requires modifying the contract to verify behavior
Integration Issues: Any external contract trying to interact with BriVault (e.g., a frontend, analytics contract, or aggregator) cannot easily query participant count
we should include this function inside the contract to ensure simplicity of testing and to determine the number of participants.
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.