Core Contracts

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

Incorrect Value Emitted in RToken::Burn Event

Summary

The burn function is responsible for burning tokens and transferring the underlying asset to the receiver. However, the function emits the incorrect value in the Burn event:

  1. amount (underlying) is emitted instead of amountScaled (scaled debt value).

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

Vulnerability Details

emit Burn(from, receiverOfUnderlying, amount, index);

Here, amount is emitted instead of amountScaled, which does not accurately represent the burned amount.

Impact

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

Tools Used

Manual Review

Recommendations

Emit amountScaled Instead of amount in Burn Event

emit Burn(from, receiverOfUnderlying, amountScaled, index);
Updates

Lead Judging Commences

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

RToken::burn emits wrong event info

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

RToken::burn emits wrong event info

Support

FAQs

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

Give us feedback!