This audit report provides an overview of the smart contract code in the LendingVault.sol contract on Ln 485.
Location: LendingVault.sol, Line 489
Description: The function _calculateInterestRate in the LendingVault contract performs division followed by multiplication on the result of division. Solidity's integer division truncates, which can lead to precision loss
Performing division before multiplication in this context may result in a loss of precision, potentially affecting the accuracy of interest rate calculations.
Static analysis + manual inspection
Recommendation: Rearrange the code to perform the multiplication before the division to avoid precision loss.
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.