User deposits and total deposits are denominated in 2 different numbers, dividing them will cause issues
Pending rewards in the stability pool are calculated via calculateRaacRewards
However userDeposit is denominated in rToken, whereas totalDeposits is in deToken which are expected to have different decimals, as seen in the deposit method
This creates 2 issues:
rToken has more decimals than deToken -> complete DoS on withdrawals due to attempting to transfer more than what the contract holds
deToken has more decimals than rToken -> users will have their rewards greatly reduced
Loss of funds, DoS, broken core functionality
Either perform a decimal conversion or make sure that userDeposits and totalDeposits are denominated in the same token
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.