incorrect implemantation of StabilityPool::calculateRcrvUSDAmount() function
StabilityPool::calculateRcrvUSDAmount() is used to calculating RcrvUSD amount with respect to deToken amount. However, this implementation is not correct. To caculate the right RToken in relation to deToken,
Therefor the right caculation should be:
Altough when rTokenDecimals equals to deToeknDecimals, the results happen to be same. However if these two token have different decimals, this will result in error.
Will break protocol functionality if RToken and deToken have different decimals.
manual
consider revise the calculation terms.
Both tokens have 18 decimals. Info
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.