Core Contracts

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

DebtToken::mint mints more than actual debt

Vulnerability Details

In DebtToken::mint we are supposed to provide the actual debt in _mint as it will automatically be scaled inside the overridden _update function.
amountToMint is calculated to pass as a param in Mint event, that is its only use.

Impact

Borrower will have to pay more debt than the actual amount he is supposed to pay

Tools Used

Manual Review

Recommendations

--- _mint(onBehalfOf, amountToMint.toUint128());
+++ _mint(onBehalfOf, amount.toUint128());
Updates

Lead Judging Commences

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

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

inallhonesty Lead Judge 7 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.

Give us feedback!