The StakingPool::burn function can be called with a zero amount.
When burning the senders liquid staking tokens with the StakingPool::burn function, no restriction was be made about the zero amount so the Burn event will still be emitted, even if no actual burning occurred, which creates confusion and consumes gas unnecessarily:
- Gas Usage: The function will still consume gas even for zero burns.
- Event Emission: Emitting an event for a zero burn might be unnecessary and could potentially lead to confusion in off-chain systems monitoring these events.
Manual analysis.
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.