Core Contracts

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

Incorrect Return Values in Burn Function

Finding

As per the docs/natspec the burn() should return :

@return A tuple containing:
* uint256: The amount of scaled tokens burned
* uint256: The new total supply after burning
* uint256: The amount of underlying asset transferred

However that's not the case, the following is returned :
return (amount, totalSupply(), amount);

So the second value - totalSupply() is there, and even the third value - amount of underlying asset is correct. But the first value expected the amount of scaled tokens burned isn't correct. It should be amountScaled which is already made in the function however it isn't used.

Impact

If the return value is used somewhere, it could lead to parsing wrong values. However that's not the case till now, so Low severity.

Tools Used

Manual Review

Recommendations

Change the return statement of burn function to :

return (amountScaled, totalSupply(), amount);
Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Too generic
inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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

Give us feedback!