In the DebtToken::mint
function, there is a calculation for balanceIncrease
, and this variable is added to the amount. Therefore, scaledAmount
and amountMinted
are not necessarily the same. As a result, amountMinted
should be added to user.scaledDebtBalance
state here.
This can lead to incorrect calculations.
Manual review.
Make the following changes to the LendingPool::borrow
function.
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.