In the file contracts/core/pools/LendingPool/LendingPool.sol
function repayOnBehalf
and _repay
The variable scaledAmount
is not used during DeptToken burn in line 418
This may cause extra DeptToken burned.
Within _repay
function, if a malicious user repay with amounts so much higher than its own userScaledDebt
, the contract still asks the DeptToken contract to burn
the amount
Dept tokens.
This may cause incorrect number being burned
This may cause incorrect/higher amount of DeptToken got burned
Manual review
Suggest using the actualRepayAmount + extra dust
for the burn
function.
Interest IS applied through the balanceOf() mechanism. The separate balanceIncrease calculation is redundant/wrong. Users pay full debt including interest via userBalance capping.
Interest IS applied through the balanceOf() mechanism. The separate balanceIncrease calculation is redundant/wrong. Users pay full debt including interest via userBalance capping.
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.