The protocol supports a referral system for end users, allowing them to receive rewards or incentives. However, the admin has the ability to override the referral code, which will result in the user losing their reward or incentive.
The Owner can set the referral code for users lets check the following code:
The following scenario can occur:
The owner sets referral code 1 for Alice.
Alice uses this code to onboard 3 users.
Alice becomes eligible to receive rewards.
Meanwhile, the owner updates Alice's referral code to 2.
As a result of this update, Alice will lose all rewards or incentives.
Updating the referral code could result in the loss of rewards or incentives for the end user.
Manual Review
First, check if the referral code is not set; if it isn't, set it. Otherwise, revert with an "already set" error.
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.