Every time user withdraw his RTokens from stabilityPool he is getting his portion of RAAC tokens reward. But this mechanism can be easily abused.
User can withdraw portion of his tokens, and then rewards are calculated in following formula.
Let's assume following scenario:
RToken totalSupply: 10000
RAACToken 500
Mike deposited 1000 RTokens
(small number for simplicity)
Mike withdraws 1 RToken, base on formula above, he will get (500 * 1000) / 10000 = 50 RAACTokens
Then he is triggering the same transaction many times:
(450 * 999) / 9999 = 44.95 RAACTokens
(405.05 * 998) / 9998 = 40.43 RAACTokens
...
Mike might wait for new reward distribution and trigger as many transactions as it is required to steal all the tokens, while fair system would distribute to Mike only 50 RAACTokens, which is 10% of total reward, since Mike owns 10% of totalSupply.
Even if nobody is abusing it intentionaly, that solution wouldn't make any sense, because it is rewarding often withdrawals, not the time of participating in deposit.
Someone could steal the entire RAAC token distribution, leaving nothing for the rest.
Manual Review
Reward system should takes into account time of participaion, and it should allow to claim again the same reward
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.