Missing Fee Check in addSplitter
Function
The addSplitter
function in the LSTRewardsSplitterController
contract allows the addition of new LSTRewardsSplitter
instances without verifying the total fees
across all splitters. This omission can lead to a scenario where the cumulative fees exceed the intended limit of 10%, violating the protocol's fee structure integrity.If _totalFeesBasisPoints()
is greater than 10000
when the contract is created, addFee cannot be called.
Allowing multiple splitters with unchecked fees can result in a total fee percentage greater than 10%. This could unfairly reduce the rewards of stakers and violate the protocol's design parameters, potentially leading to user dissatisfaction and loss of trust.
vscode
Implement a check within the addSplitter
function to ensure that the total fees
, including those of the new splitter, do not exceed 10%. This will maintain the integrity of the fee structure and protect user interests.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.