Current pausing feature allows pool to be globally paused including repay
, repayOnBehalf
and depositNFT
functions.
The problem is the updateReserveInterests()
will not factor in the duration of pausing where user cannot repay a loan.
The interest continues to accrue even when protocol is paused. Even though, there isn't really a risk of mass liquidations as borrowers still have a repayment grace period before their positions is liquidated, but still if the liquidations is initiated due to borrower not being able to supply collateral or repay part of the loan, he is now forced to repay all of his debt and close his position.
Due to the fact that interest keeps accruing even when the protocol is paused, users might be forced to fully repay all of their debt and close their positions.
Consider storing pause/unpause timestamp to allow skipping borrow interests compounding for the duration of the pause.
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.