The function rap_battle::go_on_stage_or_battle
has the following line :
This means that if the challenger doesn't have the require bet_amount
, the defender will need to wait for a challenger that meet the requirement, and it could append after some hours, days or months or never.
It will depends on the amount that he/she bets on the first place.
The risk is that the funds are locked for an unknown amount of time and maybe after some time the defender would like to withdraw but there is no mechanism for that.
impact: Fund can be lock for months or forever if the bet is really big. (Medium-High)
likelyhood: The likelihood for this to happen is low; it depends on the amount of staking phase the defender had made. (Low)
The scenario is simple.
An user mint a rapper
He/She does 50 - 60 phase of staking and unstaking of 4 days each(Total : 200-240 days) and earn 200 to 240 CRED token
Make a bet of 200 CRED for the battle.
Possible scenario others challengers doesn't have this amount to bet again this serious player, and the funds are locked for months or a year.
Add the possibility to the defenders to withdraw when they think that they wait for to long.(with the help of the module owner or not).
Add the following possibility in rap_battle::go_on_stage_or_battle
:
In this scenario, the module owner can withdraw for the defender.
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.
The contest is complete and the rewards are being distributed.