it's generally more gas-efficient to use != 0 instead of > 0 when
comparing unsigned integer types.
This is because the Solidity compiler can optimize the != 0 comparison to a simple bitwise operation,
while the > 0 comparison requires an additional subtraction operation.
As a result, using != 0 can be more gas-efficient and can help to reduce the overall cost of your contract.
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L63
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L83
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.