The repay
function in LiquidityPool
includes the whenNotPaused
modifier, preventing repayments when the contract is paused. This creates a critical issue: if the contract is paused during a borrower's 7-day grace period, they will be unable to repay their debt, leading to forced liquidations even if they were able to cover their obligations.
If the contract is paused during the grace period, users are blocked from repaying their loans.
This violates the intended logic of allowing repayments within the grace period before liquidation.
Malicious actors or protocol mismanagement could exploit this to force unnecessary liquidations.
Borrowers could lose their collateral even when they have funds available to repay.
Manual review
Remove the whenNotPaused
modifier from repay
to ensure borrowers can always settle debts within the grace period
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.