unnecessary gas and blockchain resources, leading to increased fees for all users interacting with the contract.
Under Staking.deposit, their is no check for input validation therefore allowing zero amount deposits could be exploited by malicious users to spam the contract with empty transactions. This could potentially consume unnecessary gas and blockchain resources, leading to increased fees for all users interacting with the contract.
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L38
Other users unable to interact with the contract on excess gas consumption..
Put an input validation check.
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.