The taylor series expansion calculation function rayExp in WadRayMath library used to calculated the compound interest has incorrect denominators.
Due to incorrect implementation of the of the taylor series expansion formula we can get higher a compound interest value compared to the expected one, this is due to incorrect division in the denominators by smaller values. You can see a comparison in the rate of growth between the incorrectly implemented functon in the code and the correct one:
Formula being used:
Correct formula:
Graphical comparison of the growth of the two functions:
As the usage rate of the LendingPool is getting bigger so would be inaccuracy in the compound interest calculation, which in turn means that we would get larger values for the compound rate than we should and user debt calculations would yield bigger values as they are dependent on the compound interest value.
Manual review
Implement the correct denominator devision in the taylor series expansion calculation.
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.