sherlock-audit / 2024-03-arrakis-judging

2 stars 2 forks source link

0xrobsol - Missing Check for Manager Fee Limit in _updateParamsChecks Function #84

Closed sherlock-admin4 closed 4 months ago

sherlock-admin4 commented 4 months ago

0xrobsol

medium

Missing Check for Manager Fee Limit in _updateParamsChecks Function

Summary

The _updateParamsChecks function within the smart contract is responsible for validating various parameters during setup. However, it currently lacks a check to ensure that the manager fee does not exceed the maximum allowable limit of 50%.

Vulnerability Detail

The function does not validate the managerFee parameter to ensure it is within the acceptable range. Without this check, there is a risk that the managerFee could be set to an excessively high value, potentially leading to unintended high costs for users and operational risks for the platform.

Impact

Code Snippet

https://github.com/sherlock-audit/2024-03-arrakis/blob/main/arrakis-modular/src/ArrakisStandardManager.sol#L632-L659

Tool used

Manual Review

Recommendation

Add a validation check within the _updateParamsChecks function to ensure that the managerFee does not exceed the maximum allowable limit of 50%.

cu5t0mPeo commented 3 months ago

input error,invalid