Core Contracts

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

BaseGauge._updateWeights() function is redundantly coded

Summary

BaseGauge._updateWeights() function is redundantly coded

Vulnerability Details

BaseGauge._updateWeights() uses a `if` structure that has no utility, as both if and else use exactly the same code.

Impact

Used `if` struct has no utility, the function consumes more gas whenever it is called and the code is clunkier and more difficult to read.

Tools Used

Manual review

Recommendations

Remove the if/else structure and do not repeat the code.

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 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.