deposit function is currently designed to allow users to participate in the contract by depositing tokens. However, it does not include a mechanism that allows a user to sign up or register other users. This functionality was likely intended to be part of the contract, but it is missing. The absence of such a feature means that each user must sign up individually, limiting flexibility and potentially complicating the user experienceThe issue is located in the deposit function of the contract:
deposit function allows the caller to sign up as a participant if they are not already one, but it only registers the caller (the one making the deposit).The contract should be modified to allow users to register other participants by introducing a separate function for this purpose. This function should ensure that the calling user has the authority to sign up others (for example, a "host" or "admin" role, or a user with specific permissions).
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.