Core Contracts

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

Incorrect Emission of amountToMint Instead of amountScaled in DebtToken::mint

Summary

The mint() function in DebtToken is responsible for creating debt tokens when a user borrows from the lending pool. However, it emits amountToMint instead of amountScaled in the Mint event.

Vulnerability Details

emit Mint(user, onBehalfOf, amountToMint, balanceIncrease, index);

Impact

The contract mints amountScaled but logs amountToMint, creating mismatches in debt monitoring.

Tools Used

Manual Review

Recommendations

Modify the mint() function to emit amountScaled instead of amountToMint:

Updates

Lead Judging Commences

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

DebtToken::mint incorrect event emission

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

DebtToken::mint incorrect event emission

Appeal created

inallhonesty Lead Judge
6 months ago
inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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

Give us feedback!