StabilityPool::calculateRaacRewards
Mixes userDeposits (rToken
) with deToken.totalSupply()
userDeposit is in rToken, while totalDeposits is deToken (total supply). If the ratio between rToken and deToken is not 1:1, this calculation will be incorrect. This requires to convert userDeposits[user] into deToken units before dividing by the total supply.
Incorrect reward calculation. If the ratio between rToken and deToken is not strictly 1:1, this calculation will be incorrect.
Manual review of code and docs.
Convert userDeposits[user] into deToken units before dividing by the total supply.
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.