The LSTRewardsSplitter:constructor()
allows to set fees
array, but it does not validate that the total sum of fees in basis points is below 10000.
If the Owner
calls LSTRewardsSplitterController:addSplitter()
and mistakenly misconfigures the _fees
input array (e.g., setting the total sum of basis points to more than 10000), then theLSTRewardsSplitter:_splitRewards()
will begin withdrawing not only from the rewards, as expected, but also from the principal deposits to satisfy excess fees.
This can lead to unintended loss of principal deposits, which affects both the functionality and trustworthiness of the system.
Add following code to lst-rewards-splitter.test.ts
:
Manual review.
Add validation in the LSTRewardsSplitter:constructor()
:
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.