Core Contracts

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

Incorrect Value Emitted in RToken::Mint Event

Summary

The mint function is responsible for minting new tokens while scaling them according to an interest index. However, the function emits the incorrect value in the Mint event:

  1. amountToMint (raw amount) is emitted instead of amountScaled (scaled amount).

  2. The event should reflect the actual minted amount in scaled units, as it is used for interest accrual and accounting.

Vulnerability Details

emit Mint(caller, onBehalfOf, amountToMint, index);

Here, amountToMint (unscaled) is emitted instead of amountScaled, which does not accurately represent the minted amount.

Impact

Explorers and analytic tools relying on Mint event will log incorrect values.

Tools Used

Manual Review

Recommendations

Modify the emit statement to correctly log the scaled mint amount.

emit Mint(caller, onBehalfOf, amountScaled, index);
Updates

Lead Judging Commences

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

RToken::mint emits wrong info in the event

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

RToken::mint emits wrong info in the event

Support

FAQs

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

Give us feedback!