Core Contracts

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

Amounts returned in mint function form RToken are switched

Vulnerability Details

In IRToken docs we can see that the second arg of the mint function returns scaled amount and the last arg the underlying amount.

See here.

But it is coded in reverse on the RToken contract, see here:

return (isFirstMint, amountToMint, totalSupply(), amountScaled);

Impact

Incorrect implementation as per docs. Fortunately these return values were not used for anything critical.

Recommendations

Switch the return args on the mint function.

Updates

Lead Judging Commences

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

RToken::mint doesn't return data in the right order, making the protocol emit wrong events

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

RToken::mint doesn't return data in the right order, making the protocol emit wrong events

Support

FAQs

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