In the stability pool protocol, rewards are calculated based on a user's total deposit of rToken
and the total issued deTokens
.
The problem arises if the tokens have different decimal places.
In the calculateRaacRewards
function, if the decimals of rToken
and deToken
differ, it could result in highly inflated or deflated rewards.
In deposit/withdraw operations, the scaling factor is always checked. However, in reward calculations, it is omitted, leading to major inconsistencies when distributing rewards.
Manual review
Calculate the scaling factor for both tokens before computing Raac
rewards.
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.