Core Contracts

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

Incorrect Debt Calculation Due to Outdated Reserve State

Summary

The function LiquidityPool::getUserDebt retrieves a user's total debt, but it may return incorrect data if the reserve state (specifically reserve.usageIndex) has not been updated before the debt calculation.

Vulnerability Details

The function fetches the reserve.usageIndex without ensuring that the reserve state is up-to-date. If the usageIndex is outdated, the debt calculation will return incorrect values, leading to inaccurate debt data.

Impact

The impact of this issue is that users may receive incorrect debt values, which can affect financial operations such as debt management, liquidation checks, or balance updates. While the system won't fail outright, the incorrect data may lead to misleading financial decisions.

Tools Used

Manual review

Recommendations

Ensure that the reserve state, particularly reserve.usageIndex, is updated before performing any debt calculations to avoid displaying stale data.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool::getUserDebt uses stale usageIndex without accounting for accrued interest since last update

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool::getUserDebt uses stale usageIndex without accounting for accrued interest since last update

Support

FAQs

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