Closed c4-bot-5 closed 2 months ago
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L468
I think the cdp vault should use baseInterestRate instead of baseInterestRateIndex because base interest rate index gives a cumulative linear value and according to docs the base interest should fluctuate
I stand to be corrected
Discord id(s) for hunter(s): [object Object]
Wrong repo
Lines of code
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L468
Vulnerability details
I think the cdp vault should use baseInterestRate instead of baseInterestRateIndex because base interest rate index gives a cumulative linear value and according to docs the base interest should fluctuate
I stand to be corrected