LendingPool
's finalizeLiquidation
function can get called when the LendingPool
contract is paused
.
The LendingPool
contract implements the Pausable
contract which allows the admins
to pause
the contract if there is an issue to prevent possible loss of funds. However, the finalizeLiquidation
doesn't have the whenNotPaused
modifier:
The function can only get called by the StabilityPool
's liquidateBorrower
function, which means that it only depends on if the StabilityPool
is paused
.
If there is an issue with the LendingPool
and it must be paused
, finalizeLiquidation
function is still callable by the StabilityPool
contract.
Manual review
Add the whenNotPaused
modifier at the finalizeLiquidation
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.