_repay()
in LendingPool
clamps amount
to actualRepayAmount
but still calls DebtToken.burn(...)
with the original amount
, relying on the DebtToken to clamp again.
Mismatch can create confusion or dust leftover, as the final burn amount is decided internally by DebtToken
.
Not exploitable in typical scenarios, but could lead to partial reverts or leftover debt if misused.
Manual code reading
Tracing repay flow (LendingPool
, DebtToken
)
Pass the properly capped actualRepayAmount
to debtToken.burn(...)
for clarity and to avoid partial dust.
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.