Core Contracts

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

Dust repayment rounding issues

Summary

Tiny repayments may round to zero, failing to reduce debt effectively in the RAAC protocol.

Vulnerability Details

In the lending logic, scaledAmount = amount.rayDiv(reserve.usageIndex) could round to zero for very small repayment amounts, preventing the debt from being reduced.

Impact

This issue can result in users being unable to repay small amounts of debt, potentially leading to unnecessary liquidations or increased debt burdens.

Tools Used

  • Manual review

Recommendations

Introduce minimum repayment amounts or debt forgiveness thresholds to handle dust effectively.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

LendingPool::_repay rayDiv scaling causes dust repayments to round to zero, preventing full debt elimination for tiny amounts

The likelihood of super small debts is veeery low. The impact is also very low. I combined these two with the ability to borrow a small amount (but sufficient to not have this problem) then repaying in the next transaction to clear everything, and got to Informational.

Support

FAQs

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