In above 2 function we see that rTokenDecimals - deTokenDecimalsand deTokenDecimals - rTokenDecimals
Although I assume here both token has same decimal, But this is poor style of writing code.
When both token decimal deffer then, one of them is going to a overflow condition and fuction always gonna revert.
That directly impact on StabilityPool accounting.
before substarcting check which token decimal is greater and adjust scaling factor according to this like all other protocol does.
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.