Core Contracts

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

Irrelevant Error Message in `LendingPool::initiateLiquidation` Function

Summary

In the LendingPool contract, there is an error type called HealthFactorTooLow. This error is triggered in the LendingPool::initiateLiquidation function when healthFactor >= healthFactorLiquidationThreshold (+), which is misleading and does not reflect the situation.

Vulnerability Details

In the LendingPool::initiateLiquidation function, the error message does not correspond to the actual condition being checked.

if (healthFactor >= healthFactorLiquidationThreshold) revert HealthFactorTooLow();

Impact

This can lead to user confusion.

Tools Used

Manual review

Recommendations

Change the error message from HealthFactorTooLow to HealthFactorMoreThanThreshold.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!