Core Contracts

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

Missed to use transferAsset() function

Summary

In burn() function in RToken contract is forgotten to use transferAsset() function.

Vulnerability Details

In burn function in RToken in RToken is forgotten to use transferAsset function which is declared further down the code.

if (receiverOfUnderlying != address(this)) {
IERC20(_assetAddress).safeTransfer(receiverOfUnderlying, amount);
}

Impact

Gas efficiency

Recommendations

Instead of calling safeTransfer function you can use:

if (receiverOfUnderlying != address(this)) {
transferAsset(receiverOfUnderlying, amount);
}


Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!