Liquidation Mechanism allows the HealthFactor to drop below Liquidation Threshold before Initialization of Liquidation
The LendingPool contract's liquidation mechanism on https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/pools/LendingPool/LendingPool.sol relies on external actors to initiate liquidations through the initiateLiquidation()
function after a borrower's health factor falls below the threshold. This reactive approach, rather than a proactive one, creates a timing gap where the protocol is exposed to potential bad debt.
The affected function
This could result to a Bad debt if the collateral price drops Drastically.
manual review
You can Implement a keeper system to monitor health factors and trigger liquidations immediately when thresholds are breached.
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.