Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: high
Invalid

Delayed Liquidation Mechanism Creates Bad Debt Risk

Summary

Liquidation Mechanism allows the HealthFactor to drop below Liquidation Threshold before Initialization of Liquidation

Vulnerability Details

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

https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/pools/LendingPool/LendingPool.sol#L447

Impact

This could result to a Bad debt if the collateral price drops Drastically.

Tools Used

manual review

Recommendations

You can Implement a keeper system to monitor health factors and trigger liquidations immediately when thresholds are breached.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Appeal created

aremson Submitter
4 months ago
inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.