Prior to Solidity 0.8, Arithmetic overflow/underflow can occur and lead to unintended behavior.
github: [link] (https://github.com/Cyfrin/2023-10-Puppy-Raffle/blob/e01ef1124677fb78249602a171b994e1f48a1298/src/PuppyRaffle.sol#L131-L133)
implement OpenZeppelin's SafeMath.
Direct state address changes in a function can be risky, as they don't allow for a verification step before the change is made. It's safer to implement a two-step process where the new address is first proposed, then later confirmed, allowing for more control and the chance to catch errors or malicious activity.
github: link
Downcasting from a larger integer type to a smaller one without checks can lead to unexpected behavior if the value of the larger integer is outside the range of the smaller one. This could lead to unexpected results due to overflow.
github: link
Implement OpenZeppelin's SafeCast OR check for overflow when downcasting.
The following internal
function is not found to be used anywhere. This can lead to confusion and clutter, making the code harder to understand and maintain.
github: link
like 1 wei
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.