Core Contracts

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

Incorrect minted amount of DebtToken

Summary

The mint function is calculating the amount to mint as follows:

uint256 amountToMint = amount + balanceIncrease;
//@audit mint amount
_mint(onBehalfOf, amountToMint.toUint128());

This is not correct because the balance increase is the implicit accrued interest due to an increasing usage index, crediting that in the balance would unfairly increase users' debt.

Vulnerability Details

Impact

Incorrect accrued interest.

Tools Used

Manual review.

Recommendations

Do not include the balance increase in the minted tokens.

Updates

Lead Judging Commences

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

DebtToken::mint miscalculates debt by applying interest twice, inflating borrow amounts and risking premature liquidations

Support

FAQs

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