Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: medium
Valid

Owner cannot increment the recipients shares.

Summary

When the owner tries to increment the recipient shares then he will get the revert due to having a state:

totalFeeRecipientsSharesX18 + share > MAX_CONFIGURABLE_PROTOCOL_FEE_SHARES ==> revert

Vulnerability Details

Lets say owner set the fee recipient = 0.5e18 share.

So in order to increment above recipient's share owner needs to enter greater amount than previous.

However he will not able to do that because recipient previous + new share will greater than max shares.

i.e => Owner want to set that fee recipient share = 0.6e18 shares.

0.5e18 + 0.6e18 > 0.9e18 ===> revert.

Impact

The owner cannot re-configure the same recipient and increment his shares.

Tools Used

Manual review.

Recommendations

Implement new logic.

Updates

Lead Judging Commences

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

MarketMakingEngineConfigurationBranch::configureFeeRecipient can cause DOS when attempting to change share value of an existing address

Support

FAQs

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