Wrong BASE_SKILL applied to rappers along with no checks for rapper skill about to go on stage to meet skill requirements leads to under-skilled rappers to go on stage.
The documentation stipulates that :
But the BASE_SKILL
in the codebase is set to 65
For a new rapper, the skill will be 65 - 5 - 5 - 5 = 50
, which is enough to go on stage.
However, they normally could go on stage if the correct starting base skill of 50 was applied.
With this, the skill of a new rapper who didn't staked his RPR
would be 50 - 5 - 5 - 5 = 35
.
This is under the required skill (50) to go on stage for a battle.
There is not check for that. As a result, it allows rappers to go on stage even if they don't have enough skills.
Given the fact that the only way for rappers to improve their stats and earn CRED is by staking their RPR
in Streets.sol
, and also given the fact that there is no checks for _credBet to be greater than 0 (more info in my previous finding),
new rappers can go on stage without having enough skill and any CRED to bet.
Manual review
And add a check if rapper's skills meet BASE_SKILL requirement.
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.