Core Contracts

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

Incorrect Naming of `RToken::scaledBalanceOf` Function Causes User Confusion

Summary

The RToken::scaledBalanceOf function (+) is intended to return the non-scaled balance of RToken, and it does so. However, the function name contradicts its actual functionality.

Vulnerability Details

According to the NatSpec documentation for the RToken::scaledBalanceOf function:

@notice Returns the non-scaled balance of the user

If this function returns the non-scaled balance of the user, why is it named scaledBalanceOf?

Impact

This naming discrepancy can lead to user confusion.

Tools Used

Manual review

Recommendations

Rename the function from scaledBalanceOf to nonScaledBalanceOf.

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!