The ```LSTRewardsSplitter::withdraw``` does not have the right check that can stop the withdrawal of zero amount from the contract, this can lead to unnecessary state changes or other unintended behaviors.
A contract can fail unexpectedly when this function is called with zero amount, which may block further contract operations or disrupt automated workflows that depend on the contract's stability.the ability to withdraw a zero amount could be abused by attackers to execute gas griefing or event spamming attacks. By repeatedly triggering zero-value withdrawals, malicious actors could create useless transactions, increasing network congestion or bloating event logs.
Manual Review
To prevent these unintended behaviors, it's best to include a validation check to ensure the withdrawal amount is greater than zero:
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.