Core Contracts

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

FeeCollector contract can be left in a broken state if fees increase for a fee type

Summary

FeeCollector contract can be left in a broken state if fees increase for a fee type

Vulnerability Details

When admin increases the fees for a type, it stores it in a mapping. The problem with this approach is that it doesnt track anywhere the historical changes. If the new fees are larger than the previous amounts, the contract can be left in a broken state, because rewards calculation will always assume that fee type amount was always the same during the whole collection period.

Impact

Contract can be left broken, withdraw and distribution can fail

Tools Used

Manual review

Recommendations

Updates

Lead Judging Commences

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

FeeCollector::updateFeeType applies new distribution parameters retroactively to already collected fees, allowing governance to change expected distribution outcomes before execution

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

FeeCollector::updateFeeType applies new distribution parameters retroactively to already collected fees, allowing governance to change expected distribution outcomes before execution

Support

FAQs

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