The referral bonus is meant to be split between the referrer and the authority(the trader who was referred by the referrer), but this is not always possible with the current updateReferrerInfo function.
The docs of the tadle platform say that the referral bonus can be split between the referrer and the authority referral as the referrer wishes, but in the current updateReferrerInfo function this is not always possible.
the referral bonus starts at 30%, the referrer should be able to distribute this percentage between him and his referrals as he wishes, but the updateReferrerInfo function revert if _referrerRate is less than the baseReferralRate which is 30%, this is shown in the code below lines 16-18, this doesn't allow splitting the referral bonus between the referrer and the authority referral.
The referral bonus can be split correctly only when the owner of the contract allows the referrer to give an extra rate: referralExtraRate register in the referralExtraRateMap mapping.
The test below shows that when a user tries to split the referral bonus between the referrer and the authority referral the updateReferrerInfo function will revert with the InvalidReferrerRate error avoiding this split of the referral bonus.
The referral bonus can't be split correctly between the referrer and the authority referral.
Manual Review
Modified the updateReferrerInfo function to allow the correct split of the referral bonus
Valid medium, specific valid inputs by admin will still cause revert in updates to referral info due to incorrect totalRate computation and checks implemented. Note: Downgrade to low severity: This is a valid issue that highlights a valid inconsistency in the docs. In the docs, it was mentioned in the steps that referral rates can be adjusted up to a maximum of 30% as seen in [Step 4. ](https://tadle.gitbook.io/tadle/tadle-incentives-program/referral-program/create-and-manage-referral)but as of now, the minimum refferal rate is 30%. However, since refferals are entirely optional, if a minimum 30% refferal rate is established and the user deems it as too high, he can simply choose not to perform the refferal. Hence, I believe low severity to be appropriate.
Valid medium, specific valid inputs by admin will still cause revert in updates to referral info due to incorrect totalRate computation and checks implemented. Note: Downgrade to low severity: This is a valid issue that highlights a valid inconsistency in the docs. In the docs, it was mentioned in the steps that referral rates can be adjusted up to a maximum of 30% as seen in [Step 4. ](https://tadle.gitbook.io/tadle/tadle-incentives-program/referral-program/create-and-manage-referral)but as of now, the minimum refferal rate is 30%. However, since refferals are entirely optional, if a minimum 30% refferal rate is established and the user deems it as too high, he can simply choose not to perform the refferal. Hence, I believe low severity to be appropriate.
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.